Debian Codegraph @

packages/babel-parser/test/fixtures/estree/class-private-property/basic-babel-7/output.json

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