-
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] Add autocomplete for
match
as a keyword in an express…
…ion context if enabled Summary: Add autocomplete for `match` as a keyword in an expression context if pattern matching expressions are enabled. Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D67817950 fbshipit-source-id: 4aecd64be825474412af7927c0007eae68f0c605
- Loading branch information
1 parent
c752e15
commit 24bb379
Showing
8 changed files
with
52 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[options] | ||
all=true | ||
experimental.pattern_matching_expressions=true |
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 @@ | ||
shell: test.sh |
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,19 @@ | ||
keyword-expression.js:1:10 | ||
Flags: --pretty | ||
{ | ||
"result":[ | ||
{"name":"async","type":""}, | ||
{"name":"await","type":""}, | ||
{"name":"class","type":""}, | ||
{"name":"delete","type":""}, | ||
{"name":"e","type":"empty"}, | ||
{"name":"function","type":""}, | ||
{"name":"import","type":""}, | ||
{"name":"match","type":""}, | ||
{"name":"new","type":""}, | ||
{"name":"typeof","type":""}, | ||
{"name":"void","type":""}, | ||
{"name":"yield","type":""} | ||
] | ||
} | ||
|
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,2 @@ | ||
const e = | ||
// ^ |
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,9 @@ | ||
#!/bin/bash | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
# shellcheck disable=SC2094 | ||
|
||
queries_in_file autocomplete "keyword-expression.js" --pretty |