Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/function/id_expression/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
13 "expression": {
14 "type": "UnaryExpression",
15 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
16 "operator": "void",
17 "prefix": true,
18 "argument": {
19 "type": "FunctionExpression",
20 "start":5,"end":25,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":25,"index":25}},
21 "id": {
22 "type": "Placeholder",
23 "start":14,"end":20,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":20,"index":20}},
24 "name": {
25 "type": "Identifier",
26 "start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18},"identifierName":"ID"},
27 "name": "ID"
28 },
29 "expectedNode": "Identifier"
30 },
31 "generator": false,
32 "async": false,
33 "params": [],
34 "body": {
35 "type": "BlockStatement",
36 "start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
37 "body": [],
38 "directives": []
39 }
40 }
41 }
42 }
43 ],
44 "directives": []
45 }
46 }