Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":50}},
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":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":50}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":50}},
16 "id": {
17 "type": "Identifier",
18 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"a"},
19 "name": "a"
20 },
21 "generator": false,
22 "async": true,
23 "params": [
24 {
25 "type": "AssignmentPattern",
26 "start":17,"end":29,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":29,"index":29}},
27 "left": {
28 "type": "Identifier",
29 "start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24},"identifierName":"options"},
30 "name": "options"
31 },
32 "right": {
33 "type": "ObjectExpression",
34 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}},
35 "properties": []
36 }
37 }
38 ],
39 "body": {
40 "type": "BlockStatement",
41 "start":31,"end":50,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":3,"column":1,"index":50}},
42 "body": [],
43 "directives": [
44 {
45 "type": "Directive",
46 "start":35,"end":48,"loc":{"start":{"line":2,"column":2,"index":35},"end":{"line":2,"column":15,"index":48}},
47 "value": {
48 "type": "DirectiveLiteral",
49 "start":35,"end":47,"loc":{"start":{"line":2,"column":2,"index":35},"end":{"line":2,"column":14,"index":47}},
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 }