Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/object/disallow-duplicate-method-params/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":22}},
4 "errors": [
5 "SyntaxError: Argument name clash. (2:11)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":22}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":22}},
16 "expression": {
17 "type": "ObjectExpression",
18 "start":1,"end":21,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":3,"column":1,"index":21}},
19 "properties": [
20 {
21 "type": "ObjectMethod",
22 "start":7,"end":19,"loc":{"start":{"line":2,"column":4,"index":7},"end":{"line":2,"column":16,"index":19}},
23 "method": true,
24 "key": {
25 "type": "Identifier",
26 "start":7,"end":10,"loc":{"start":{"line":2,"column":4,"index":7},"end":{"line":2,"column":7,"index":10},"identifierName":"bar"},
27 "name": "bar"
28 },
29 "computed": false,
30 "kind": "method",
31 "id": null,
32 "generator": false,
33 "async": false,
34 "params": [
35 {
36 "type": "Identifier",
37 "start":11,"end":12,"loc":{"start":{"line":2,"column":8,"index":11},"end":{"line":2,"column":9,"index":12},"identifierName":"a"},
38 "name": "a"
39 },
40 {
41 "type": "Identifier",
42 "start":14,"end":15,"loc":{"start":{"line":2,"column":11,"index":14},"end":{"line":2,"column":12,"index":15},"identifierName":"a"},
43 "name": "a"
44 }
45 ],
46 "body": {
47 "type": "BlockStatement",
48 "start":17,"end":19,"loc":{"start":{"line":2,"column":14,"index":17},"end":{"line":2,"column":16,"index":19}},
49 "body": [],
50 "directives": []
51 }
52 }
53 ],
54 "extra": {
55 "parenthesized": true,
56 "parenStart": 0
57 }
58 }
59 }
60 ],
61 "directives": []
62 }
63 }