Debian Codegraph @

packages/babel-parser/test/fixtures/core/uncategorised/494/output.json

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