Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'yield'. (1:18)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":14,"end":24,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":24,"index":24}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":18,"end":23,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":23,"index":23}},
20 "id": {
21 "type": "Identifier",
22 "start":18,"end":23,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":23,"index":23},"identifierName":"yield"},
23 "name": "yield"
24 },
25 "init": null
26 }
27 ],
28 "kind": "var"
29 }
30 ],
31 "directives": [
32 {
33 "type": "Directive",
34 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
35 "value": {
36 "type": "DirectiveLiteral",
37 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
38 "extra": {
39 "rawValue": "use strict",
40 "raw": "\"use strict\"",
41 "expressionValue": "use strict"
42 },
43 "value": "use strict"
44 }
45 }
46 ]
47 }
48 }