Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-generator-catch/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
4 "errors": [
5 "SyntaxError: Can not use 'yield' as identifier inside a generator. (1:30)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
16 "id": {
17 "type": "Identifier",
18 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"g"},
19 "name": "g"
20 },
21 "generator": true,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":14,"end":41,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":41,"index":41}},
27 "body": [
28 {
29 "type": "TryStatement",
30 "start":16,"end":39,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":39,"index":39}},
31 "block": {
32 "type": "BlockStatement",
33 "start":20,"end":22,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":22,"index":22}},
34 "body": [],
35 "directives": []
36 },
37 "handler": {
38 "type": "CatchClause",
39 "start":23,"end":39,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":39,"index":39}},
40 "param": {
41 "type": "Identifier",
42 "start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35},"identifierName":"yield"},
43 "name": "yield"
44 },
45 "body": {
46 "type": "BlockStatement",
47 "start":37,"end":39,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":39,"index":39}},
48 "body": [],
49 "directives": []
50 }
51 },
52 "finalizer": null
53 }
54 ],
55 "directives": []
56 }
57 }
58 ],
59 "directives": []
60 }
61 }