Debian Codegraph @

packages/babel-parser/test/fixtures/core/escape-string/numeric-escape-in-property-name/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
4 "errors": [
5 "SyntaxError: The only valid numeric escape in strict mode is '\\0'. (1:38)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
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":50,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":50,"index":50}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":33,"end":48,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":48,"index":48}},
31 "expression": {
32 "type": "ObjectExpression",
33 "start":34,"end":46,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":46,"index":46}},
34 "properties": [
35 {
36 "type": "ObjectProperty",
37 "start":36,"end":44,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":44,"index":44}},
38 "method": false,
39 "key": {
40 "type": "StringLiteral",
41 "start":36,"end":40,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":40,"index":40}},
42 "extra": {
43 "rawValue": "\u0001",
44 "raw": "\"\\1\""
45 },
46 "value": "\u0001"
47 },
48 "computed": false,
49 "shorthand": false,
50 "value": {
51 "type": "NumericLiteral",
52 "start":42,"end":44,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":44,"index":44}},
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 }