Debian Codegraph @

packages/babel-parser/test/fixtures/core/uncategorised/505/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'interface'. (1:37)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
16 "id": {
17 "type": "Identifier",
18 "start":9,"end":14,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":14,"index":14},"identifierName":"hello"},
19 "name": "hello"
20 },
21 "generator": false,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":17,"end":49,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":49,"index":49}},
27 "body": [
28 {
29 "type": "VariableDeclaration",
30 "start":33,"end":47,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":47,"index":47}},
31 "declarations": [
32 {
33 "type": "VariableDeclarator",
34 "start":37,"end":46,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":46,"index":46}},
35 "id": {
36 "type": "Identifier",
37 "start":37,"end":46,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":46,"index":46},"identifierName":"interface"},
38 "name": "interface"
39 },
40 "init": null
41 }
42 ],
43 "kind": "var"
44 }
45 ],
46 "directives": [
47 {
48 "type": "Directive",
49 "start":19,"end":32,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":32,"index":32}},
50 "value": {
51 "type": "DirectiveLiteral",
52 "start":19,"end":31,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":31,"index":31}},
53 "extra": {
54 "rawValue": "use strict",
55 "raw": "\"use strict\"",
56 "expressionValue": "use strict"
57 },
58 "value": "use strict"
59 }
60 }
61 ]
62 }
63 }
64 ],
65 "directives": []
66 }
67 }