Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":73}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":73}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":73}},
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":73,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":7,"column":1,"index":73}},
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":71,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":6,"column":3,"index":71}},
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":71,"loc":{"start":{"line":3,"column":6,"index":26},"end":{"line":6,"column":3,"index":71}},
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": "ForOfStatement",
84 "start":43,"end":67,"loc":{"start":{"line":5,"column":4,"index":43},"end":{"line":5,"column":28,"index":67}},
85 "await": false,
86 "left": {
87 "type": "ObjectPattern",
88 "start":48,"end":55,"loc":{"start":{"line":5,"column":9,"index":48},"end":{"line":5,"column":16,"index":55}},
89 "properties": [
90 {
91 "type": "ObjectProperty",
92 "start":49,"end":54,"loc":{"start":{"line":5,"column":10,"index":49},"end":{"line":5,"column":15,"index":54}},
93 "method": false,
94 "key": {
95 "type": "PrivateName",
96 "start":49,"end":51,"loc":{"start":{"line":5,"column":10,"index":49},"end":{"line":5,"column":12,"index":51}},
97 "id": {
98 "type": "Identifier",
99 "start":50,"end":51,"loc":{"start":{"line":5,"column":11,"index":50},"end":{"line":5,"column":12,"index":51},"identifierName":"x"},
100 "name": "x"
101 }
102 },
103 "shorthand": false,
104 "value": {
105 "type": "Identifier",
106 "start":53,"end":54,"loc":{"start":{"line":5,"column":14,"index":53},"end":{"line":5,"column":15,"index":54},"identifierName":"x"},
107 "name": "x"
108 }
109 }
110 ]
111 },
112 "right": {
113 "type": "ArrayExpression",
114 "start":59,"end":65,"loc":{"start":{"line":5,"column":20,"index":59},"end":{"line":5,"column":26,"index":65}},
115 "elements": [
116 {
117 "type": "ThisExpression",
118 "start":60,"end":64,"loc":{"start":{"line":5,"column":21,"index":60},"end":{"line":5,"column":25,"index":64}}
119 }
120 ]
121 },
122 "body": {
123 "type": "EmptyStatement",
124 "start":66,"end":67,"loc":{"start":{"line":5,"column":27,"index":66},"end":{"line":5,"column":28,"index":67}}
125 }
126 }
127 ],
128 "directives": []
129 }
130 }
131 ]
132 }
133 }
134 ],
135 "directives": []
136 }
137 }