Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/invalid-yield-strict-catch-parameter/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: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": "TryStatement",
15 "start":14,"end":37,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":37,"index":37}},
16 "block": {
17 "type": "BlockStatement",
18 "start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}},
19 "body": [],
20 "directives": []
21 },
22 "handler": {
23 "type": "CatchClause",
24 "start":21,"end":37,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":37,"index":37}},
25 "param": {
26 "type": "Identifier",
27 "start":28,"end":33,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":33,"index":33},"identifierName":"yield"},
28 "name": "yield"
29 },
30 "body": {
31 "type": "BlockStatement",
32 "start":35,"end":37,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":37,"index":37}},
33 "body": [],
34 "directives": []
35 }
36 },
37 "finalizer": null
38 }
39 ],
40 "directives": [
41 {
42 "type": "Directive",
43 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
44 "value": {
45 "type": "DirectiveLiteral",
46 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
47 "extra": {
48 "rawValue": "use strict",
49 "raw": "\"use strict\"",
50 "expressionValue": "use strict"
51 },
52 "value": "use strict"
53 }
54 }
55 ]
56 }
57 }