Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":48,"index":48}},
4 "errors": [
5 "SyntaxError: Binding 'eval' in strict mode. (1:36)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":48,"index":48}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":48,"index":48}},
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":48,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":48,"index":48}},
27 "body": [
28 {
29 "type": "VariableDeclaration",
30 "start":32,"end":46,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":46,"index":46}},
31 "declarations": [
32 {
33 "type": "VariableDeclarator",
34 "start":36,"end":45,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":45,"index":45}},
35 "id": {
36 "type": "Identifier",
37 "start":36,"end":40,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":40,"index":40},"identifierName":"eval"},
38 "name": "eval"
39 },
40 "init": {
41 "type": "NumericLiteral",
42 "start":43,"end":45,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":45,"index":45}},
43 "extra": {
44 "rawValue": 10,
45 "raw": "10"
46 },
47 "value": 10
48 }
49 }
50 ],
51 "kind": "var"
52 }
53 ],
54 "directives": [
55 {
56 "type": "Directive",
57 "start":18,"end":31,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":31,"index":31}},
58 "value": {
59 "type": "DirectiveLiteral",
60 "start":18,"end":30,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":30,"index":30}},
61 "extra": {
62 "rawValue": "use strict",
63 "raw": "'use strict'",
64 "expressionValue": "use strict"
65 },
66 "value": "use strict"
67 }
68 }
69 ]
70 }
71 }
72 ],
73 "directives": []
74 }
75 }