Support flow "match" syntax (#17681)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-08-04 15:27:10 +08:00
1 parent 6c0c37a00c
commit acd25a9aa6
41 files changed
+4824 -34

No files matched your search

+58 -1
View File
@@ -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",