Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":58,"index":58}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'yield'. (1:46)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":58,"index":58}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":14,"end":58,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":58,"index":58}},
16 "id": {
17 "type": "Identifier",
18 "start":24,"end":25,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":25,"index":25},"identifierName":"g"},
19 "name": "g"
20 },
21 "generator": true,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":27,"end":58,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":58,"index":58}},
27 "body": [
28 {
29 "type": "VariableDeclaration",
30 "start":29,"end":56,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":56,"index":56}},
31 "declarations": [
32 {
33 "type": "VariableDeclarator",
34 "start":33,"end":55,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":55,"index":55}},
35 "id": {
36 "type": "Identifier",
37 "start":33,"end":34,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":34,"index":34},"identifierName":"y"},
38 "name": "y"
39 },
40 "init": {
41 "type": "FunctionExpression",
42 "start":37,"end":55,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":55,"index":55}},
43 "id": {
44 "type": "Identifier",
45 "start":46,"end":51,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":51,"index":51},"identifierName":"yield"},
46 "name": "yield"
47 },
48 "generator": false,
49 "async": false,
50 "params": [],
51 "body": {
52 "type": "BlockStatement",
53 "start":53,"end":55,"loc":{"start":{"line":1,"column":53,"index":53},"end":{"line":1,"column":55,"index":55}},
54 "body": [],
55 "directives": []
56 }
57 }
58 }
59 ],
60 "kind": "var"
61 }
62 ],
63 "directives": []
64 }
65 }
66 ],
67 "directives": [
68 {
69 "type": "Directive",
70 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
71 "value": {
72 "type": "DirectiveLiteral",
73 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
74 "extra": {
75 "rawValue": "use strict",
76 "raw": "\"use strict\"",
77 "expressionValue": "use strict"
78 },
79 "value": "use strict"
80 }
81 }
82 ]
83 }
84 }