Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0245/output.json

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