Remove 'final' from pattern variables fields.

Bug: https://buganizer.corp.google.com/issues/260986270
Change-Id: I0afc38a49a6714b42304a51cbb7869caff278d86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/273260
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Konstantin Shcheglov 2022-12-01 18:28:28 +00:00 committed by Commit Queue
parent 4a5eff63d7
commit 1f42c2a6f3

View file

@ -6473,7 +6473,7 @@ class GuardedPatternImpl extends AstNodeImpl implements GuardedPattern {
/// Variables declared in [pattern], available in [whenClause] guard, and
/// to the `ifTrue` node.
late final Map<String, PromotableElement> variables;
late Map<String, PromotableElement> variables;
@override
final WhenClauseImpl? whenClause;
@ -12574,7 +12574,7 @@ class SwitchStatementCaseGroup {
final bool hasLabels;
/// Joined variables declared in [members], available in [statements].
late final Map<String, PromotableElement> variables;
late Map<String, PromotableElement> variables;
SwitchStatementCaseGroup(this.members, this.hasLabels);