Debian Codegraph @

packages/babel-parser/test/fixtures/core/escape-string/invalid-decimal-escape-strict-directive/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":22,"index":87}},
4 "errors": [
5 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:2)",
6 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:10)",
7 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:18)",
8 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (3:2)",
9 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (4:2)",
10 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (8:2)",
11 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (9:2)",
12 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (11:2)",
13 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (11:10)",
14 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (11:18)"
15 ],
16 "program": {
17 "type": "Program",
18 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":22,"index":87}},
19 "sourceType": "script",
20 "interpreter": null,
21 "body": [],
22 "directives": [
23 {
24 "type": "Directive",
25 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
26 "value": {
27 "type": "DirectiveLiteral",
28 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
29 "extra": {
30 "rawValue": "\\01 foo \\02 bar \\03",
31 "raw": "\"\\01 foo \\02 bar \\03\"",
32 "expressionValue": "\u0001 foo \u0002 bar \u0003"
33 },
34 "value": "\\01 foo \\02 bar \\03"
35 }
36 },
37 {
38 "type": "Directive",
39 "start":24,"end":29,"loc":{"start":{"line":3,"column":0,"index":24},"end":{"line":3,"column":5,"index":29}},
40 "value": {
41 "type": "DirectiveLiteral",
42 "start":24,"end":28,"loc":{"start":{"line":3,"column":0,"index":24},"end":{"line":3,"column":4,"index":28}},
43 "extra": {
44 "rawValue": "\\4",
45 "raw": "\"\\4\"",
46 "expressionValue": "\u0004"
47 },
48 "value": "\\4"
49 }
50 },
51 {
52 "type": "Directive",
53 "start":30,"end":35,"loc":{"start":{"line":4,"column":0,"index":30},"end":{"line":4,"column":5,"index":35}},
54 "value": {
55 "type": "DirectiveLiteral",
56 "start":30,"end":34,"loc":{"start":{"line":4,"column":0,"index":30},"end":{"line":4,"column":4,"index":34}},
57 "extra": {
58 "rawValue": "\\5",
59 "raw": "\"\\5\"",
60 "expressionValue": "\u0005"
61 },
62 "value": "\\5"
63 }
64 },
65 {
66 "type": "Directive",
67 "start":37,"end":50,"loc":{"start":{"line":6,"column":0,"index":37},"end":{"line":6,"column":13,"index":50}},
68 "value": {
69 "type": "DirectiveLiteral",
70 "start":37,"end":49,"loc":{"start":{"line":6,"column":0,"index":37},"end":{"line":6,"column":12,"index":49}},
71 "extra": {
72 "rawValue": "use strict",
73 "raw": "\"use strict\"",
74 "expressionValue": "use strict"
75 },
76 "value": "use strict"
77 }
78 },
79 {
80 "type": "Directive",
81 "start":52,"end":57,"loc":{"start":{"line":8,"column":0,"index":52},"end":{"line":8,"column":5,"index":57}},
82 "value": {
83 "type": "DirectiveLiteral",
84 "start":52,"end":56,"loc":{"start":{"line":8,"column":0,"index":52},"end":{"line":8,"column":4,"index":56}},
85 "extra": {
86 "rawValue": "\\4",
87 "raw": "\"\\4\"",
88 "expressionValue": "\u0004"
89 },
90 "value": "\\4"
91 }
92 },
93 {
94 "type": "Directive",
95 "start":58,"end":63,"loc":{"start":{"line":9,"column":0,"index":58},"end":{"line":9,"column":5,"index":63}},
96 "value": {
97 "type": "DirectiveLiteral",
98 "start":58,"end":62,"loc":{"start":{"line":9,"column":0,"index":58},"end":{"line":9,"column":4,"index":62}},
99 "extra": {
100 "rawValue": "\\5",
101 "raw": "\"\\5\"",
102 "expressionValue": "\u0005"
103 },
104 "value": "\\5"
105 }
106 },
107 {
108 "type": "Directive",
109 "start":65,"end":87,"loc":{"start":{"line":11,"column":0,"index":65},"end":{"line":11,"column":22,"index":87}},
110 "value": {
111 "type": "DirectiveLiteral",
112 "start":65,"end":86,"loc":{"start":{"line":11,"column":0,"index":65},"end":{"line":11,"column":21,"index":86}},
113 "extra": {
114 "rawValue": "\\04 foo \\05 bar \\06",
115 "raw": "\"\\04 foo \\05 bar \\06\"",
116 "expressionValue": "\u0004 foo \u0005 bar \u0006"
117 },
118 "value": "\\04 foo \\05 bar \\06"
119 }
120 }
121 ]
122 }
123 }