Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/uncategorised/281/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":56,"index":56}},
4 "errors": [
5 "SyntaxError: Argument name clash. (1:47)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":56,"index":56}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":14,"end":56,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":56,"index":56}},
16 "id": {
17 "type": "Identifier",
18 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24},"identifierName":"x"},
19 "name": "x"
20 },
21 "generator": false,
22 "async": false,
23 "params": [
24 {
25 "type": "ObjectPattern",
26 "start":25,"end":37,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":37,"index":37}},
27 "properties": [
28 {
29 "type": "ObjectProperty",
30 "start":27,"end":35,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":35,"index":35}},
31 "key": {
32 "type": "Identifier",
33 "start":27,"end":28,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":28,"index":28},"identifierName":"b"},
34 "name": "b"
35 },
36 "computed": false,
37 "method": false,
38 "shorthand": false,
39 "value": {
40 "type": "ObjectPattern",
41 "start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35}},
42 "properties": [
43 {
44 "type": "ObjectProperty",
45 "start":32,"end":33,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":33,"index":33}},
46 "key": {
47 "type": "Identifier",
48 "start":32,"end":33,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":33,"index":33},"identifierName":"a"},
49 "name": "a"
50 },
51 "computed": false,
52 "method": false,
53 "shorthand": true,
54 "value": {
55 "type": "Identifier",
56 "start":32,"end":33,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":33,"index":33},"identifierName":"a"},
57 "name": "a"
58 },
59 "extra": {
60 "shorthand": true
61 }
62 }
63 ]
64 }
65 }
66 ]
67 },
68 {
69 "type": "ArrayPattern",
70 "start":39,"end":53,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":53,"index":53}},
71 "elements": [
72 {
73 "type": "ObjectPattern",
74 "start":40,"end":52,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":52,"index":52}},
75 "properties": [
76 {
77 "type": "ObjectProperty",
78 "start":42,"end":50,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":50,"index":50}},
79 "key": {
80 "type": "Identifier",
81 "start":42,"end":43,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":43,"index":43},"identifierName":"b"},
82 "name": "b"
83 },
84 "computed": false,
85 "method": false,
86 "shorthand": false,
87 "value": {
88 "type": "ObjectPattern",
89 "start":45,"end":50,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":50,"index":50}},
90 "properties": [
91 {
92 "type": "ObjectProperty",
93 "start":47,"end":48,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":48,"index":48}},
94 "key": {
95 "type": "Identifier",
96 "start":47,"end":48,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":48,"index":48},"identifierName":"a"},
97 "name": "a"
98 },
99 "computed": false,
100 "method": false,
101 "shorthand": true,
102 "value": {
103 "type": "Identifier",
104 "start":47,"end":48,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":48,"index":48},"identifierName":"a"},
105 "name": "a"
106 },
107 "extra": {
108 "shorthand": true
109 }
110 }
111 ]
112 }
113 }
114 ]
115 }
116 ]
117 }
118 ],
119 "body": {
120 "type": "BlockStatement",
121 "start":54,"end":56,"loc":{"start":{"line":1,"column":54,"index":54},"end":{"line":1,"column":56,"index":56}},
122 "body": [],
123 "directives": []
124 }
125 }
126 ],
127 "directives": [
128 {
129 "type": "Directive",
130 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
131 "value": {
132 "type": "DirectiveLiteral",
133 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
134 "extra": {
135 "rawValue": "use strict",
136 "raw": "\"use strict\"",
137 "expressionValue": "use strict"
138 },
139 "value": "use strict"
140 }
141 }
142 ]
143 }
144 }