Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/simple-parameter-list/array-pattern-default/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":57}},
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":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":57}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":57}},
16 "id": {
17 "type": "Identifier",
18 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"a"},
19 "name": "a"
20 },
21 "generator": false,
22 "async": false,
23 "params": [
24 {
25 "type": "AssignmentPattern",
26 "start":11,"end":36,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":36,"index":36}},
27 "left": {
28 "type": "ArrayPattern",
29 "start":11,"end":31,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":31,"index":31}},
30 "elements": [
31 {
32 "type": "Identifier",
33 "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20},"identifierName":"option1"},
34 "name": "option1"
35 },
36 {
37 "type": "Identifier",
38 "start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29},"identifierName":"option2"},
39 "name": "option2"
40 }
41 ]
42 },
43 "right": {
44 "type": "ArrayExpression",
45 "start":34,"end":36,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":36,"index":36}},
46 "elements": []
47 }
48 }
49 ],
50 "body": {
51 "type": "BlockStatement",
52 "start":38,"end":57,"loc":{"start":{"line":1,"column":38,"index":38},"end":{"line":3,"column":1,"index":57}},
53 "body": [],
54 "directives": [
55 {
56 "type": "Directive",
57 "start":42,"end":55,"loc":{"start":{"line":2,"column":2,"index":42},"end":{"line":2,"column":15,"index":55}},
58 "value": {
59 "type": "DirectiveLiteral",
60 "start":42,"end":54,"loc":{"start":{"line":2,"column":2,"index":42},"end":{"line":2,"column":14,"index":54}},
61 "extra": {
62 "rawValue": "use strict",
63 "raw": "\"use strict\"",
64 "expressionValue": "use strict"
65 },
66 "value": "use strict"
67 }
68 }
69 ]
70 }
71 }
72 ],
73 "directives": []
74 }
75 }