Skip to content

Commit

Permalink
Fix comment nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
kallentu committed Jan 23, 2024
1 parent 3c4e3c7 commit ab72025
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions lib/src/ast_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,9 @@ extension PatternExtensions on DartPattern {
/// expressions that allows "block-like" formatting in some contexts.
///
/// See [ExpressionExtensions.canBlockSplit].
bool get canBlockSplit {
return switch (this) {
ListPattern(:var elements, :var rightBracket) =>
elements.canSplit(rightBracket),
_ => false,
};
}
bool get canBlockSplit => switch (this) {
ListPattern(:var elements, :var rightBracket) =>
elements.canSplit(rightBracket),
_ => false,
};
}
2 changes: 1 addition & 1 deletion lib/src/front_end/piece_factory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ mixin PieceFactory {
});
}

/// Creates a [ListPiece] for a collection literal.
/// Creates a [ListPiece] for a collection literal or pattern.
Piece createCollection(
Token leftBracket,
List<AstNode> elements,
Expand Down

0 comments on commit ab72025

Please sign in to comment.