Debian Codegraph @

packages/babel-parser/test/fixtures/core/escape-keyword/invalid/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":25}},
4 "errors": [
5 "SyntaxError: Unexpected keyword 'break'. (2:2)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":25}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":25}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":24,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":3,"column":1,"index":24}},
20 "id": {
21 "type": "Identifier",
22 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"},
23 "name": "a"
24 },
25 "init": {
26 "type": "ObjectExpression",
27 "start":8,"end":24,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":24}},
28 "properties": [
29 {
30 "type": "ObjectProperty",
31 "start":12,"end":22,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":12,"index":22}},
32 "method": false,
33 "key": {
34 "type": "Identifier",
35 "start":12,"end":22,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":12,"index":22},"identifierName":"break"},
36 "name": "break"
37 },
38 "computed": false,
39 "shorthand": true,
40 "value": {
41 "type": "Identifier",
42 "start":12,"end":22,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":12,"index":22},"identifierName":"break"},
43 "name": "break"
44 },
45 "extra": {
46 "shorthand": true
47 }
48 }
49 ]
50 }
51 }
52 ],
53 "kind": "var"
54 }
55 ],
56 "directives": []
57 }
58 }