Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/computed-properties/call-expression/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":28}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":28}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":28}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":27,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":3,"column":1,"index":27}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"foo"},
20 "name": "foo"
21 },
22 "init": {
23 "type": "ObjectExpression",
24 "start":10,"end":27,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":3,"column":1,"index":27}},
25 "properties": [
26 {
27 "type": "ObjectProperty",
28 "start":14,"end":25,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":13,"index":25}},
29 "method": false,
30 "computed": true,
31 "key": {
32 "type": "CallExpression",
33 "start":15,"end":20,"loc":{"start":{"line":2,"column":3,"index":15},"end":{"line":2,"column":8,"index":20}},
34 "callee": {
35 "type": "Identifier",
36 "start":15,"end":18,"loc":{"start":{"line":2,"column":3,"index":15},"end":{"line":2,"column":6,"index":18},"identifierName":"bar"},
37 "name": "bar"
38 },
39 "arguments": []
40 },
41 "shorthand": false,
42 "value": {
43 "type": "StringLiteral",
44 "start":23,"end":25,"loc":{"start":{"line":2,"column":11,"index":23},"end":{"line":2,"column":13,"index":25}},
45 "extra": {
46 "rawValue": "",
47 "raw": "\"\""
48 },
49 "value": ""
50 }
51 }
52 ]
53 }
54 }
55 ],
56 "kind": "var"
57 }
58 ],
59 "directives": []
60 }
61 }