Skip to content

Commit 17ff714

Browse files
committed
Ignore a deprecation warning for now.
This will get fixed shortly after Dart 3.10 ships, but for now I want to keep the repo warning clean.
1 parent ec0048b commit 17ff714

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/dart_formatter.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ final class DartFormatter {
200200
source: stringSource,
201201
offset: token.offset - inputOffset,
202202
length: math.max(token.length, 1),
203+
// TODO(rnystrom): Once Dart 3.10 is published, we can land
204+
// https://github.com/dart-lang/dart_style/pull/1771 which fixes this.
205+
// ignore: deprecated_member_use
203206
diagnosticCode: ParserErrorCode.UNEXPECTED_TOKEN,
204207
arguments: [token.lexeme],
205208
);

0 commit comments

Comments
 (0)