Debian Codegraph @

packages/babel-parser/test/fixtures/es2016/simple-parameter-list/object-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": "ObjectPattern",
29 "start":11,"end":31,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":31,"index":31}},
30 "properties": [
31 {
32 "type": "ObjectProperty",
33 "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20}},
34 "key": {
35 "type": "Identifier",
36 "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20},"identifierName":"option1"},
37 "name": "option1"
38 },
39 "computed": false,
40 "method": false,
41 "shorthand": true,
42 "value": {
43 "type": "Identifier",
44 "start":13,"end":20,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":20,"index":20},"identifierName":"option1"},
45 "name": "option1"
46 },
47 "extra": {
48 "shorthand": true
49 }
50 },
51 {
52 "type": "ObjectProperty",
53 "start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29}},
54 "key": {
55 "type": "Identifier",
56 "start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29},"identifierName":"option2"},
57 "name": "option2"
58 },
59 "computed": false,
60 "method": false,
61 "shorthand": true,
62 "value": {
63 "type": "Identifier",
64 "start":22,"end":29,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":29,"index":29},"identifierName":"option2"},
65 "name": "option2"
66 },
67 "extra": {
68 "shorthand": true
69 }
70 }
71 ]
72 },
73 "right": {
74 "type": "ObjectExpression",
75 "start":34,"end":36,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":36,"index":36}},
76 "properties": []
77 }
78 }
79 ],
80 "body": {
81 "type": "BlockStatement",
82 "start":38,"end":57,"loc":{"start":{"line":1,"column":38,"index":38},"end":{"line":3,"column":1,"index":57}},
83 "body": [],
84 "directives": [
85 {
86 "type": "Directive",
87 "start":42,"end":55,"loc":{"start":{"line":2,"column":2,"index":42},"end":{"line":2,"column":15,"index":55}},
88 "value": {
89 "type": "DirectiveLiteral",
90 "start":42,"end":54,"loc":{"start":{"line":2,"column":2,"index":42},"end":{"line":2,"column":14,"index":54}},
91 "extra": {
92 "rawValue": "use strict",
93 "raw": "\"use strict\"",
94 "expressionValue": "use strict"
95 },
96 "value": "use strict"
97 }
98 }
99 ]
100 }
101 }
102 ],
103 "directives": []
104 }
105 }