Debian Codegraph @

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

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