Debian Codegraph @

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

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