Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":78,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":78}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":78,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":78}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareModule",
12 "start":0,"end":78,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":78}},
13 "id": {
14 "type": "StringLiteral",
15 "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18}},
16 "extra": {
17 "rawValue": "M",
18 "raw": "\"M\""
19 },
20 "value": "M"
21 },
22 "body": {
23 "type": "BlockStatement",
24 "start":19,"end":78,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":4,"column":1,"index":78}},
25 "body": [
26 {
27 "type": "ImportDeclaration",
28 "start":23,"end":47,"loc":{"start":{"line":2,"column":2,"index":23},"end":{"line":2,"column":26,"index":47}},
29 "specifiers": [
30 {
31 "type": "ImportDefaultSpecifier",
32 "start":35,"end":36,"loc":{"start":{"line":2,"column":14,"index":35},"end":{"line":2,"column":15,"index":36}},
33 "local": {
34 "type": "Identifier",
35 "start":35,"end":36,"loc":{"start":{"line":2,"column":14,"index":35},"end":{"line":2,"column":15,"index":36},"identifierName":"T"},
36 "name": "T"
37 }
38 }
39 ],
40 "importKind": "type",
41 "source": {
42 "type": "StringLiteral",
43 "start":42,"end":46,"loc":{"start":{"line":2,"column":21,"index":42},"end":{"line":2,"column":25,"index":46}},
44 "extra": {
45 "rawValue": "TM",
46 "raw": "\"TM\""
47 },
48 "value": "TM"
49 }
50 },
51 {
52 "type": "ImportDeclaration",
53 "start":50,"end":76,"loc":{"start":{"line":3,"column":2,"index":50},"end":{"line":3,"column":28,"index":76}},
54 "specifiers": [
55 {
56 "type": "ImportDefaultSpecifier",
57 "start":64,"end":65,"loc":{"start":{"line":3,"column":16,"index":64},"end":{"line":3,"column":17,"index":65}},
58 "local": {
59 "type": "Identifier",
60 "start":64,"end":65,"loc":{"start":{"line":3,"column":16,"index":64},"end":{"line":3,"column":17,"index":65},"identifierName":"U"},
61 "name": "U"
62 }
63 }
64 ],
65 "importKind": "typeof",
66 "source": {
67 "type": "StringLiteral",
68 "start":71,"end":75,"loc":{"start":{"line":3,"column":23,"index":71},"end":{"line":3,"column":27,"index":75}},
69 "extra": {
70 "rawValue": "UM",
71 "raw": "\"UM\""
72 },
73 "value": "UM"
74 }
75 }
76 ]
77 },
78 "kind": "CommonJS"
79 }
80 ],
81 "directives": []
82 }
83 }