| Index: lib/src/codegen/side_effect_analysis.dart
|
| diff --git a/lib/src/codegen/side_effect_analysis.dart b/lib/src/codegen/side_effect_analysis.dart
|
| index 9b58c653d2324dce72a1f1f2eafcecbcdd1ebd2e..92b4ac8f280f73fb89851a3e3b619ffd5a4b9013 100644
|
| --- a/lib/src/codegen/side_effect_analysis.dart
|
| +++ b/lib/src/codegen/side_effect_analysis.dart
|
| @@ -51,7 +51,8 @@ bool isStateless(FunctionBody function, Expression node, [AstNode context]) {
|
|
|
| /// Returns true if the local variable is potentially mutated within [context].
|
| /// This accounts for closures that may have been created outside of [context].
|
| -bool _isPotentiallyMutated(FunctionBody function, VariableElement e, [AstNode context]) {
|
| +bool _isPotentiallyMutated(FunctionBody function, VariableElement e,
|
| + [AstNode context]) {
|
| if (function.isPotentiallyMutatedInClosure(e)) return true;
|
| if (function.isPotentiallyMutatedInScope(e)) {
|
| // Need to visit the context looking for assignment to this local.
|
|
|