Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/src/dart_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ final class DartFormatter {
source: stringSource,
offset: token.offset - inputOffset,
length: math.max(token.length, 1),
// TODO(rnystrom): Once Dart 3.10 is published, we can land
// https://github.com/dart-lang/dart_style/pull/1771 which fixes this.
// ignore: deprecated_member_use
diagnosticCode: ParserErrorCode.UNEXPECTED_TOKEN,
arguments: [token.lexeme],
);
Expand Down