Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":39}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'yield'. (2:16)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":39}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":14,"end":39,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":25,"index":39}},
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": "AssignmentPattern",
26 "start":26,"end":35,"loc":{"start":{"line":2,"column":12,"index":26},"end":{"line":2,"column":21,"index":35}},
27 "left": {
28 "type": "Identifier",
29 "start":26,"end":27,"loc":{"start":{"line":2,"column":12,"index":26},"end":{"line":2,"column":13,"index":27},"identifierName":"x"},
30 "name": "x"
31 },
32 "right": {
33 "type": "Identifier",
34 "start":30,"end":35,"loc":{"start":{"line":2,"column":16,"index":30},"end":{"line":2,"column":21,"index":35},"identifierName":"yield"},
35 "name": "yield"
36 }
37 }
38 ],
39 "body": {
40 "type": "BlockStatement",
41 "start":37,"end":39,"loc":{"start":{"line":2,"column":23,"index":37},"end":{"line":2,"column":25,"index":39}},
42 "body": [],
43 "directives": []
44 }
45 }
46 ],
47 "directives": [
48 {
49 "type": "Directive",
50 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
51 "value": {
52 "type": "DirectiveLiteral",
53 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
54 "extra": {
55 "rawValue": "use strict",
56 "raw": "\"use strict\"",
57 "expressionValue": "use strict"
58 },
59 "value": "use strict"
60 }
61 }
62 ]
63 }
64 }