Debian Codegraph @

packages/babel-parser/test/fixtures/flow/scope/declare-module/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":10,"index":53}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":10,"index":53}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModule",
12 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":41}},
13 "id": {
14 "type": "Identifier",
15 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"A"},
16 "name": "A"
17 },
18 "body": {
19 "type": "BlockStatement",
20 "start":17,"end":41,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":3,"column":1,"index":41}},
21 "body": [
22 {
23 "type": "DeclareClass",
24 "start":21,"end":39,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":20,"index":39}},
25 "id": {
26 "type": "Identifier",
27 "start":35,"end":36,"loc":{"start":{"line":2,"column":16,"index":35},"end":{"line":2,"column":17,"index":36},"identifierName":"X"},
28 "name": "X"
29 },
30 "typeParameters": null,
31 "extends": [],
32 "implements": [],
33 "mixins": [],
34 "body": {
35 "type": "ObjectTypeAnnotation",
36 "start":37,"end":39,"loc":{"start":{"line":2,"column":18,"index":37},"end":{"line":2,"column":20,"index":39}},
37 "callProperties": [],
38 "properties": [],
39 "indexers": [],
40 "internalSlots": [],
41 "exact": false
42 }
43 }
44 ]
45 },
46 "kind": "CommonJS"
47 },
48 {
49 "type": "ClassDeclaration",
50 "start":43,"end":53,"loc":{"start":{"line":5,"column":0,"index":43},"end":{"line":5,"column":10,"index":53}},
51 "id": {
52 "type": "Identifier",
53 "start":49,"end":50,"loc":{"start":{"line":5,"column":6,"index":49},"end":{"line":5,"column":7,"index":50},"identifierName":"X"},
54 "name": "X"
55 },
56 "superClass": null,
57 "body": {
58 "type": "ClassBody",
59 "start":51,"end":53,"loc":{"start":{"line":5,"column":8,"index":51},"end":{"line":5,"column":10,"index":53}},
60 "body": []
61 }
62 }
63 ],
64 "directives": []
65 }
66 }