Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
4 "errors": [
5 "SyntaxError: Label 'x' is already declared. (1:18)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "LabeledStatement",
15 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
16 "body": {
17 "type": "WhileStatement",
18 "start":3,"end":39,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":39,"index":39}},
19 "test": {
20 "type": "BooleanLiteral",
21 "start":10,"end":14,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":14,"index":14}},
22 "value": true
23 },
24 "body": {
25 "type": "BlockStatement",
26 "start":16,"end":39,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":39,"index":39}},
27 "body": [
28 {
29 "type": "LabeledStatement",
30 "start":18,"end":37,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":37,"index":37}},
31 "body": {
32 "type": "WhileStatement",
33 "start":21,"end":37,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":37,"index":37}},
34 "test": {
35 "type": "BooleanLiteral",
36 "start":28,"end":32,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":32,"index":32}},
37 "value": true
38 },
39 "body": {
40 "type": "BlockStatement",
41 "start":34,"end":37,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":37,"index":37}},
42 "body": [],
43 "directives": []
44 }
45 },
46 "label": {
47 "type": "Identifier",
48 "start":18,"end":19,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":19,"index":19},"identifierName":"x"},
49 "name": "x"
50 }
51 }
52 ],
53 "directives": []
54 }
55 },
56 "label": {
57 "type": "Identifier",
58 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"x"},
59 "name": "x"
60 }
61 }
62 ],
63 "directives": []
64 }
65 }