Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-binding-element/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'yield'. (1:23)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":14,"end":37,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":37,"index":37}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":18,"end":36,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":36,"index":36}},
20 "id": {
21 "type": "ObjectPattern",
22 "start":18,"end":30,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":30,"index":30}},
23 "properties": [
24 {
25 "type": "ObjectProperty",
26 "start":20,"end":28,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":28,"index":28}},
27 "key": {
28 "type": "Identifier",
29 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"x"},
30 "name": "x"
31 },
32 "computed": false,
33 "method": false,
34 "shorthand": false,
35 "value": {
36 "type": "Identifier",
37 "start":23,"end":28,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":28,"index":28},"identifierName":"yield"},
38 "name": "yield"
39 }
40 }
41 ]
42 },
43 "init": {
44 "type": "Identifier",
45 "start":33,"end":36,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":36,"index":36},"identifierName":"foo"},
46 "name": "foo"
47 }
48 }
49 ],
50 "kind": "var"
51 }
52 ],
53 "directives": [
54 {
55 "type": "Directive",
56 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
57 "value": {
58 "type": "DirectiveLiteral",
59 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
60 "extra": {
61 "rawValue": "use strict",
62 "raw": "\"use strict\"",
63 "expressionValue": "use strict"
64 },
65 "value": "use strict"
66 }
67 }
68 ]
69 }
70 }