Version 3.6.0-326.0.dev

Merge 3b8eca821c526bc80259fc67c845c2f1cc3e2f70 into dev
diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart
index e601314..22e9b51 100644
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart
@@ -8242,6 +8242,9 @@
   @experimental
   @override
   bool isPotentiallyMutatedInScope2(VariableElement2 variable) {
+    if (variable is LocalVariableElementImpl2) {
+      return isPotentiallyMutatedInScope(variable.wrappedElement);
+    }
     if (variable case VariableElement variable) {
       return isPotentiallyMutatedInScope(variable);
     }
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index a697900..3333178 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -6642,6 +6642,10 @@
   @override
   DartType get type => _wrappedElement.type;
 
+  LocalVariableElementImpl get wrappedElement {
+    return _wrappedElement;
+  }
+
   @override
   DartObject? computeConstantValue() => _wrappedElement.computeConstantValue();
 }
diff --git a/tools/VERSION b/tools/VERSION
index 272e31a..9a85756 100644
--- a/tools/VERSION
+++ b/tools/VERSION
@@ -27,5 +27,5 @@
 MAJOR 3
 MINOR 6
 PATCH 0
-PRERELEASE 325
+PRERELEASE 326
 PRERELEASE_PATCH 0