Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
4 "errors": [
5 "SyntaxError: Binding 'yield' in strict mode. (1:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
16 "expression": {
17 "type": "FunctionExpression",
18 "start":1,"end":34,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":34,"index":34}},
19 "id": {
20 "type": "Identifier",
21 "start":10,"end":15,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":15,"index":15},"identifierName":"yield"},
22 "name": "yield"
23 },
24 "generator": false,
25 "async": false,
26 "params": [],
27 "body": {
28 "type": "BlockStatement",
29 "start":17,"end":34,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":34,"index":34}},
30 "body": [],
31 "directives": [
32 {
33 "type": "Directive",
34 "start":19,"end":32,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":32,"index":32}},
35 "value": {
36 "type": "DirectiveLiteral",
37 "start":19,"end":31,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":31,"index":31}},
38 "extra": {
39 "rawValue": "use strict",
40 "raw": "\"use strict\"",
41 "expressionValue": "use strict"
42 },
43 "value": "use strict"
44 }
45 }
46 ]
47 },
48 "extra": {
49 "parenthesized": true,
50 "parenStart": 0
51 }
52 }
53 }
54 ],
55 "directives": []
56 }
57 }