Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/declaration-function/dupe-param/output.json

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