From 17ff7141d79ce7b32de730f4291f8dbb948e97e5 Mon Sep 17 00:00:00 2001 From: Robert Nystrom Date: Tue, 21 Oct 2025 11:16:27 -0700 Subject: [PATCH] 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. --- lib/src/dart_formatter.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/dart_formatter.dart b/lib/src/dart_formatter.dart index 11b305d0..060f617a 100644 --- a/lib/src/dart_formatter.dart +++ b/lib/src/dart_formatter.dart @@ -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], );