-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* iterate objects * changelog * remove test file
- Loading branch information
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
let x = Some(true) | ||
|
||
let _ff = { | ||
"one": switch x { | ||
| Some(true) => "hello" | ||
// | | ||
// ^com | ||
| _ => "" | ||
}, | ||
} |
37 changes: 37 additions & 0 deletions
37
tests/analysis_tests/tests/src/expected/CompletionObjects.res.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Complete src/CompletionObjects.res 5:7 | ||
posCursor:[5:7] posNoWhite:[5:5] Found expr:[2:10->9:1] | ||
posCursor:[5:7] posNoWhite:[5:5] Found expr:[2:10->9:1] | ||
posCursor:[5:7] posNoWhite:[5:5] Found pattern:__ghost__[0:-1->7:5] | ||
posCursor:[5:7] posNoWhite:[5:5] Found pattern:__ghost__[0:-1->7:5] | ||
Completable: Cpattern Value[x] | ||
Package opens Pervasives.JsxModules.place holder | ||
ContextPath Value[x] | ||
Path x | ||
[{ | ||
"label": "None", | ||
"kind": 12, | ||
"tags": [], | ||
"detail": "bool", | ||
"documentation": null | ||
}, { | ||
"label": "Some(_)", | ||
"kind": 12, | ||
"tags": [], | ||
"detail": "bool", | ||
"documentation": null, | ||
"insertText": "Some(${1:_})", | ||
"insertTextFormat": 2 | ||
}, { | ||
"label": "Some(true)", | ||
"kind": 4, | ||
"tags": [], | ||
"detail": "bool", | ||
"documentation": null | ||
}, { | ||
"label": "Some(false)", | ||
"kind": 4, | ||
"tags": [], | ||
"detail": "bool", | ||
"documentation": null | ||
}] | ||
|