Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit dd9d5b5

Browse files
committed
Chore: Added test for shorthand-ambient-module-declaration (refs #105) (#109)
1 parent a6ee300 commit dd9d5b5

4 files changed

+152
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
module.exports = {
2+
"body": [
3+
{
4+
"flags": 2,
5+
"loc": {
6+
"end": {
7+
"column": 32,
8+
"line": 1
9+
},
10+
"start": {
11+
"column": 0,
12+
"line": 1
13+
}
14+
},
15+
"modifiers": [
16+
{
17+
"flags": 0,
18+
"loc": {
19+
"end": {
20+
"column": 7,
21+
"line": 1
22+
},
23+
"start": {
24+
"column": 0,
25+
"line": 1
26+
}
27+
},
28+
"range": [
29+
0,
30+
7
31+
],
32+
"type": "TSDeclareKeyword"
33+
}
34+
],
35+
"name": {
36+
"loc": {
37+
"end": {
38+
"column": 31,
39+
"line": 1
40+
},
41+
"start": {
42+
"column": 15,
43+
"line": 1
44+
}
45+
},
46+
"range": [
47+
15,
48+
31
49+
],
50+
"raw": "\"hot-new-module\"",
51+
"type": "Literal",
52+
"value": "hot-new-module"
53+
},
54+
"range": [
55+
0,
56+
32
57+
],
58+
"type": "TSModuleDeclaration"
59+
}
60+
],
61+
"loc": {
62+
"end": {
63+
"column": 32,
64+
"line": 1
65+
},
66+
"start": {
67+
"column": 0,
68+
"line": 1
69+
}
70+
},
71+
"range": [
72+
0,
73+
32
74+
],
75+
"sourceType": "script",
76+
"tokens": [
77+
{
78+
"loc": {
79+
"end": {
80+
"column": 7,
81+
"line": 1
82+
},
83+
"start": {
84+
"column": 0,
85+
"line": 1
86+
}
87+
},
88+
"range": [
89+
0,
90+
7
91+
],
92+
"type": "Identifier",
93+
"value": "declare"
94+
},
95+
{
96+
"loc": {
97+
"end": {
98+
"column": 14,
99+
"line": 1
100+
},
101+
"start": {
102+
"column": 8,
103+
"line": 1
104+
}
105+
},
106+
"range": [
107+
8,
108+
14
109+
],
110+
"type": "Identifier",
111+
"value": "module"
112+
},
113+
{
114+
"loc": {
115+
"end": {
116+
"column": 31,
117+
"line": 1
118+
},
119+
"start": {
120+
"column": 15,
121+
"line": 1
122+
}
123+
},
124+
"range": [
125+
15,
126+
31
127+
],
128+
"type": "String",
129+
"value": "\"hot-new-module\""
130+
},
131+
{
132+
"loc": {
133+
"end": {
134+
"column": 32,
135+
"line": 1
136+
},
137+
"start": {
138+
"column": 31,
139+
"line": 1
140+
}
141+
},
142+
"range": [
143+
31,
144+
32
145+
],
146+
"type": "Punctuator",
147+
"value": ";"
148+
}
149+
],
150+
"type": "Program"
151+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module "hot-new-module";

0 commit comments

Comments
 (0)