Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/yield/parameter-name-strict/output.json

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