Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":59}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":59}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":59}},
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":59,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":6,"column":1,"index":59}},
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":57,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":5,"column":3,"index":57}},
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":57,"loc":{"start":{"line":3,"column":6,"index":26},"end":{"line":5,"column":3,"index":57}},
64 "body": [
65 {
66 "type": "VariableDeclaration",
67 "start":32,"end":53,"loc":{"start":{"line":4,"column":4,"index":32},"end":{"line":4,"column":25,"index":53}},
68 "declarations": [
69 {
70 "type": "VariableDeclarator",
71 "start":38,"end":52,"loc":{"start":{"line":4,"column":10,"index":38},"end":{"line":4,"column":24,"index":52}},
72 "id": {
73 "type": "ObjectPattern",
74 "start":38,"end":45,"loc":{"start":{"line":4,"column":10,"index":38},"end":{"line":4,"column":17,"index":45}},
75 "properties": [
76 {
77 "type": "ObjectProperty",
78 "start":39,"end":44,"loc":{"start":{"line":4,"column":11,"index":39},"end":{"line":4,"column":16,"index":44}},
79 "key": {
80 "type": "PrivateName",
81 "start":39,"end":41,"loc":{"start":{"line":4,"column":11,"index":39},"end":{"line":4,"column":13,"index":41}},
82 "id": {
83 "type": "Identifier",
84 "start":40,"end":41,"loc":{"start":{"line":4,"column":12,"index":40},"end":{"line":4,"column":13,"index":41},"identifierName":"x"},
85 "name": "x"
86 }
87 },
88 "method": false,
89 "shorthand": false,
90 "value": {
91 "type": "Identifier",
92 "start":43,"end":44,"loc":{"start":{"line":4,"column":15,"index":43},"end":{"line":4,"column":16,"index":44},"identifierName":"x"},
93 "name": "x"
94 }
95 }
96 ]
97 },
98 "init": {
99 "type": "ThisExpression",
100 "start":48,"end":52,"loc":{"start":{"line":4,"column":20,"index":48},"end":{"line":4,"column":24,"index":52}}
101 }
102 }
103 ],
104 "kind": "const"
105 }
106 ],
107 "directives": []
108 }
109 }
110 ]
111 }
112 }
113 ],
114 "directives": []
115 }
116 }