Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/uncategorised/247/output.json

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