Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-declaration/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":33,"index":33}},
4 "errors": [
5 "SyntaxError: Binding 'yield' in strict mode. (1:9)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":33,"index":33}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":33,"index":33}},
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":"yield"},
19 "name": "yield"
20 },
21 "generator": false,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":16,"end":33,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":33,"index":33}},
27 "body": [],
28 "directives": [
29 {
30 "type": "Directive",
31 "start":18,"end":31,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":31,"index":31}},
32 "value": {
33 "type": "DirectiveLiteral",
34 "start":18,"end":30,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":30,"index":30}},
35 "extra": {
36 "rawValue": "use strict",
37 "raw": "\"use strict\"",
38 "expressionValue": "use strict"
39 },
40 "value": "use strict"
41 }
42 }
43 ]
44 }
45 }
46 ],
47 "directives": []
48 }
49 }