Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/uncategorised/280/output.json

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