Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0277/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'enum'. (1:11)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
19 "name": "A"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":8,"end":19,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":19,"index":19}},
25 "body": [
26 {
27 "type": "ClassMethod",
28 "start":9,"end":18,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":18,"index":18}},
29 "static": false,
30 "key": {
31 "type": "Identifier",
32 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"a"},
33 "name": "a"
34 },
35 "computed": false,
36 "kind": "method",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [
41 {
42 "type": "Identifier",
43 "start":11,"end":15,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":15,"index":15},"identifierName":"enum"},
44 "name": "enum"
45 }
46 ],
47 "body": {
48 "type": "BlockStatement",
49 "start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18}},
50 "body": [],
51 "directives": []
52 }
53 }
54 ]
55 }
56 }
57 ],
58 "directives": []
59 }
60 }