Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":55}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":55}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":55}},
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":"A"},
16 "name": "A"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":55,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":55}},
22 "body": [
23 {
24 "type": "ClassPrivateProperty",
25 "start":12,"end":27,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":17,"index":27}},
26 "static": false,
27 "variance": null,
28 "key": {
29 "type": "PrivateName",
30 "start":12,"end":18,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":8,"index":18}},
31 "id": {
32 "type": "Identifier",
33 "start":13,"end":18,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":8,"index":18},"identifierName":"prop1"},
34 "name": "prop1"
35 }
36 },
37 "typeAnnotation": {
38 "type": "TypeAnnotation",
39 "start":18,"end":26,"loc":{"start":{"line":2,"column":8,"index":18},"end":{"line":2,"column":16,"index":26}},
40 "typeAnnotation": {
41 "type": "StringTypeAnnotation",
42 "start":20,"end":26,"loc":{"start":{"line":2,"column":10,"index":20},"end":{"line":2,"column":16,"index":26}}
43 }
44 },
45 "value": null
46 },
47 {
48 "type": "ClassPrivateProperty",
49 "start":30,"end":53,"loc":{"start":{"line":3,"column":2,"index":30},"end":{"line":3,"column":25,"index":53}},
50 "static": false,
51 "variance": null,
52 "key": {
53 "type": "PrivateName",
54 "start":30,"end":36,"loc":{"start":{"line":3,"column":2,"index":30},"end":{"line":3,"column":8,"index":36}},
55 "id": {
56 "type": "Identifier",
57 "start":31,"end":36,"loc":{"start":{"line":3,"column":3,"index":31},"end":{"line":3,"column":8,"index":36},"identifierName":"prop2"},
58 "name": "prop2"
59 }
60 },
61 "typeAnnotation": {
62 "type": "TypeAnnotation",
63 "start":36,"end":44,"loc":{"start":{"line":3,"column":8,"index":36},"end":{"line":3,"column":16,"index":44}},
64 "typeAnnotation": {
65 "type": "NumberTypeAnnotation",
66 "start":38,"end":44,"loc":{"start":{"line":3,"column":10,"index":38},"end":{"line":3,"column":16,"index":44}}
67 }
68 },
69 "value": {
70 "type": "Identifier",
71 "start":47,"end":52,"loc":{"start":{"line":3,"column":19,"index":47},"end":{"line":3,"column":24,"index":52},"identifierName":"value"},
72 "name": "value"
73 }
74 }
75 ]
76 }
77 }
78 ],
79 "directives": []
80 }
81 }