Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/expression/01/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
13 "expression": {
14 "type": "BinaryExpression",
15 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
16 "left": {
17 "type": "Placeholder",
18 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}},
19 "name": {
20 "type": "Identifier",
21 "start":2,"end":5,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":5,"index":5},"identifierName":"FOO"},
22 "name": "FOO"
23 },
24 "expectedNode": "Expression"
25 },
26 "operator": "+",
27 "right": {
28 "type": "CallExpression",
29 "start":10,"end":26,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":26,"index":26}},
30 "callee": {
31 "type": "Placeholder",
32 "start":10,"end":17,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":17,"index":17}},
33 "name": {
34 "type": "Identifier",
35 "start":12,"end":15,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":15,"index":15},"identifierName":"BAR"},
36 "name": "BAR"
37 },
38 "expectedNode": "Expression"
39 },
40 "arguments": [
41 {
42 "type": "Placeholder",
43 "start":18,"end":25,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":25,"index":25}},
44 "name": {
45 "type": "Identifier",
46 "start":20,"end":23,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":23,"index":23},"identifierName":"BAZ"},
47 "name": "BAZ"
48 },
49 "expectedNode": "Expression"
50 }
51 ]
52 }
53 }
54 }
55 ],
56 "directives": []
57 }
58 }