Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
4 "errors": [
5 "SyntaxError: Assigning to 'eval' in strict mode. (1:32)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
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":41,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":41,"index":41}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":32,"end":39,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":39,"index":39}},
31 "expression": {
32 "type": "UpdateExpression",
33 "start":32,"end":38,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":38,"index":38}},
34 "operator": "--",
35 "prefix": false,
36 "argument": {
37 "type": "Identifier",
38 "start":32,"end":36,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":36,"index":36},"identifierName":"eval"},
39 "name": "eval"
40 }
41 }
42 }
43 ],
44 "directives": [
45 {
46 "type": "Directive",
47 "start":18,"end":31,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":31,"index":31}},
48 "value": {
49 "type": "DirectiveLiteral",
50 "start":18,"end":30,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":30,"index":30}},
51 "extra": {
52 "rawValue": "use strict",
53 "raw": "'use strict'",
54 "expressionValue": "use strict"
55 },
56 "value": "use strict"
57 }
58 }
59 ]
60 }
61 }
62 ],
63 "directives": []
64 }
65 }