Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/dupe-param-1/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":20,"index":34}},
4 "errors": [
5 "SyntaxError: Argument name clash. (2:14)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":20,"index":34}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":14,"end":34,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":20,"index":34}},
16 "id": {
17 "type": "Identifier",
18 "start":23,"end":24,"loc":{"start":{"line":2,"column":9,"index":23},"end":{"line":2,"column":10,"index":24},"identifierName":"a"},
19 "name": "a"
20 },
21 "generator": false,
22 "async": false,
23 "params": [
24 {
25 "type": "ArrayPattern",
26 "start":25,"end":30,"loc":{"start":{"line":2,"column":11,"index":25},"end":{"line":2,"column":16,"index":30}},
27 "elements": [
28 {
29 "type": "Identifier",
30 "start":26,"end":27,"loc":{"start":{"line":2,"column":12,"index":26},"end":{"line":2,"column":13,"index":27},"identifierName":"a"},
31 "name": "a"
32 },
33 {
34 "type": "Identifier",
35 "start":28,"end":29,"loc":{"start":{"line":2,"column":14,"index":28},"end":{"line":2,"column":15,"index":29},"identifierName":"a"},
36 "name": "a"
37 }
38 ]
39 }
40 ],
41 "body": {
42 "type": "BlockStatement",
43 "start":31,"end":34,"loc":{"start":{"line":2,"column":17,"index":31},"end":{"line":2,"column":20,"index":34}},
44 "body": [],
45 "directives": []
46 }
47 }
48 ],
49 "directives": [
50 {
51 "type": "Directive",
52 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
53 "value": {
54 "type": "DirectiveLiteral",
55 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
56 "extra": {
57 "rawValue": "use strict",
58 "raw": "\"use strict\"",
59 "expressionValue": "use strict"
60 },
61 "value": "use strict"
62 }
63 }
64 ]
65 }
66 }