Debian Codegraph @

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

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