Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":76,"index":76}},
4 "errors": [
5 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:69)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":76,"index":76}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":76,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":76,"index":76}},
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":76,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":76,"index":76}},
27 "body": [
28 {
29 "type": "FunctionDeclaration",
30 "start":33,"end":74,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":74,"index":74}},
31 "id": {
32 "type": "Identifier",
33 "start":42,"end":47,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":47,"index":47},"identifierName":"inner"},
34 "name": "inner"
35 },
36 "generator": false,
37 "async": false,
38 "params": [],
39 "body": {
40 "type": "BlockStatement",
41 "start":50,"end":74,"loc":{"start":{"line":1,"column":50,"index":50},"end":{"line":1,"column":74,"index":74}},
42 "body": [],
43 "directives": [
44 {
45 "type": "Directive",
46 "start":52,"end":72,"loc":{"start":{"line":1,"column":52,"index":52},"end":{"line":1,"column":72,"index":72}},
47 "value": {
48 "type": "DirectiveLiteral",
49 "start":52,"end":71,"loc":{"start":{"line":1,"column":52,"index":52},"end":{"line":1,"column":71,"index":71}},
50 "extra": {
51 "rawValue": "octal directive\\1",
52 "raw": "\"octal directive\\1\"",
53 "expressionValue": "octal directive\u0001"
54 },
55 "value": "octal directive\\1"
56 }
57 }
58 ]
59 }
60 }
61 ],
62 "directives": [
63 {
64 "type": "Directive",
65 "start":19,"end":32,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":32,"index":32}},
66 "value": {
67 "type": "DirectiveLiteral",
68 "start":19,"end":31,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":31,"index":31}},
69 "extra": {
70 "rawValue": "use strict",
71 "raw": "\"use strict\"",
72 "expressionValue": "use strict"
73 },
74 "value": "use strict"
75 }
76 }
77 ]
78 }
79 }
80 ],
81 "directives": []
82 }
83 }