Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
4 "errors": [
5 "SyntaxError: Legacy octal literals are not allowed in strict mode. (1:65)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":13,"end":42,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":42,"index":42}},
16 "id": {
17 "type": "Identifier",
18 "start":22,"end":25,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":25,"index":25},"identifierName":"foo"},
19 "name": "foo"
20 },
21 "generator": false,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":27,"end":42,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":42,"index":42}},
27 "body": [],
28 "directives": [
29 {
30 "type": "Directive",
31 "start":28,"end":41,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":41,"index":41}},
32 "value": {
33 "type": "DirectiveLiteral",
34 "start":28,"end":40,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":40,"index":40}},
35 "extra": {
36 "rawValue": "use strict",
37 "raw": "\"use strict\"",
38 "expressionValue": "use strict"
39 },
40 "value": "use strict"
41 }
42 }
43 ]
44 }
45 },
46 {
47 "type": "FunctionDeclaration",
48 "start":42,"end":69,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":69,"index":69}},
49 "id": {
50 "type": "Identifier",
51 "start":51,"end":54,"loc":{"start":{"line":1,"column":51,"index":51},"end":{"line":1,"column":54,"index":54},"identifierName":"bar"},
52 "name": "bar"
53 },
54 "generator": false,
55 "async": false,
56 "params": [],
57 "body": {
58 "type": "BlockStatement",
59 "start":56,"end":69,"loc":{"start":{"line":1,"column":56,"index":56},"end":{"line":1,"column":69,"index":69}},
60 "body": [
61 {
62 "type": "VariableDeclaration",
63 "start":57,"end":68,"loc":{"start":{"line":1,"column":57,"index":57},"end":{"line":1,"column":68,"index":68}},
64 "declarations": [
65 {
66 "type": "VariableDeclarator",
67 "start":61,"end":68,"loc":{"start":{"line":1,"column":61,"index":61},"end":{"line":1,"column":68,"index":68}},
68 "id": {
69 "type": "Identifier",
70 "start":61,"end":62,"loc":{"start":{"line":1,"column":61,"index":61},"end":{"line":1,"column":62,"index":62},"identifierName":"v"},
71 "name": "v"
72 },
73 "init": {
74 "type": "NumericLiteral",
75 "start":65,"end":68,"loc":{"start":{"line":1,"column":65,"index":65},"end":{"line":1,"column":68,"index":68}},
76 "extra": {
77 "rawValue": 13,
78 "raw": "015"
79 },
80 "value": 13
81 }
82 }
83 ],
84 "kind": "var"
85 }
86 ],
87 "directives": []
88 }
89 }
90 ],
91 "directives": [
92 {
93 "type": "Directive",
94 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
95 "value": {
96 "type": "DirectiveLiteral",
97 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
98 "extra": {
99 "rawValue": "use strict",
100 "raw": "\"use strict\"",
101 "expressionValue": "use strict"
102 },
103 "value": "use strict"
104 }
105 }
106 ]
107 }
108 }