Debian Codegraph @

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

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