Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-static-block/duplicate-function-var-name/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":65,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":65}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":65,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":65}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":65,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":65}},
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":"X"},
16 "name": "X"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":65,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":6,"column":1,"index":65}},
22 "body": [
23 {
24 "type": "StaticBlock",
25 "start":14,"end":63,"loc":{"start":{"line":2,"column":4,"index":14},"end":{"line":5,"column":5,"index":63}},
26 "body": [
27 {
28 "type": "VariableDeclaration",
29 "start":29,"end":35,"loc":{"start":{"line":3,"column":6,"index":29},"end":{"line":3,"column":12,"index":35}},
30 "declarations": [
31 {
32 "type": "VariableDeclarator",
33 "start":33,"end":34,"loc":{"start":{"line":3,"column":10,"index":33},"end":{"line":3,"column":11,"index":34}},
34 "id": {
35 "type": "Identifier",
36 "start":33,"end":34,"loc":{"start":{"line":3,"column":10,"index":33},"end":{"line":3,"column":11,"index":34},"identifierName":"x"},
37 "name": "x"
38 },
39 "init": null
40 }
41 ],
42 "kind": "var"
43 },
44 {
45 "type": "FunctionDeclaration",
46 "start":42,"end":57,"loc":{"start":{"line":4,"column":6,"index":42},"end":{"line":4,"column":21,"index":57}},
47 "id": {
48 "type": "Identifier",
49 "start":51,"end":52,"loc":{"start":{"line":4,"column":15,"index":51},"end":{"line":4,"column":16,"index":52},"identifierName":"x"},
50 "name": "x"
51 },
52 "generator": false,
53 "async": false,
54 "params": [],
55 "body": {
56 "type": "BlockStatement",
57 "start":55,"end":57,"loc":{"start":{"line":4,"column":19,"index":55},"end":{"line":4,"column":21,"index":57}},
58 "body": [],
59 "directives": []
60 }
61 }
62 ]
63 }
64 ]
65 }
66 }
67 ],
68 "directives": []
69 }
70 }