Debian Codegraph @

packages/babel-parser/test/fixtures/flow/scope/dupl-decl-let-declare-interface/output.json

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