Debian Codegraph @

packages/babel-parser/test/fixtures/core/uncategorised/502/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: Legacy octal literals are not allowed in strict mode. (1:36)"
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": "ExpressionStatement",
30 "start":33,"end":47,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":47,"index":47}},
31 "expression": {
32 "type": "ObjectExpression",
33 "start":34,"end":45,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":45,"index":45}},
34 "properties": [
35 {
36 "type": "ObjectProperty",
37 "start":36,"end":43,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":43,"index":43}},
38 "method": false,
39 "key": {
40 "type": "NumericLiteral",
41 "start":36,"end":39,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":39,"index":39}},
42 "extra": {
43 "rawValue": 17,
44 "raw": "021"
45 },
46 "value": 17
47 },
48 "computed": false,
49 "shorthand": false,
50 "value": {
51 "type": "NumericLiteral",
52 "start":41,"end":43,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":43,"index":43}},
53 "extra": {
54 "rawValue": 42,
55 "raw": "42"
56 },
57 "value": 42
58 }
59 }
60 ],
61 "extra": {
62 "parenthesized": true,
63 "parenStart": 33
64 }
65 }
66 }
67 ],
68 "directives": [
69 {
70 "type": "Directive",
71 "start":19,"end":32,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":32,"index":32}},
72 "value": {
73 "type": "DirectiveLiteral",
74 "start":19,"end":31,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":31,"index":31}},
75 "extra": {
76 "rawValue": "use strict",
77 "raw": "'use strict'",
78 "expressionValue": "use strict"
79 },
80 "value": "use strict"
81 }
82 }
83 ]
84 }
85 }
86 ],
87 "directives": []
88 }
89 }