Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-static-block/re-declare-var/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":41,"index":54}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":41,"index":54}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":11,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":11,"index":11}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"y"},
20 "name": "y"
21 },
22 "init": {
23 "type": "NumericLiteral",
24 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11}},
25 "extra": {
26 "rawValue": 1,
27 "raw": "1"
28 },
29 "value": 1
30 }
31 }
32 ],
33 "kind": "const"
34 },
35 {
36 "type": "ClassDeclaration",
37 "start":13,"end":54,"loc":{"start":{"line":2,"column":0,"index":13},"end":{"line":2,"column":41,"index":54}},
38 "id": {
39 "type": "Identifier",
40 "start":19,"end":20,"loc":{"start":{"line":2,"column":6,"index":19},"end":{"line":2,"column":7,"index":20},"identifierName":"x"},
41 "name": "x"
42 },
43 "superClass": null,
44 "body": {
45 "type": "ClassBody",
46 "start":21,"end":54,"loc":{"start":{"line":2,"column":8,"index":21},"end":{"line":2,"column":41,"index":54}},
47 "body": [
48 {
49 "type": "StaticBlock",
50 "start":23,"end":52,"loc":{"start":{"line":2,"column":10,"index":23},"end":{"line":2,"column":39,"index":52}},
51 "body": [
52 {
53 "type": "VariableDeclaration",
54 "start":32,"end":43,"loc":{"start":{"line":2,"column":19,"index":32},"end":{"line":2,"column":30,"index":43}},
55 "declarations": [
56 {
57 "type": "VariableDeclarator",
58 "start":36,"end":42,"loc":{"start":{"line":2,"column":23,"index":36},"end":{"line":2,"column":29,"index":42}},
59 "id": {
60 "type": "Identifier",
61 "start":36,"end":37,"loc":{"start":{"line":2,"column":23,"index":36},"end":{"line":2,"column":24,"index":37},"identifierName":"x"},
62 "name": "x"
63 },
64 "init": {
65 "type": "NumericLiteral",
66 "start":40,"end":42,"loc":{"start":{"line":2,"column":27,"index":40},"end":{"line":2,"column":29,"index":42}},
67 "extra": {
68 "rawValue": 42,
69 "raw": "42"
70 },
71 "value": 42
72 }
73 }
74 ],
75 "kind": "var"
76 },
77 {
78 "type": "VariableDeclaration",
79 "start":44,"end":50,"loc":{"start":{"line":2,"column":31,"index":44},"end":{"line":2,"column":37,"index":50}},
80 "declarations": [
81 {
82 "type": "VariableDeclarator",
83 "start":48,"end":49,"loc":{"start":{"line":2,"column":35,"index":48},"end":{"line":2,"column":36,"index":49}},
84 "id": {
85 "type": "Identifier",
86 "start":48,"end":49,"loc":{"start":{"line":2,"column":35,"index":48},"end":{"line":2,"column":36,"index":49},"identifierName":"y"},
87 "name": "y"
88 },
89 "init": null
90 }
91 ],
92 "kind": "var"
93 }
94 ]
95 }
96 ]
97 }
98 }
99 ],
100 "directives": []
101 }
102 }