Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-rest-parameter/output.json

raw symbols SCIP
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:28)"
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": "FunctionDeclaration",
15 "start":14,"end":37,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":37,"index":37}},
16 "id": {
17 "type": "Identifier",
18 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24},"identifierName":"f"},
19 "name": "f"
20 },
21 "generator": false,
22 "async": false,
23 "params": [
24 {
25 "type": "RestElement",
26 "start":25,"end":33,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":33,"index":33}},
27 "argument": {
28 "type": "Identifier",
29 "start":28,"end":33,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":33,"index":33},"identifierName":"yield"},
30 "name": "yield"
31 }
32 }
33 ],
34 "body": {
35 "type": "BlockStatement",
36 "start":35,"end":37,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":37,"index":37}},
37 "body": [],
38 "directives": []
39 }
40 }
41 ],
42 "directives": [
43 {
44 "type": "Directive",
45 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
46 "value": {
47 "type": "DirectiveLiteral",
48 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
49 "extra": {
50 "rawValue": "use strict",
51 "raw": "\"use strict\"",
52 "expressionValue": "use strict"
53 },
54 "value": "use strict"
55 }
56 }
57 ]
58 }
59 }