| Index: lib/src/source_visitor.dart
|
| diff --git a/lib/src/source_visitor.dart b/lib/src/source_visitor.dart
|
| index 3e7c3dca65ff8d832063fbc31e60845416ff8ad9..a59ff5e1d968a17684588025df60868ed6e2beb5 100644
|
| --- a/lib/src/source_visitor.dart
|
| +++ b/lib/src/source_visitor.dart
|
| @@ -1676,6 +1676,10 @@ class SourceVisitor implements AstVisitor {
|
| if (elements.isEmpty && rightBracket.precedingComments == null) {
|
| token(leftBracket);
|
| token(rightBracket);
|
| +
|
| + // Clear this out in case this empty collection is in an argument list.
|
| + // We don't want this rule to bleed over to some other collection.
|
| + _nextLiteralBodyRule = null;
|
| return;
|
| }
|
|
|
|
|