Debian Codegraph @

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

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