Skip to content

Commit 7f11744

Browse files
committed
add base test for what we're looking to complete
1 parent 94c0173 commit 7f11744

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
let someFn = (~isOn) => {
2+
if isOn {
3+
"on"
4+
} else {
5+
"off"
6+
}
7+
}
8+
9+
// let _ = someFn(~isOn=)
10+
// ^com
11+
12+
// let _ = someFn(~isOn=t)
13+
// ^com
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Complete src/CompletionFunctionArguments.res 8:24
2+
posCursor:[8:24] posNoWhite:[8:23] Found expr:[8:11->8:25]
3+
Pexp_apply ...[8:11->8:17] (~isOn8:19->8:23=...__ghost__[0:-1->0:-1])
4+
Completable: CnamedArg(Value[someFn], "", [isOn])
5+
Found type for function (~isOn: bool) => string
6+
[]
7+
8+
Complete src/CompletionFunctionArguments.res 11:25
9+
posCursor:[11:25] posNoWhite:[11:24] Found expr:[11:11->11:26]
10+
Pexp_apply ...[11:11->11:17] (~isOn11:19->11:23=...[11:24->11:25])
11+
posCursor:[11:25] posNoWhite:[11:24] Found expr:[11:24->11:25]
12+
Pexp_ident t:[11:24->11:25]
13+
Completable: Cpath Value[t]
14+
[]
15+

0 commit comments

Comments
 (0)