Skip to content

Commit 0fcb318

Browse files
committed
add tests to focus on for first iteration
1 parent 97ef1fa commit 0fcb318

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
type someRecord = {
2+
age: int,
3+
name: string,
4+
}
5+
6+
type someVariant = One | Two(bool)
7+
8+
type somePolyVariant = [#one | #two(bool)]
9+
10+
// let x: someRecord =
11+
// ^com
12+
13+
// let x: someRecord = {}
14+
// ^com
15+
16+
// let x: someVariant =
17+
// ^com
18+
19+
// let x: someVariant = O
20+
// ^com
21+
22+
// let x: somePolyVariant =
23+
// ^com
24+
25+
// let x: somePolyVariant = #o
26+
// ^com
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Complete src/CompletionTypeAnnotation.res 9:22
2+
XXX Not found!
3+
[]
4+
5+
Complete src/CompletionTypeAnnotation.res 12:24
6+
posCursor:[12:24] posNoWhite:[12:23] Found expr:[12:23->12:25]
7+
[]
8+
9+
Complete src/CompletionTypeAnnotation.res 15:23
10+
XXX Not found!
11+
[]
12+
13+
Complete src/CompletionTypeAnnotation.res 18:25
14+
posCursor:[18:25] posNoWhite:[18:24] Found expr:[18:24->18:25]
15+
Pexp_construct O:[18:24->18:25] None
16+
Completable: Cpath Value[O]
17+
[{
18+
"label": "One",
19+
"kind": 4,
20+
"tags": [],
21+
"detail": "One\n\ntype someVariant = One | Two(bool)",
22+
"documentation": null
23+
}, {
24+
"label": "Obj",
25+
"kind": 9,
26+
"tags": [],
27+
"detail": "file module",
28+
"documentation": null
29+
}, {
30+
"label": "Object",
31+
"kind": 9,
32+
"tags": [],
33+
"detail": "file module",
34+
"documentation": null
35+
}]
36+
37+
Complete src/CompletionTypeAnnotation.res 21:27
38+
XXX Not found!
39+
[]
40+
41+
Complete src/CompletionTypeAnnotation.res 24:30
42+
posCursor:[24:30] posNoWhite:[24:29] Found expr:[24:28->24:30]
43+
[]
44+

0 commit comments

Comments
 (0)