diff --git a/lib/src/dart_formatter.dart b/lib/src/dart_formatter.dart index 11b305d0..d12e5211 100644 --- a/lib/src/dart_formatter.dart +++ b/lib/src/dart_formatter.dart @@ -200,7 +200,7 @@ final class DartFormatter { source: stringSource, offset: token.offset - inputOffset, length: math.max(token.length, 1), - diagnosticCode: ParserErrorCode.UNEXPECTED_TOKEN, + diagnosticCode: ParserErrorCode.unexpectedToken, arguments: [token.lexeme], ); throw FormatterException([error]); diff --git a/pubspec.yaml b/pubspec.yaml index 31ef62e2..de655f9b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,7 +9,7 @@ environment: sdk: ^3.7.0 dependencies: - analyzer: ^8.1.0 + analyzer: ^8.2.0 args: ^2.0.0 collection: ^1.19.0 package_config: ^2.1.0