Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/destructuring-private/valid-assignment/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":68}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":68}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":68}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"},
16 "name": "C"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":68,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":7,"column":1,"index":68}},
22 "body": [
23 {
24 "type": "ClassPrivateProperty",
25 "start":12,"end":19,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":9,"index":19}},
26 "static": false,
27 "key": {
28 "type": "PrivateName",
29 "start":12,"end":14,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":4,"index":14}},
30 "id": {
31 "type": "Identifier",
32 "start":13,"end":14,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":4,"index":14},"identifierName":"x"},
33 "name": "x"
34 }
35 },
36 "value": {
37 "type": "NumericLiteral",
38 "start":17,"end":18,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":8,"index":18}},
39 "extra": {
40 "rawValue": 1,
41 "raw": "1"
42 },
43 "value": 1
44 }
45 },
46 {
47 "type": "ClassMethod",
48 "start":22,"end":66,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":6,"column":3,"index":66}},
49 "static": false,
50 "key": {
51 "type": "Identifier",
52 "start":22,"end":23,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":3,"column":3,"index":23},"identifierName":"m"},
53 "name": "m"
54 },
55 "computed": false,
56 "kind": "method",
57 "id": null,
58 "generator": false,
59 "async": false,
60 "params": [],
61 "body": {
62 "type": "BlockStatement",
63 "start":26,"end":66,"loc":{"start":{"line":3,"column":6,"index":26},"end":{"line":6,"column":3,"index":66}},
64 "body": [
65 {
66 "type": "VariableDeclaration",
67 "start":32,"end":38,"loc":{"start":{"line":4,"column":4,"index":32},"end":{"line":4,"column":10,"index":38}},
68 "declarations": [
69 {
70 "type": "VariableDeclarator",
71 "start":36,"end":37,"loc":{"start":{"line":4,"column":8,"index":36},"end":{"line":4,"column":9,"index":37}},
72 "id": {
73 "type": "Identifier",
74 "start":36,"end":37,"loc":{"start":{"line":4,"column":8,"index":36},"end":{"line":4,"column":9,"index":37},"identifierName":"x"},
75 "name": "x"
76 },
77 "init": null
78 }
79 ],
80 "kind": "let"
81 },
82 {
83 "type": "ExpressionStatement",
84 "start":43,"end":62,"loc":{"start":{"line":5,"column":4,"index":43},"end":{"line":5,"column":23,"index":62}},
85 "expression": {
86 "type": "AssignmentExpression",
87 "start":44,"end":60,"loc":{"start":{"line":5,"column":5,"index":44},"end":{"line":5,"column":21,"index":60}},
88 "operator": "=",
89 "left": {
90 "type": "ObjectPattern",
91 "start":44,"end":53,"loc":{"start":{"line":5,"column":5,"index":44},"end":{"line":5,"column":14,"index":53}},
92 "properties": [
93 {
94 "type": "ObjectProperty",
95 "start":46,"end":51,"loc":{"start":{"line":5,"column":7,"index":46},"end":{"line":5,"column":12,"index":51}},
96 "method": false,
97 "key": {
98 "type": "PrivateName",
99 "start":46,"end":48,"loc":{"start":{"line":5,"column":7,"index":46},"end":{"line":5,"column":9,"index":48}},
100 "id": {
101 "type": "Identifier",
102 "start":47,"end":48,"loc":{"start":{"line":5,"column":8,"index":47},"end":{"line":5,"column":9,"index":48},"identifierName":"x"},
103 "name": "x"
104 }
105 },
106 "shorthand": false,
107 "value": {
108 "type": "Identifier",
109 "start":50,"end":51,"loc":{"start":{"line":5,"column":11,"index":50},"end":{"line":5,"column":12,"index":51},"identifierName":"x"},
110 "name": "x"
111 }
112 }
113 ]
114 },
115 "right": {
116 "type": "ThisExpression",
117 "start":56,"end":60,"loc":{"start":{"line":5,"column":17,"index":56},"end":{"line":5,"column":21,"index":60}}
118 },
119 "extra": {
120 "parenthesized": true,
121 "parenStart": 43
122 }
123 }
124 }
125 ],
126 "directives": []
127 }
128 }
129 ]
130 }
131 }
132 ],
133 "directives": []
134 }
135 }