Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/simple-parameter-list/generator-function/output.json

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