Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/expression-primary-object/migrated_0031/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":48,"index":48}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":48,"index":48}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":14,"end":48,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":48,"index":48}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":18,"end":48,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":48,"index":48}},
17 "id": {
18 "type": "Identifier",
19 "start":18,"end":19,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":19,"index":19},"identifierName":"x"},
20 "name": "x"
21 },
22 "init": {
23 "type": "ObjectExpression",
24 "start":22,"end":48,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":48,"index":48}},
25 "properties": [
26 {
27 "type": "ObjectMethod",
28 "start":24,"end":34,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":34,"index":34}},
29 "method": false,
30 "key": {
31 "type": "Identifier",
32 "start":28,"end":29,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":29,"index":29},"identifierName":"i"},
33 "name": "i"
34 },
35 "computed": false,
36 "kind": "get",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [],
41 "body": {
42 "type": "BlockStatement",
43 "start":32,"end":34,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":34,"index":34}},
44 "body": [],
45 "directives": []
46 }
47 },
48 {
49 "type": "ObjectMethod",
50 "start":36,"end":46,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":46,"index":46}},
51 "method": false,
52 "key": {
53 "type": "Identifier",
54 "start":40,"end":41,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":41,"index":41},"identifierName":"i"},
55 "name": "i"
56 },
57 "computed": false,
58 "kind": "get",
59 "id": null,
60 "generator": false,
61 "async": false,
62 "params": [],
63 "body": {
64 "type": "BlockStatement",
65 "start":44,"end":46,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":46,"index":46}},
66 "body": [],
67 "directives": []
68 }
69 }
70 ]
71 }
72 }
73 ],
74 "kind": "var"
75 }
76 ],
77 "directives": [
78 {
79 "type": "Directive",
80 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
81 "value": {
82 "type": "DirectiveLiteral",
83 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
84 "extra": {
85 "rawValue": "use strict",
86 "raw": "\"use strict\"",
87 "expressionValue": "use strict"
88 },
89 "value": "use strict"
90 }
91 }
92 ]
93 }
94 }