Skip to content

Commit

Permalink
Version 3.6.0-326.0.dev
Browse files Browse the repository at this point in the history
Merge 3b8eca8 into dev
  • Loading branch information
Dart CI committed Oct 5, 2024
2 parents 9aa80e3 + 3b8eca8 commit 5e6945a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/analyzer/lib/src/dart/ast/ast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8242,6 +8242,9 @@ sealed class FunctionBodyImpl extends AstNodeImpl implements FunctionBody {
@experimental
@override
bool isPotentiallyMutatedInScope2(VariableElement2 variable) {
if (variable is LocalVariableElementImpl2) {
return isPotentiallyMutatedInScope(variable.wrappedElement);
}
if (variable case VariableElement variable) {
return isPotentiallyMutatedInScope(variable);
}
Expand Down
4 changes: 4 additions & 0 deletions pkg/analyzer/lib/src/dart/element/element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6642,6 +6642,10 @@ class LocalVariableElementImpl2 extends PromotableElementImpl2
@override
DartType get type => _wrappedElement.type;

LocalVariableElementImpl get wrappedElement {
return _wrappedElement;
}

@override
DartObject? computeConstantValue() => _wrappedElement.computeConstantValue();
}
Expand Down
2 changes: 1 addition & 1 deletion tools/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ CHANNEL dev
MAJOR 3
MINOR 6
PATCH 0
PRERELEASE 325
PRERELEASE 326
PRERELEASE_PATCH 0

0 comments on commit 5e6945a

Please sign in to comment.