Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":79,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":79,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":79,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"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":79,"loc":{"start":{"line":1,"column":8},"end":{"line":5,"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 "variance": null,
33 "value": {
34 "type": "Literal",
35 "start":19,"end":24,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":14}},
36 "value": "bar",
37 "raw": "\"bar\""
38 },
39 "computed": false
40 },
41 {
42 "type": "PropertyDefinition",
43 "start":28,"end":46,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":20}},
44 "static": true,
45 "key": {
46 "type": "PrivateIdentifier",
47 "start":35,"end":39,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":13}},
48 "name": "bar"
49 },
50 "variance": null,
51 "value": {
52 "type": "Identifier",
53 "start":42,"end":45,"loc":{"start":{"line":3,"column":16},"end":{"line":3,"column":19},"identifierName":"foo"},
54 "name": "foo"
55 },
56 "computed": false
57 },
58 {
59 "type": "PropertyDefinition",
60 "start":49,"end":77,"loc":{"start":{"line":4,"column":2},"end":{"line":4,"column":30}},
61 "declare": true,
62 "static": false,
63 "key": {
64 "type": "PrivateIdentifier",
65 "start":57,"end":61,"loc":{"start":{"line":4,"column":10},"end":{"line":4,"column":14}},
66 "name": "qux"
67 },
68 "variance": null,
69 "typeAnnotation": {
70 "type": "TypeAnnotation",
71 "start":61,"end":76,"loc":{"start":{"line":4,"column":14},"end":{"line":4,"column":29}},
72 "typeAnnotation": {
73 "type": "GenericTypeAnnotation",
74 "start":63,"end":76,"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":29}},
75 "typeParameters": {
76 "type": "TypeParameterInstantiation",
77 "start":68,"end":76,"loc":{"start":{"line":4,"column":21},"end":{"line":4,"column":29}},
78 "params": [
79 {
80 "type": "StringTypeAnnotation",
81 "start":69,"end":75,"loc":{"start":{"line":4,"column":22},"end":{"line":4,"column":28}}
82 }
83 ]
84 },
85 "id": {
86 "type": "Identifier",
87 "start":63,"end":68,"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":21},"identifierName":"Array"},
88 "name": "Array"
89 }
90 }
91 },
92 "value": null,
93 "computed": false
94 }
95 ]
96 }
97 }
98 ]
99 }
100 }