Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":39}},
4 "errors": [
5 "SyntaxError: Argument name clash. (2:19)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":39}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":14,"end":39,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":25,"index":39}},
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":35,"loc":{"start":{"line":2,"column":11,"index":25},"end":{"line":2,"column":21,"index":35}},
27 "elements": [
28 {
29 "type": "ObjectPattern",
30 "start":26,"end":29,"loc":{"start":{"line":2,"column":12,"index":26},"end":{"line":2,"column":15,"index":29}},
31 "properties": [
32 {
33 "type": "ObjectProperty",
34 "start":27,"end":28,"loc":{"start":{"line":2,"column":13,"index":27},"end":{"line":2,"column":14,"index":28}},
35 "key": {
36 "type": "Identifier",
37 "start":27,"end":28,"loc":{"start":{"line":2,"column":13,"index":27},"end":{"line":2,"column":14,"index":28},"identifierName":"a"},
38 "name": "a"
39 },
40 "computed": false,
41 "method": false,
42 "shorthand": true,
43 "value": {
44 "type": "Identifier",
45 "start":27,"end":28,"loc":{"start":{"line":2,"column":13,"index":27},"end":{"line":2,"column":14,"index":28},"identifierName":"a"},
46 "name": "a"
47 },
48 "extra": {
49 "shorthand": true
50 }
51 }
52 ]
53 },
54 {
55 "type": "RestElement",
56 "start":30,"end":34,"loc":{"start":{"line":2,"column":16,"index":30},"end":{"line":2,"column":20,"index":34}},
57 "argument": {
58 "type": "Identifier",
59 "start":33,"end":34,"loc":{"start":{"line":2,"column":19,"index":33},"end":{"line":2,"column":20,"index":34},"identifierName":"a"},
60 "name": "a"
61 }
62 }
63 ]
64 }
65 ],
66 "body": {
67 "type": "BlockStatement",
68 "start":36,"end":39,"loc":{"start":{"line":2,"column":22,"index":36},"end":{"line":2,"column":25,"index":39}},
69 "body": [],
70 "directives": []
71 }
72 }
73 ],
74 "directives": [
75 {
76 "type": "Directive",
77 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
78 "value": {
79 "type": "DirectiveLiteral",
80 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
81 "extra": {
82 "rawValue": "use strict",
83 "raw": "\"use strict\"",
84 "expressionValue": "use strict"
85 },
86 "value": "use strict"
87 }
88 }
89 ]
90 }
91 }