Index: lib/src/source_visitor.dart |
diff --git a/lib/src/source_visitor.dart b/lib/src/source_visitor.dart |
index 6c9f01355654dfef10b613147da3ee74708cc17a..a34b36789e70b91f0226e75fd12f41c67e349361 100644 |
--- a/lib/src/source_visitor.dart |
+++ b/lib/src/source_visitor.dart |
@@ -2071,7 +2071,8 @@ class SourceVisitor implements AstVisitor { |
/// Returns `true` if [node] is immediately contained within an anonymous |
/// [FunctionExpression]. |
- bool _isInLambda(AstNode node) => node.parent is FunctionExpression && |
+ bool _isInLambda(AstNode node) => |
+ node.parent is FunctionExpression && |
node.parent.parent is! FunctionDeclaration; |
/// Writes the string literal [string] to the output. |