Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/decorators/compued-property/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":42}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":42}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":42}},
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":42,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":6,"column":1,"index":42}},
22 "body": [
23 {
24 "type": "ClassProperty",
25 "start":14,"end":25,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":13,"index":25}},
26 "decorators": [
27 {
28 "type": "Decorator",
29 "start":14,"end":18,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":6,"index":18}},
30 "expression": {
31 "type": "Identifier",
32 "start":15,"end":18,"loc":{"start":{"line":2,"column":3,"index":15},"end":{"line":2,"column":6,"index":18},"identifierName":"bar"},
33 "name": "bar"
34 }
35 }
36 ],
37 "static": false,
38 "computed": true,
39 "key": {
40 "type": "Identifier",
41 "start":20,"end":24,"loc":{"start":{"line":2,"column":8,"index":20},"end":{"line":2,"column":12,"index":24},"identifierName":"bizz"},
42 "name": "bizz"
43 },
44 "value": null
45 },
46 {
47 "type": "ClassMethod",
48 "start":28,"end":40,"loc":{"start":{"line":3,"column":2,"index":28},"end":{"line":5,"column":3,"index":40}},
49 "static": false,
50 "key": {
51 "type": "Identifier",
52 "start":28,"end":31,"loc":{"start":{"line":3,"column":2,"index":28},"end":{"line":3,"column":5,"index":31},"identifierName":"abc"},
53 "name": "abc"
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":34,"end":40,"loc":{"start":{"line":3,"column":8,"index":34},"end":{"line":5,"column":3,"index":40}},
64 "body": [],
65 "directives": []
66 }
67 }
68 ]
69 }
70 }
71 ],
72 "directives": []
73 }
74 }