From 4751ed0bb8675402c66d530b99fff94e327e175c Mon Sep 17 00:00:00 2001 From: Erik Ernst Date: Fri, 10 Mar 2023 11:39:21 +0000 Subject: [PATCH] Remove unused non-terminal The non-terminal `patterns` is not used any more. This CL removes the rule where it is introduced. Change-Id: I2a8e957957d71999807a0e00fe102e61ed5ec173 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/288202 Reviewed-by: William Hesse Commit-Queue: Erik Ernst --- tools/spec_parser/Dart.g | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/spec_parser/Dart.g b/tools/spec_parser/Dart.g index f228af5f4b3..fac1476d3fe 100644 --- a/tools/spec_parser/Dart.g +++ b/tools/spec_parser/Dart.g @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // CHANGES: +// v0.32 Remove unused non-terminal `patterns`. +// // v0.31 Inline `identifierNotFUNCTION` into `identifier`. Replace all // other references with `identifier` to match the spec. // @@ -1038,10 +1040,6 @@ pattern : logicalOrPattern ; -patterns - : pattern (',' pattern)* ','? - ; - logicalOrPattern : logicalAndPattern ('||' logicalAndPattern)* ;