Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-properties/asi-success/output.json

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