-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow][match] Autocomplete for member patterns in match expressions
Summary: Autocomplete for match member patterns. Changelog: [internal] Reviewed By: panagosg7 Differential Revision: D67830067 fbshipit-source-id: c95916176240364f16e66182710a03fbe3c901c4
- Loading branch information
1 parent
b62f486
commit a8ea098
Showing
6 changed files
with
114 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
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,14 @@ | ||
declare const x: number; | ||
|
||
declare const O: {foo: 1, bar: {baz: 2}, 'zip-zap': 3}; | ||
|
||
const e = match (x) { | ||
O. : 0, | ||
// ^ | ||
O.f : 0, | ||
// ^ | ||
O.bar.b : 0, | ||
// ^ | ||
O[ ]: 0, | ||
// ^ | ||
}; |
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