Skip to content

Commit

Permalink
Version 3.5.0-87.0.dev
Browse files Browse the repository at this point in the history
Merge faeaff4 into dev
  • Loading branch information
Dart CI committed Apr 22, 2024
2 parents 95f95b3 + faeaff4 commit 4aa8f4c
Show file tree
Hide file tree
Showing 52 changed files with 2,645 additions and 2,431 deletions.
7 changes: 0 additions & 7 deletions pkg/_fe_analyzer_shared/lib/src/parser/parser_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,10 @@ class Parser {
/// [parsePrimaryPattern] and [parsePattern].
bool isLastPatternAllowedInsideUnaryPattern = false;

/// Indicates whether the macros feature is enabled.
final bool enableFeatureMacros;

Parser(
this.listener, {
this.useImplicitCreationExpression = true,
this.allowPatterns = false,
this.enableFeatureMacros = false,
}) : assert(listener != null); // ignore:unnecessary_null_comparison

/// Executes [callback]; however if `this` is the `TestParser` (from
Expand Down Expand Up @@ -2374,9 +2370,6 @@ class Parser {
Token next = token.next!;
if (optional('}', next) || optional(';', next)) {
token = next;
if (elementCount == 0 && !enableFeatureMacros) {
reportRecoverableError(token, codes.messageEnumDeclarationEmpty);
}
break;
}
token = parseEnumElement(token);
Expand Down
Loading

0 comments on commit 4aa8f4c

Please sign in to comment.