Support flow "match" syntax (#17681)
This commit is contained in:
1 parent
6c0c37a00c
commit
acd25a9aa6
41 files changed
+4824
-34
No files matched your search
@@ -1,4 +1,4 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
||||
|
||||
exports[`visitor keys estree 1`] = `
|
||||
{
|
||||
@@ -523,6 +523,63 @@ exports[`visitor keys estree 1`] = `
|
||||
"left",
|
||||
"right",
|
||||
],
|
||||
"MatchArrayPattern": [
|
||||
"elements",
|
||||
"rest",
|
||||
],
|
||||
"MatchAsPattern": [
|
||||
"pattern",
|
||||
"target",
|
||||
],
|
||||
"MatchBindingPattern": [
|
||||
"id",
|
||||
],
|
||||
"MatchExpression": [
|
||||
"argument",
|
||||
"cases",
|
||||
],
|
||||
"MatchExpressionCase": [
|
||||
"body",
|
||||
"guard",
|
||||
"pattern",
|
||||
],
|
||||
"MatchIdentifierPattern": [
|
||||
"id",
|
||||
],
|
||||
"MatchLiteralPattern": [
|
||||
"literal",
|
||||
],
|
||||
"MatchMemberPattern": [
|
||||
"base",
|
||||
"property",
|
||||
],
|
||||
"MatchObjectPattern": [
|
||||
"properties",
|
||||
"rest",
|
||||
],
|
||||
"MatchObjectPatternProperty": [
|
||||
"key",
|
||||
"pattern",
|
||||
],
|
||||
"MatchOrPattern": [
|
||||
"patterns",
|
||||
],
|
||||
"MatchRestPattern": [
|
||||
"argument",
|
||||
],
|
||||
"MatchStatement": [
|
||||
"argument",
|
||||
"cases",
|
||||
],
|
||||
"MatchStatementCase": [
|
||||
"body",
|
||||
"guard",
|
||||
"pattern",
|
||||
],
|
||||
"MatchUnaryPattern": [
|
||||
"argument",
|
||||
],
|
||||
"MatchWildcardPattern": [],
|
||||
"MemberExpression": [
|
||||
"object",
|
||||
"property",
|
||||
|
||||
Reference in new issue
Block a user