Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":13,"index":27}},
4 "errors": [
5 "SyntaxError: Legacy octal literals are not allowed in strict mode. (2:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":13,"index":27}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":14,"end":27,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":13,"index":27}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":20,"end":26,"loc":{"start":{"line":2,"column":6,"index":20},"end":{"line":2,"column":12,"index":26}},
20 "id": {
21 "type": "Identifier",
22 "start":20,"end":21,"loc":{"start":{"line":2,"column":6,"index":20},"end":{"line":2,"column":7,"index":21},"identifierName":"a"},
23 "name": "a"
24 },
25 "init": {
26 "type": "NumericLiteral",
27 "start":24,"end":26,"loc":{"start":{"line":2,"column":10,"index":24},"end":{"line":2,"column":12,"index":26}},
28 "extra": {
29 "rawValue": 8,
30 "raw": "08"
31 },
32 "value": 8
33 }
34 }
35 ],
36 "kind": "const"
37 }
38 ],
39 "directives": [
40 {
41 "type": "Directive",
42 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
43 "value": {
44 "type": "DirectiveLiteral",
45 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
46 "extra": {
47 "rawValue": "use strict",
48 "raw": "'use strict'",
49 "expressionValue": "use strict"
50 },
51 "value": "use strict"
52 }
53 }
54 ]
55 }
56 }