Debian Codegraph @

packages/babel-parser/test/fixtures/flow/scope/dupl-decl-const-declare-class/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":18,"index":31}},
4 "errors": [
5 "SyntaxError: Identifier 'A' has already been declared. (2:14)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":18,"index":31}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":6,"end":11,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":11,"index":11}},
20 "id": {
21 "type": "Identifier",
22 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
23 "name": "A"
24 },
25 "init": {
26 "type": "NumericLiteral",
27 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11}},
28 "extra": {
29 "rawValue": 1,
30 "raw": "1"
31 },
32 "value": 1
33 }
34 }
35 ],
36 "kind": "const"
37 },
38 {
39 "type": "DeclareClass",
40 "start":13,"end":31,"loc":{"start":{"line":2,"column":0,"index":13},"end":{"line":2,"column":18,"index":31}},
41 "id": {
42 "type": "Identifier",
43 "start":27,"end":28,"loc":{"start":{"line":2,"column":14,"index":27},"end":{"line":2,"column":15,"index":28},"identifierName":"A"},
44 "name": "A"
45 },
46 "typeParameters": null,
47 "extends": [],
48 "implements": [],
49 "mixins": [],
50 "body": {
51 "type": "ObjectTypeAnnotation",
52 "start":29,"end":31,"loc":{"start":{"line":2,"column":16,"index":29},"end":{"line":2,"column":18,"index":31}},
53 "callProperties": [],
54 "properties": [],
55 "indexers": [],
56 "internalSlots": [],
57 "exact": false
58 }
59 }
60 ],
61 "directives": []
62 }
63 }