Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
13 "id": {
14 "type": "Placeholder",
15 "start":9,"end":15,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":15,"index":15}},
16 "name": {
17 "type": "Identifier",
18 "start":11,"end":13,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":13,"index":13},"identifierName":"ID"},
19 "name": "ID"
20 },
21 "expectedNode": "Identifier"
22 },
23 "generator": false,
24 "async": false,
25 "params": [],
26 "body": {
27 "type": "BlockStatement",
28 "start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}},
29 "body": [],
30 "directives": []
31 }
32 }
33 ],
34 "directives": []
35 }
36 }