Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "errors": [
5 "SyntaxError: Binding 'eval' in strict mode. (1:1)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
16 "expression": {
17 "type": "ArrowFunctionExpression",
18 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
19 "id": null,
20 "generator": false,
21 "async": false,
22 "params": [
23 {
24 "type": "Identifier",
25 "start":1,"end":5,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":5,"index":5},"identifierName":"eval"},
26 "name": "eval"
27 }
28 ],
29 "body": {
30 "type": "BlockStatement",
31 "start":10,"end":30,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":30,"index":30}},
32 "body": [
33 {
34 "type": "ExpressionStatement",
35 "start":26,"end":28,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":28,"index":28}},
36 "expression": {
37 "type": "NumericLiteral",
38 "start":26,"end":28,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":28,"index":28}},
39 "extra": {
40 "rawValue": 42,
41 "raw": "42"
42 },
43 "value": 42
44 }
45 }
46 ],
47 "directives": [
48 {
49 "type": "Directive",
50 "start":12,"end":25,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":25,"index":25}},
51 "value": {
52 "type": "DirectiveLiteral",
53 "start":12,"end":24,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":24,"index":24}},
54 "extra": {
55 "rawValue": "use strict",
56 "raw": "\"use strict\"",
57 "expressionValue": "use strict"
58 },
59 "value": "use strict"
60 }
61 }
62 ]
63 }
64 }
65 }
66 ],
67 "directives": []
68 }
69 }