diff --git a/pkg/_fe_analyzer_shared/PRESUBMIT.py b/pkg/_fe_analyzer_shared/PRESUBMIT.py index a5bcbc5ee2f..a04d974e09d 100644 --- a/pkg/_fe_analyzer_shared/PRESUBMIT.py +++ b/pkg/_fe_analyzer_shared/PRESUBMIT.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 -# Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file +# Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. -"""Shared front-end analyzer specific presubmit script. +"""CFE et al presubmit python script. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl. @@ -30,45 +30,35 @@ def load_source(modname, filename): def runSmokeTest(input_api, output_api): - hasChangedFiles = False - for git_file in input_api.AffectedTextFiles(): - filename = git_file.AbsoluteLocalPath() - if filename.endswith(".dart"): - hasChangedFiles = True - break + local_root = input_api.change.RepositoryRoot() + utils = load_source('utils', os.path.join(local_root, 'tools', 'utils.py')) + dart = os.path.join(utils.CheckedInSdkPath(), 'bin', 'dart') + test_helper = os.path.join(local_root, 'pkg', 'front_end', + 'presubmit_helper.dart') - if hasChangedFiles: - local_root = input_api.change.RepositoryRoot() - utils = load_source('utils', - os.path.join(local_root, 'tools', 'utils.py')) - dart = os.path.join(utils.CheckedInSdkPath(), 'bin', 'dart') - smoke_test = os.path.join(local_root, 'pkg', '_fe_analyzer_shared', - 'tool', 'smoke_test_quick.dart') + windows = utils.GuessOS() == 'win32' + if windows: + dart += '.exe' - windows = utils.GuessOS() == 'win32' - if windows: - dart += '.exe' + if not os.path.isfile(dart): + print('WARNING: dart not found: %s' % dart) + return [] - if not os.path.isfile(dart): - print('WARNING: dart not found: %s' % dart) - return [] + if not os.path.isfile(test_helper): + print('WARNING: CFE et al presubmit_helper not found: %s' % test_helper) + return [] - if not os.path.isfile(smoke_test): - print('WARNING: _fe_analyzer_shared smoke test not found: %s' % - smoke_test) - return [] + args = [dart, test_helper, input_api.PresubmitLocalPath()] + process = subprocess.Popen(args, + stdout=subprocess.PIPE, + stdin=subprocess.PIPE) + outs, _ = process.communicate() - args = [dart, smoke_test] - process = subprocess.Popen( - args, stdout=subprocess.PIPE, stdin=subprocess.PIPE) - outs, _ = process.communicate() - - if process.returncode != 0: - return [ - output_api.PresubmitError( - '_fe_analyzer_shared smoke test failure(s):', - long_text=outs) - ] + if process.returncode != 0: + return [ + output_api.PresubmitError('CFE et al presubmit script failure(s):', + long_text=outs) + ] return [] diff --git a/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart b/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart index 86ba7d40b56..182d3274a0c 100644 --- a/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart +++ b/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart @@ -17,30 +17,39 @@ const Code codeAbstractClassConstructorTearOff = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractClassConstructorTearOff = const MessageCode( - "AbstractClassConstructorTearOff", - problemMessage: r"""Constructors on abstract classes can't be torn off."""); + "AbstractClassConstructorTearOff", + problemMessage: r"""Constructors on abstract classes can't be torn off.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateAbstractClassInstantiation = - const Template("AbstractClassInstantiation", - problemMessageTemplate: - r"""The class '#name' is abstract and can't be instantiated.""", - withArguments: _withArgumentsAbstractClassInstantiation); + const Template( + "AbstractClassInstantiation", + problemMessageTemplate: + r"""The class '#name' is abstract and can't be instantiated.""", + withArguments: _withArgumentsAbstractClassInstantiation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractClassInstantiation = - const Code("AbstractClassInstantiation", - analyzerCodes: ["NEW_WITH_ABSTRACT_CLASS"]); + const Code( + "AbstractClassInstantiation", + analyzerCodes: ["NEW_WITH_ABSTRACT_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsAbstractClassInstantiation(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeAbstractClassInstantiation, - problemMessage: - """The class '${name}' is abstract and can't be instantiated.""", - arguments: {'name': name}); + return new Message( + codeAbstractClassInstantiation, + problemMessage: + """The class '${name}' is abstract and can't be instantiated.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -48,67 +57,71 @@ const Code codeAbstractClassMember = messageAbstractClassMember; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractClassMember = const MessageCode( - "AbstractClassMember", - index: 51, - problemMessage: - r"""Members of classes can't be declared to be 'abstract'.""", - correctionMessage: - r"""Try removing the 'abstract' keyword. You can add the 'abstract' keyword before the class declaration."""); + "AbstractClassMember", + index: 51, + problemMessage: r"""Members of classes can't be declared to be 'abstract'.""", + correctionMessage: + r"""Try removing the 'abstract' keyword. You can add the 'abstract' keyword before the class declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractExtensionField = messageAbstractExtensionField; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractExtensionField = const MessageCode( - "AbstractExtensionField", - analyzerCodes: ["ABSTRACT_EXTENSION_FIELD"], - problemMessage: r"""Extension fields can't be declared 'abstract'.""", - correctionMessage: r"""Try removing the 'abstract' keyword."""); + "AbstractExtensionField", + analyzerCodes: ["ABSTRACT_EXTENSION_FIELD"], + problemMessage: r"""Extension fields can't be declared 'abstract'.""", + correctionMessage: r"""Try removing the 'abstract' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractExternalField = messageAbstractExternalField; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractExternalField = const MessageCode( - "AbstractExternalField", - index: 110, - problemMessage: - r"""Fields can't be declared both 'abstract' and 'external'.""", - correctionMessage: - r"""Try removing the 'abstract' or 'external' keyword."""); + "AbstractExternalField", + index: 110, + problemMessage: + r"""Fields can't be declared both 'abstract' and 'external'.""", + correctionMessage: r"""Try removing the 'abstract' or 'external' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractFieldConstructorInitializer = messageAbstractFieldConstructorInitializer; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageAbstractFieldConstructorInitializer = const MessageCode( - "AbstractFieldConstructorInitializer", - problemMessage: r"""Abstract fields cannot have initializers.""", - correctionMessage: - r"""Try removing the field initializer or the 'abstract' keyword from the field declaration."""); +const MessageCode messageAbstractFieldConstructorInitializer = + const MessageCode( + "AbstractFieldConstructorInitializer", + problemMessage: r"""Abstract fields cannot have initializers.""", + correctionMessage: + r"""Try removing the field initializer or the 'abstract' keyword from the field declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractFieldInitializer = messageAbstractFieldInitializer; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractFieldInitializer = const MessageCode( - "AbstractFieldInitializer", - problemMessage: r"""Abstract fields cannot have initializers.""", - correctionMessage: - r"""Try removing the initializer or the 'abstract' keyword."""); + "AbstractFieldInitializer", + problemMessage: r"""Abstract fields cannot have initializers.""", + correctionMessage: + r"""Try removing the initializer or the 'abstract' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractFinalBaseClass = messageAbstractFinalBaseClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractFinalBaseClass = const MessageCode( - "AbstractFinalBaseClass", - index: 176, - problemMessage: - r"""An 'abstract' class can't be declared as both 'final' and 'base'.""", - correctionMessage: - r"""Try removing either the 'final' or 'base' keyword."""); + "AbstractFinalBaseClass", + index: 176, + problemMessage: + r"""An 'abstract' class can't be declared as both 'final' and 'base'.""", + correctionMessage: r"""Try removing either the 'final' or 'base' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractFinalInterfaceClass = @@ -116,57 +129,66 @@ const Code codeAbstractFinalInterfaceClass = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractFinalInterfaceClass = const MessageCode( - "AbstractFinalInterfaceClass", - index: 177, - problemMessage: - r"""An 'abstract' class can't be declared as both 'final' and 'interface'.""", - correctionMessage: - r"""Try removing either the 'final' or 'interface' keyword."""); + "AbstractFinalInterfaceClass", + index: 177, + problemMessage: + r"""An 'abstract' class can't be declared as both 'final' and 'interface'.""", + correctionMessage: + r"""Try removing either the 'final' or 'interface' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractLateField = messageAbstractLateField; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractLateField = const MessageCode( - "AbstractLateField", - index: 108, - problemMessage: r"""Abstract fields cannot be late.""", - correctionMessage: r"""Try removing the 'abstract' or 'late' keyword."""); + "AbstractLateField", + index: 108, + problemMessage: r"""Abstract fields cannot be late.""", + correctionMessage: r"""Try removing the 'abstract' or 'late' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractNotSync = messageAbstractNotSync; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageAbstractNotSync = const MessageCode("AbstractNotSync", - analyzerCodes: ["NON_SYNC_ABSTRACT_METHOD"], - problemMessage: - r"""Abstract methods can't use 'async', 'async*', or 'sync*'."""); +const MessageCode messageAbstractNotSync = const MessageCode( + "AbstractNotSync", + analyzerCodes: ["NON_SYNC_ABSTRACT_METHOD"], + problemMessage: + r"""Abstract methods can't use 'async', 'async*', or 'sync*'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateAbstractRedirectedClassInstantiation = const Template< - Message Function(String name)>("AbstractRedirectedClassInstantiation", - problemMessageTemplate: - r"""Factory redirects to class '#name', which is abstract and can't be instantiated.""", - withArguments: _withArgumentsAbstractRedirectedClassInstantiation); +const Template + templateAbstractRedirectedClassInstantiation = + const Template( + "AbstractRedirectedClassInstantiation", + problemMessageTemplate: + r"""Factory redirects to class '#name', which is abstract and can't be instantiated.""", + withArguments: _withArgumentsAbstractRedirectedClassInstantiation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractRedirectedClassInstantiation = const Code( - "AbstractRedirectedClassInstantiation", - analyzerCodes: ["FACTORY_REDIRECTS_TO_ABSTRACT_CLASS"]); + "AbstractRedirectedClassInstantiation", + analyzerCodes: ["FACTORY_REDIRECTS_TO_ABSTRACT_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsAbstractRedirectedClassInstantiation(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeAbstractRedirectedClassInstantiation, - problemMessage: - """Factory redirects to class '${name}', which is abstract and can't be instantiated.""", - arguments: {'name': name}); + return new Message( + codeAbstractRedirectedClassInstantiation, + problemMessage: + """Factory redirects to class '${name}', which is abstract and can't be instantiated.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -174,27 +196,31 @@ const Code codeAbstractSealedClass = messageAbstractSealedClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractSealedClass = const MessageCode( - "AbstractSealedClass", - index: 132, - problemMessage: - r"""A 'sealed' class can't be marked 'abstract' because it's already implicitly abstract.""", - correctionMessage: r"""Try removing the 'abstract' keyword."""); + "AbstractSealedClass", + index: 132, + problemMessage: + r"""A 'sealed' class can't be marked 'abstract' because it's already implicitly abstract.""", + correctionMessage: r"""Try removing the 'abstract' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAbstractStaticField = messageAbstractStaticField; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAbstractStaticField = const MessageCode( - "AbstractStaticField", - index: 107, - problemMessage: r"""Static fields can't be declared 'abstract'.""", - correctionMessage: r"""Try removing the 'abstract' or 'static' keyword."""); + "AbstractStaticField", + index: 107, + problemMessage: r"""Static fields can't be declared 'abstract'.""", + correctionMessage: r"""Try removing the 'abstract' or 'static' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateAccessError = - const Template("AccessError", - problemMessageTemplate: r"""Access error: '#name'.""", - withArguments: _withArgumentsAccessError); + const Template( + "AccessError", + problemMessageTemplate: r"""Access error: '#name'.""", + withArguments: _withArgumentsAccessError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAccessError = @@ -206,9 +232,13 @@ const Code codeAccessError = Message _withArgumentsAccessError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeAccessError, - problemMessage: """Access error: '${name}'.""", - arguments: {'name': name}); + return new Message( + codeAccessError, + problemMessage: """Access error: '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -217,9 +247,10 @@ const Code codeAgnosticWithStrongDillLibrary = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAgnosticWithStrongDillLibrary = const MessageCode( - "AgnosticWithStrongDillLibrary", - problemMessage: - r"""Loaded library is compiled with sound null safety and cannot be used in compilation for agnostic null safety."""); + "AgnosticWithStrongDillLibrary", + problemMessage: + r"""Loaded library is compiled with sound null safety and cannot be used in compilation for agnostic null safety.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAgnosticWithWeakDillLibrary = @@ -227,18 +258,20 @@ const Code codeAgnosticWithWeakDillLibrary = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAgnosticWithWeakDillLibrary = const MessageCode( - "AgnosticWithWeakDillLibrary", - problemMessage: - r"""Loaded library is compiled with unsound null safety and cannot be used in compilation for agnostic null safety."""); + "AgnosticWithWeakDillLibrary", + problemMessage: + r"""Loaded library is compiled with unsound null safety and cannot be used in compilation for agnostic null safety.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAmbiguousExtensionCause = messageAmbiguousExtensionCause; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAmbiguousExtensionCause = const MessageCode( - "AmbiguousExtensionCause", - severity: Severity.context, - problemMessage: r"""This is one of the extension members."""); + "AmbiguousExtensionCause", + severity: Severity.context, + problemMessage: r"""This is one of the extension members.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAnnotationOnFunctionTypeTypeVariable = @@ -246,19 +279,22 @@ const Code codeAnnotationOnFunctionTypeTypeVariable = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAnnotationOnFunctionTypeTypeVariable = - const MessageCode("AnnotationOnFunctionTypeTypeVariable", - problemMessage: - r"""A type variable on a function type can't have annotations."""); + const MessageCode( + "AnnotationOnFunctionTypeTypeVariable", + problemMessage: + r"""A type variable on a function type can't have annotations.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAnnotationOnTypeArgument = messageAnnotationOnTypeArgument; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAnnotationOnTypeArgument = const MessageCode( - "AnnotationOnTypeArgument", - index: 111, - problemMessage: - r"""Type arguments can't have annotations because they aren't declarations."""); + "AnnotationOnTypeArgument", + index: 111, + problemMessage: + r"""Type arguments can't have annotations because they aren't declarations.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAnonymousBreakTargetOutsideFunction = @@ -267,10 +303,10 @@ const Code codeAnonymousBreakTargetOutsideFunction = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAnonymousBreakTargetOutsideFunction = const MessageCode( - "AnonymousBreakTargetOutsideFunction", - analyzerCodes: ["LABEL_IN_OUTER_SCOPE"], - problemMessage: - r"""Can't break to a target in a different function."""); + "AnonymousBreakTargetOutsideFunction", + analyzerCodes: ["LABEL_IN_OUTER_SCOPE"], + problemMessage: r"""Can't break to a target in a different function.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAnonymousContinueTargetOutsideFunction = @@ -279,34 +315,39 @@ const Code codeAnonymousContinueTargetOutsideFunction = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAnonymousContinueTargetOutsideFunction = const MessageCode( - "AnonymousContinueTargetOutsideFunction", - analyzerCodes: ["LABEL_IN_OUTER_SCOPE"], - problemMessage: - r"""Can't continue at a target in a different function."""); + "AnonymousContinueTargetOutsideFunction", + analyzerCodes: ["LABEL_IN_OUTER_SCOPE"], + problemMessage: r"""Can't continue at a target in a different function.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - int - codePoint)> templateAsciiControlCharacter = const Template< - Message Function(int codePoint)>("AsciiControlCharacter", - problemMessageTemplate: - r"""The control character #unicode can only be used in strings and comments.""", - withArguments: _withArgumentsAsciiControlCharacter); +const Template templateAsciiControlCharacter = + const Template( + "AsciiControlCharacter", + problemMessageTemplate: + r"""The control character #unicode can only be used in strings and comments.""", + withArguments: _withArgumentsAsciiControlCharacter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAsciiControlCharacter = - const Code("AsciiControlCharacter", - analyzerCodes: ["ILLEGAL_CHARACTER"]); + const Code( + "AsciiControlCharacter", + analyzerCodes: ["ILLEGAL_CHARACTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsAsciiControlCharacter(int codePoint) { String unicode = "U+${codePoint.toRadixString(16).toUpperCase().padLeft(4, '0')}"; - return new Message(codeAsciiControlCharacter, - problemMessage: - """The control character ${unicode} can only be used in strings and comments.""", - arguments: {'unicode': codePoint}); + return new Message( + codeAsciiControlCharacter, + problemMessage: + """The control character ${unicode} can only be used in strings and comments.""", + arguments: { + 'unicode': codePoint, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -314,38 +355,42 @@ const Code codeAssertAsExpression = messageAssertAsExpression; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAssertAsExpression = const MessageCode( - "AssertAsExpression", - problemMessage: r"""`assert` can't be used as an expression."""); + "AssertAsExpression", + problemMessage: r"""`assert` can't be used as an expression.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAssertExtraneousArgument = messageAssertExtraneousArgument; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAssertExtraneousArgument = const MessageCode( - "AssertExtraneousArgument", - problemMessage: r"""`assert` can't have more than two arguments."""); + "AssertExtraneousArgument", + problemMessage: r"""`assert` can't have more than two arguments.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAwaitAsIdentifier = messageAwaitAsIdentifier; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAwaitAsIdentifier = const MessageCode( - "AwaitAsIdentifier", - analyzerCodes: ["ASYNC_KEYWORD_USED_AS_IDENTIFIER"], - problemMessage: - r"""'await' can't be used as an identifier in 'async', 'async*', or 'sync*' methods."""); + "AwaitAsIdentifier", + analyzerCodes: ["ASYNC_KEYWORD_USED_AS_IDENTIFIER"], + problemMessage: + r"""'await' can't be used as an identifier in 'async', 'async*', or 'sync*' methods.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAwaitForNotAsync = messageAwaitForNotAsync; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAwaitForNotAsync = const MessageCode( - "AwaitForNotAsync", - analyzerCodes: ["ASYNC_FOR_IN_WRONG_CONTEXT"], - problemMessage: - r"""The asynchronous for-in can only be used in functions marked with 'async' or 'async*'.""", - correctionMessage: - r"""Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop."""); + "AwaitForNotAsync", + analyzerCodes: ["ASYNC_FOR_IN_WRONG_CONTEXT"], + problemMessage: + r"""The asynchronous for-in can only be used in functions marked with 'async' or 'async*'.""", + correctionMessage: + r"""Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAwaitInLateLocalInitializer = @@ -353,18 +398,21 @@ const Code codeAwaitInLateLocalInitializer = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAwaitInLateLocalInitializer = const MessageCode( - "AwaitInLateLocalInitializer", - problemMessage: - r"""`await` expressions are not supported in late local initializers."""); + "AwaitInLateLocalInitializer", + problemMessage: + r"""`await` expressions are not supported in late local initializers.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAwaitNotAsync = messageAwaitNotAsync; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageAwaitNotAsync = const MessageCode("AwaitNotAsync", - analyzerCodes: ["AWAIT_IN_WRONG_CONTEXT"], - problemMessage: - r"""'await' can only be used in 'async' or 'async*' methods."""); +const MessageCode messageAwaitNotAsync = const MessageCode( + "AwaitNotAsync", + analyzerCodes: ["AWAIT_IN_WRONG_CONTEXT"], + problemMessage: + r"""'await' can only be used in 'async' or 'async*' methods.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeAwaitOfExtensionTypeNotFuture = @@ -372,90 +420,104 @@ const Code codeAwaitOfExtensionTypeNotFuture = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageAwaitOfExtensionTypeNotFuture = const MessageCode( - "AwaitOfExtensionTypeNotFuture", - analyzerCodes: ["AWAIT_OF_EXTENSION_TYPE_NOT_FUTURE"], - problemMessage: - r"""The 'await' expression can't be used for an expression with an extension type that is not a subtype of 'Future'."""); + "AwaitOfExtensionTypeNotFuture", + analyzerCodes: ["AWAIT_OF_EXTENSION_TYPE_NOT_FUTURE"], + problemMessage: + r"""The 'await' expression can't be used for an expression with an extension type that is not a subtype of 'Future'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateBaseClassImplementedOutsideOfLibrary = const Template< - Message Function(String name)>("BaseClassImplementedOutsideOfLibrary", - problemMessageTemplate: - r"""The class '#name' can't be implemented outside of its library because it's a base class.""", - withArguments: _withArgumentsBaseClassImplementedOutsideOfLibrary); +const Template + templateBaseClassImplementedOutsideOfLibrary = + const Template( + "BaseClassImplementedOutsideOfLibrary", + problemMessageTemplate: + r"""The class '#name' can't be implemented outside of its library because it's a base class.""", + withArguments: _withArgumentsBaseClassImplementedOutsideOfLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBaseClassImplementedOutsideOfLibrary = const Code( - "BaseClassImplementedOutsideOfLibrary", - analyzerCodes: ["BASE_CLASS_IMPLEMENTED_OUTSIDE_OF_LIBRARY"]); + "BaseClassImplementedOutsideOfLibrary", + analyzerCodes: ["BASE_CLASS_IMPLEMENTED_OUTSIDE_OF_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBaseClassImplementedOutsideOfLibrary(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeBaseClassImplementedOutsideOfLibrary, - problemMessage: - """The class '${name}' can't be implemented outside of its library because it's a base class.""", - arguments: {'name': name}); + return new Message( + codeBaseClassImplementedOutsideOfLibrary, + problemMessage: + """The class '${name}' can't be implemented outside of its library because it's a base class.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBaseEnum = messageBaseEnum; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageBaseEnum = const MessageCode("BaseEnum", - index: 155, - problemMessage: r"""Enums can't be declared to be 'base'.""", - correctionMessage: r"""Try removing the keyword 'base'."""); +const MessageCode messageBaseEnum = const MessageCode( + "BaseEnum", + index: 155, + problemMessage: r"""Enums can't be declared to be 'base'.""", + correctionMessage: r"""Try removing the keyword 'base'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateBaseMixinImplementedOutsideOfLibrary = const Template< - Message Function(String name)>("BaseMixinImplementedOutsideOfLibrary", - problemMessageTemplate: - r"""The mixin '#name' can't be implemented outside of its library because it's a base mixin.""", - withArguments: _withArgumentsBaseMixinImplementedOutsideOfLibrary); +const Template + templateBaseMixinImplementedOutsideOfLibrary = + const Template( + "BaseMixinImplementedOutsideOfLibrary", + problemMessageTemplate: + r"""The mixin '#name' can't be implemented outside of its library because it's a base mixin.""", + withArguments: _withArgumentsBaseMixinImplementedOutsideOfLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBaseMixinImplementedOutsideOfLibrary = const Code( - "BaseMixinImplementedOutsideOfLibrary", - analyzerCodes: ["BASE_MIXIN_IMPLEMENTED_OUTSIDE_OF_LIBRARY"]); + "BaseMixinImplementedOutsideOfLibrary", + analyzerCodes: ["BASE_MIXIN_IMPLEMENTED_OUTSIDE_OF_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBaseMixinImplementedOutsideOfLibrary(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeBaseMixinImplementedOutsideOfLibrary, - problemMessage: - """The mixin '${name}' can't be implemented outside of its library because it's a base mixin.""", - arguments: {'name': name}); + return new Message( + codeBaseMixinImplementedOutsideOfLibrary, + problemMessage: + """The mixin '${name}' can't be implemented outside of its library because it's a base mixin.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateBaseOrFinalClassImplementedOutsideOfLibraryCause = const Template( - "BaseOrFinalClassImplementedOutsideOfLibraryCause", - problemMessageTemplate: - r"""The type '#name' is a subtype of '#name2', and '#name2' is defined here.""", - withArguments: - _withArgumentsBaseOrFinalClassImplementedOutsideOfLibraryCause); + "BaseOrFinalClassImplementedOutsideOfLibraryCause", + problemMessageTemplate: + r"""The type '#name' is a subtype of '#name2', and '#name2' is defined here.""", + withArguments: _withArgumentsBaseOrFinalClassImplementedOutsideOfLibraryCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBaseOrFinalClassImplementedOutsideOfLibraryCause = const Code( - "BaseOrFinalClassImplementedOutsideOfLibraryCause", - severity: Severity.context); + "BaseOrFinalClassImplementedOutsideOfLibraryCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBaseOrFinalClassImplementedOutsideOfLibraryCause( @@ -464,63 +526,71 @@ Message _withArgumentsBaseOrFinalClassImplementedOutsideOfLibraryCause( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeBaseOrFinalClassImplementedOutsideOfLibraryCause, - problemMessage: - """The type '${name}' is a subtype of '${name2}', and '${name2}' is defined here.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeBaseOrFinalClassImplementedOutsideOfLibraryCause, + problemMessage: + """The type '${name}' is a subtype of '${name2}', and '${name2}' is defined here.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateBinaryOperatorWrittenOut = const Template< - Message Function(String string, String string2)>( - "BinaryOperatorWrittenOut", - problemMessageTemplate: - r"""Binary operator '#string' is written as '#string2' instead of the written out word.""", - correctionMessageTemplate: r"""Try replacing '#string' with '#string2'.""", - withArguments: _withArgumentsBinaryOperatorWrittenOut); +const Template + templateBinaryOperatorWrittenOut = + const Template( + "BinaryOperatorWrittenOut", + problemMessageTemplate: + r"""Binary operator '#string' is written as '#string2' instead of the written out word.""", + correctionMessageTemplate: r"""Try replacing '#string' with '#string2'.""", + withArguments: _withArgumentsBinaryOperatorWrittenOut, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBinaryOperatorWrittenOut = const Code( - "BinaryOperatorWrittenOut", - index: 112); + "BinaryOperatorWrittenOut", + index: 112, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBinaryOperatorWrittenOut(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeBinaryOperatorWrittenOut, - problemMessage: - """Binary operator '${string}' is written as '${string2}' instead of the written out word.""", - correctionMessage: """Try replacing '${string}' with '${string2}'.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeBinaryOperatorWrittenOut, + problemMessage: + """Binary operator '${string}' is written as '${string2}' instead of the written out word.""", + correctionMessage: """Try replacing '${string}' with '${string2}'.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateBoundIssueViaCycleNonSimplicity = const Template< - Message Function(String name, String name2)>( - "BoundIssueViaCycleNonSimplicity", - problemMessageTemplate: - r"""Generic type '#name' can't be used without type arguments in the bounds of its own type variables. It is referenced indirectly through '#name2'.""", - correctionMessageTemplate: - r"""Try providing type arguments to '#name2' here or to some other raw types in the bounds along the reference chain.""", - withArguments: _withArgumentsBoundIssueViaCycleNonSimplicity); +const Template + templateBoundIssueViaCycleNonSimplicity = + const Template( + "BoundIssueViaCycleNonSimplicity", + problemMessageTemplate: + r"""Generic type '#name' can't be used without type arguments in the bounds of its own type variables. It is referenced indirectly through '#name2'.""", + correctionMessageTemplate: + r"""Try providing type arguments to '#name2' here or to some other raw types in the bounds along the reference chain.""", + withArguments: _withArgumentsBoundIssueViaCycleNonSimplicity, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBoundIssueViaCycleNonSimplicity = const Code( - "BoundIssueViaCycleNonSimplicity", - analyzerCodes: ["NOT_INSTANTIATED_BOUND"]); + "BoundIssueViaCycleNonSimplicity", + analyzerCodes: ["NOT_INSTANTIATED_BOUND"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBoundIssueViaCycleNonSimplicity( @@ -529,70 +599,86 @@ Message _withArgumentsBoundIssueViaCycleNonSimplicity( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeBoundIssueViaCycleNonSimplicity, - problemMessage: - """Generic type '${name}' can't be used without type arguments in the bounds of its own type variables. It is referenced indirectly through '${name2}'.""", - correctionMessage: """Try providing type arguments to '${name2}' here or to some other raw types in the bounds along the reference chain.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeBoundIssueViaCycleNonSimplicity, + problemMessage: + """Generic type '${name}' can't be used without type arguments in the bounds of its own type variables. It is referenced indirectly through '${name2}'.""", + correctionMessage: + """Try providing type arguments to '${name2}' here or to some other raw types in the bounds along the reference chain.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateBoundIssueViaLoopNonSimplicity = const Template< - Message Function( - String name)>( - "BoundIssueViaLoopNonSimplicity", - problemMessageTemplate: - r"""Generic type '#name' can't be used without type arguments in the bounds of its own type variables.""", - correctionMessageTemplate: - r"""Try providing type arguments to '#name' here.""", - withArguments: _withArgumentsBoundIssueViaLoopNonSimplicity); +const Template + templateBoundIssueViaLoopNonSimplicity = + const Template( + "BoundIssueViaLoopNonSimplicity", + problemMessageTemplate: + r"""Generic type '#name' can't be used without type arguments in the bounds of its own type variables.""", + correctionMessageTemplate: + r"""Try providing type arguments to '#name' here.""", + withArguments: _withArgumentsBoundIssueViaLoopNonSimplicity, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBoundIssueViaLoopNonSimplicity = - const Code("BoundIssueViaLoopNonSimplicity", - analyzerCodes: ["NOT_INSTANTIATED_BOUND"]); + const Code( + "BoundIssueViaLoopNonSimplicity", + analyzerCodes: ["NOT_INSTANTIATED_BOUND"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBoundIssueViaLoopNonSimplicity(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeBoundIssueViaLoopNonSimplicity, - problemMessage: - """Generic type '${name}' can't be used without type arguments in the bounds of its own type variables.""", - correctionMessage: """Try providing type arguments to '${name}' here.""", - arguments: {'name': name}); + return new Message( + codeBoundIssueViaLoopNonSimplicity, + problemMessage: + """Generic type '${name}' can't be used without type arguments in the bounds of its own type variables.""", + correctionMessage: """Try providing type arguments to '${name}' here.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateBoundIssueViaRawTypeWithNonSimpleBounds = const Template( - "BoundIssueViaRawTypeWithNonSimpleBounds", - problemMessageTemplate: - r"""Generic type '#name' can't be used without type arguments in a type variable bound.""", - correctionMessageTemplate: - r"""Try providing type arguments to '#name' here.""", - withArguments: _withArgumentsBoundIssueViaRawTypeWithNonSimpleBounds); + "BoundIssueViaRawTypeWithNonSimpleBounds", + problemMessageTemplate: + r"""Generic type '#name' can't be used without type arguments in a type variable bound.""", + correctionMessageTemplate: + r"""Try providing type arguments to '#name' here.""", + withArguments: _withArgumentsBoundIssueViaRawTypeWithNonSimpleBounds, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBoundIssueViaRawTypeWithNonSimpleBounds = const Code( - "BoundIssueViaRawTypeWithNonSimpleBounds", - analyzerCodes: ["NOT_INSTANTIATED_BOUND"]); + "BoundIssueViaRawTypeWithNonSimpleBounds", + analyzerCodes: ["NOT_INSTANTIATED_BOUND"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBoundIssueViaRawTypeWithNonSimpleBounds(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeBoundIssueViaRawTypeWithNonSimpleBounds, - problemMessage: - """Generic type '${name}' can't be used without type arguments in a type variable bound.""", - correctionMessage: """Try providing type arguments to '${name}' here.""", - arguments: {'name': name}); + return new Message( + codeBoundIssueViaRawTypeWithNonSimpleBounds, + problemMessage: + """Generic type '${name}' can't be used without type arguments in a type variable bound.""", + correctionMessage: """Try providing type arguments to '${name}' here.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -600,118 +686,150 @@ const Code codeBreakOutsideOfLoop = messageBreakOutsideOfLoop; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageBreakOutsideOfLoop = const MessageCode( - "BreakOutsideOfLoop", - index: 52, - problemMessage: - r"""A break statement can't be used outside of a loop or switch statement.""", - correctionMessage: r"""Try removing the break statement."""); + "BreakOutsideOfLoop", + index: 52, + problemMessage: + r"""A break statement can't be used outside of a loop or switch statement.""", + correctionMessage: r"""Try removing the break statement.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateBreakTargetOutsideFunction = - const Template("BreakTargetOutsideFunction", - problemMessageTemplate: - r"""Can't break to '#name' in a different function.""", - withArguments: _withArgumentsBreakTargetOutsideFunction); + const Template( + "BreakTargetOutsideFunction", + problemMessageTemplate: + r"""Can't break to '#name' in a different function.""", + withArguments: _withArgumentsBreakTargetOutsideFunction, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBreakTargetOutsideFunction = - const Code("BreakTargetOutsideFunction", - analyzerCodes: ["LABEL_IN_OUTER_SCOPE"]); + const Code( + "BreakTargetOutsideFunction", + analyzerCodes: ["LABEL_IN_OUTER_SCOPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBreakTargetOutsideFunction(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeBreakTargetOutsideFunction, - problemMessage: """Can't break to '${name}' in a different function.""", - arguments: {'name': name}); + return new Message( + codeBreakTargetOutsideFunction, + problemMessage: """Can't break to '${name}' in a different function.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateBuiltInIdentifierAsType = - const Template("BuiltInIdentifierAsType", - problemMessageTemplate: - r"""The built-in identifier '#lexeme' can't be used as a type.""", - withArguments: _withArgumentsBuiltInIdentifierAsType); + const Template( + "BuiltInIdentifierAsType", + problemMessageTemplate: + r"""The built-in identifier '#lexeme' can't be used as a type.""", + withArguments: _withArgumentsBuiltInIdentifierAsType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBuiltInIdentifierAsType = - const Code("BuiltInIdentifierAsType", - analyzerCodes: ["BUILT_IN_IDENTIFIER_AS_TYPE"]); + const Code( + "BuiltInIdentifierAsType", + analyzerCodes: ["BUILT_IN_IDENTIFIER_AS_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBuiltInIdentifierAsType(Token token) { String lexeme = token.lexeme; - return new Message(codeBuiltInIdentifierAsType, - problemMessage: - """The built-in identifier '${lexeme}' can't be used as a type.""", - arguments: {'lexeme': token}); + return new Message( + codeBuiltInIdentifierAsType, + problemMessage: + """The built-in identifier '${lexeme}' can't be used as a type.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateBuiltInIdentifierInDeclaration = const Template( - "BuiltInIdentifierInDeclaration", - problemMessageTemplate: r"""Can't use '#lexeme' as a name here.""", - withArguments: _withArgumentsBuiltInIdentifierInDeclaration); + "BuiltInIdentifierInDeclaration", + problemMessageTemplate: r"""Can't use '#lexeme' as a name here.""", + withArguments: _withArgumentsBuiltInIdentifierInDeclaration, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeBuiltInIdentifierInDeclaration = - const Code("BuiltInIdentifierInDeclaration", - analyzerCodes: ["BUILT_IN_IDENTIFIER_IN_DECLARATION"]); + const Code( + "BuiltInIdentifierInDeclaration", + analyzerCodes: ["BUILT_IN_IDENTIFIER_IN_DECLARATION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsBuiltInIdentifierInDeclaration(Token token) { String lexeme = token.lexeme; - return new Message(codeBuiltInIdentifierInDeclaration, - problemMessage: """Can't use '${lexeme}' as a name here.""", - arguments: {'lexeme': token}); + return new Message( + codeBuiltInIdentifierInDeclaration, + problemMessage: """Can't use '${lexeme}' as a name here.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCandidateFound = messageCandidateFound; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageCandidateFound = const MessageCode("CandidateFound", - severity: Severity.context, - problemMessage: - r"""Found this candidate, but the arguments don't match."""); +const MessageCode messageCandidateFound = const MessageCode( + "CandidateFound", + severity: Severity.context, + problemMessage: r"""Found this candidate, but the arguments don't match.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCandidateFoundIsDefaultConstructor = const Template( - "CandidateFoundIsDefaultConstructor", - problemMessageTemplate: - r"""The class '#name' has a constructor that takes no arguments.""", - withArguments: _withArgumentsCandidateFoundIsDefaultConstructor); + "CandidateFoundIsDefaultConstructor", + problemMessageTemplate: + r"""The class '#name' has a constructor that takes no arguments.""", + withArguments: _withArgumentsCandidateFoundIsDefaultConstructor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCandidateFoundIsDefaultConstructor = const Code( - "CandidateFoundIsDefaultConstructor", - severity: Severity.context); + "CandidateFoundIsDefaultConstructor", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCandidateFoundIsDefaultConstructor(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCandidateFoundIsDefaultConstructor, - problemMessage: - """The class '${name}' has a constructor that takes no arguments.""", - arguments: {'name': name}); + return new Message( + codeCandidateFoundIsDefaultConstructor, + problemMessage: + """The class '${name}' has a constructor that takes no arguments.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> templateCannotAssignToConstVariable = - const Template("CannotAssignToConstVariable", - problemMessageTemplate: - r"""Can't assign to the const variable '#name'.""", - withArguments: _withArgumentsCannotAssignToConstVariable); +const Template + templateCannotAssignToConstVariable = + const Template( + "CannotAssignToConstVariable", + problemMessageTemplate: r"""Can't assign to the const variable '#name'.""", + withArguments: _withArgumentsCannotAssignToConstVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCannotAssignToConstVariable = @@ -723,9 +841,13 @@ const Code codeCannotAssignToConstVariable = Message _withArgumentsCannotAssignToConstVariable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCannotAssignToConstVariable, - problemMessage: """Can't assign to the const variable '${name}'.""", - arguments: {'name': name}); + return new Message( + codeCannotAssignToConstVariable, + problemMessage: """Can't assign to the const variable '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -734,16 +856,18 @@ const Code codeCannotAssignToExtensionThis = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCannotAssignToExtensionThis = const MessageCode( - "CannotAssignToExtensionThis", - problemMessage: r"""Can't assign to 'this'."""); + "CannotAssignToExtensionThis", + problemMessage: r"""Can't assign to 'this'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> templateCannotAssignToFinalVariable = - const Template("CannotAssignToFinalVariable", - problemMessageTemplate: - r"""Can't assign to the final variable '#name'.""", - withArguments: _withArgumentsCannotAssignToFinalVariable); +const Template + templateCannotAssignToFinalVariable = + const Template( + "CannotAssignToFinalVariable", + problemMessageTemplate: r"""Can't assign to the final variable '#name'.""", + withArguments: _withArgumentsCannotAssignToFinalVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCannotAssignToFinalVariable = @@ -755,9 +879,13 @@ const Code codeCannotAssignToFinalVariable = Message _withArgumentsCannotAssignToFinalVariable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCannotAssignToFinalVariable, - problemMessage: """Can't assign to the final variable '${name}'.""", - arguments: {'name': name}); + return new Message( + codeCannotAssignToFinalVariable, + problemMessage: """Can't assign to the final variable '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -766,18 +894,21 @@ const Code codeCannotAssignToParenthesizedExpression = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCannotAssignToParenthesizedExpression = - const MessageCode("CannotAssignToParenthesizedExpression", - analyzerCodes: ["ASSIGNMENT_TO_PARENTHESIZED_EXPRESSION"], - problemMessage: r"""Can't assign to a parenthesized expression."""); + const MessageCode( + "CannotAssignToParenthesizedExpression", + analyzerCodes: ["ASSIGNMENT_TO_PARENTHESIZED_EXPRESSION"], + problemMessage: r"""Can't assign to a parenthesized expression.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCannotAssignToSuper = messageCannotAssignToSuper; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCannotAssignToSuper = const MessageCode( - "CannotAssignToSuper", - analyzerCodes: ["NOT_AN_LVALUE"], - problemMessage: r"""Can't assign to super."""); + "CannotAssignToSuper", + analyzerCodes: ["NOT_AN_LVALUE"], + problemMessage: r"""Can't assign to super.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCannotAssignToTypeLiteral = @@ -785,18 +916,20 @@ const Code codeCannotAssignToTypeLiteral = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCannotAssignToTypeLiteral = const MessageCode( - "CannotAssignToTypeLiteral", - problemMessage: r"""Can't assign to a type literal."""); + "CannotAssignToTypeLiteral", + problemMessage: r"""Can't assign to a type literal.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCannotReadSdkSpecification = const Template( - "CannotReadSdkSpecification", - problemMessageTemplate: - r"""Unable to read the 'libraries.json' specification file: + "CannotReadSdkSpecification", + problemMessageTemplate: + r"""Unable to read the 'libraries.json' specification file: #string.""", - withArguments: _withArgumentsCannotReadSdkSpecification); + withArguments: _withArgumentsCannotReadSdkSpecification, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCannotReadSdkSpecification = @@ -807,9 +940,14 @@ const Code codeCannotReadSdkSpecification = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCannotReadSdkSpecification(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeCannotReadSdkSpecification, - problemMessage: """Unable to read the 'libraries.json' specification file: - ${string}.""", arguments: {'string': string}); + return new Message( + codeCannotReadSdkSpecification, + problemMessage: """Unable to read the 'libraries.json' specification file: + ${string}.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -817,29 +955,35 @@ const Code codeCantDisambiguateAmbiguousInformation = messageCantDisambiguateAmbiguousInformation; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageCantDisambiguateAmbiguousInformation = const MessageCode( - "CantDisambiguateAmbiguousInformation", - problemMessage: - r"""Both Iterable and Map spread elements encountered in ambiguous literal."""); +const MessageCode messageCantDisambiguateAmbiguousInformation = + const MessageCode( + "CantDisambiguateAmbiguousInformation", + problemMessage: + r"""Both Iterable and Map spread elements encountered in ambiguous literal.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantDisambiguateNotEnoughInformation = messageCantDisambiguateNotEnoughInformation; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageCantDisambiguateNotEnoughInformation = const MessageCode( - "CantDisambiguateNotEnoughInformation", - problemMessage: - r"""Not enough type information to disambiguate between literal set and literal map.""", - correctionMessage: - r"""Try providing type arguments for the literal explicitly to disambiguate it."""); +const MessageCode messageCantDisambiguateNotEnoughInformation = + const MessageCode( + "CantDisambiguateNotEnoughInformation", + problemMessage: + r"""Not enough type information to disambiguate between literal set and literal map.""", + correctionMessage: + r"""Try providing type arguments for the literal explicitly to disambiguate it.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCantHaveNamedParameters = - const Template("CantHaveNamedParameters", - problemMessageTemplate: - r"""'#name' can't be declared with named parameters.""", - withArguments: _withArgumentsCantHaveNamedParameters); + const Template( + "CantHaveNamedParameters", + problemMessageTemplate: + r"""'#name' can't be declared with named parameters.""", + withArguments: _withArgumentsCantHaveNamedParameters, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantHaveNamedParameters = @@ -851,18 +995,24 @@ const Code codeCantHaveNamedParameters = Message _withArgumentsCantHaveNamedParameters(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCantHaveNamedParameters, - problemMessage: """'${name}' can't be declared with named parameters.""", - arguments: {'name': name}); + return new Message( + codeCantHaveNamedParameters, + problemMessage: """'${name}' can't be declared with named parameters.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCantHaveOptionalParameters = - const Template("CantHaveOptionalParameters", - problemMessageTemplate: - r"""'#name' can't be declared with optional parameters.""", - withArguments: _withArgumentsCantHaveOptionalParameters); + const Template( + "CantHaveOptionalParameters", + problemMessageTemplate: + r"""'#name' can't be declared with optional parameters.""", + withArguments: _withArgumentsCantHaveOptionalParameters, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantHaveOptionalParameters = @@ -874,10 +1024,13 @@ const Code codeCantHaveOptionalParameters = Message _withArgumentsCantHaveOptionalParameters(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCantHaveOptionalParameters, - problemMessage: - """'${name}' can't be declared with optional parameters.""", - arguments: {'name': name}); + return new Message( + codeCantHaveOptionalParameters, + problemMessage: """'${name}' can't be declared with optional parameters.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -886,11 +1039,12 @@ const Code codeCantInferPackagesFromManyInputs = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCantInferPackagesFromManyInputs = const MessageCode( - "CantInferPackagesFromManyInputs", - problemMessage: - r"""Can't infer a packages file when compiling multiple inputs.""", - correctionMessage: - r"""Try specifying the file explicitly with the --packages option."""); + "CantInferPackagesFromManyInputs", + problemMessage: + r"""Can't infer a packages file when compiling multiple inputs.""", + correctionMessage: + r"""Try specifying the file explicitly with the --packages option.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantInferPackagesFromPackageUri = @@ -898,226 +1052,270 @@ const Code codeCantInferPackagesFromPackageUri = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCantInferPackagesFromPackageUri = const MessageCode( - "CantInferPackagesFromPackageUri", - problemMessage: - r"""Can't infer a packages file from an input 'package:*' URI.""", - correctionMessage: - r"""Try specifying the file explicitly with the --packages option."""); + "CantInferPackagesFromPackageUri", + problemMessage: + r"""Can't infer a packages file from an input 'package:*' URI.""", + correctionMessage: + r"""Try specifying the file explicitly with the --packages option.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCantInferReturnTypeDueToNoCombinedSignature = const Template( - "CantInferReturnTypeDueToNoCombinedSignature", - problemMessageTemplate: - r"""Can't infer a return type for '#name' as the overridden members don't have a combined signature.""", - correctionMessageTemplate: r"""Try adding an explicit type.""", - withArguments: - _withArgumentsCantInferReturnTypeDueToNoCombinedSignature); + "CantInferReturnTypeDueToNoCombinedSignature", + problemMessageTemplate: + r"""Can't infer a return type for '#name' as the overridden members don't have a combined signature.""", + correctionMessageTemplate: r"""Try adding an explicit type.""", + withArguments: _withArgumentsCantInferReturnTypeDueToNoCombinedSignature, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantInferReturnTypeDueToNoCombinedSignature = const Code( - "CantInferReturnTypeDueToNoCombinedSignature", - analyzerCodes: [ - "COMPILE_TIME_ERROR.NO_COMBINED_SUPER_SIGNATURE" - ]); + "CantInferReturnTypeDueToNoCombinedSignature", + analyzerCodes: ["COMPILE_TIME_ERROR.NO_COMBINED_SUPER_SIGNATURE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCantInferReturnTypeDueToNoCombinedSignature(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCantInferReturnTypeDueToNoCombinedSignature, - problemMessage: - """Can't infer a return type for '${name}' as the overridden members don't have a combined signature.""", - correctionMessage: """Try adding an explicit type.""", - arguments: {'name': name}); + return new Message( + codeCantInferReturnTypeDueToNoCombinedSignature, + problemMessage: + """Can't infer a return type for '${name}' as the overridden members don't have a combined signature.""", + correctionMessage: """Try adding an explicit type.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - string)> templateCantInferTypeDueToCircularity = const Template< - Message Function(String string)>("CantInferTypeDueToCircularity", - problemMessageTemplate: - r"""Can't infer the type of '#string': circularity found during type inference.""", - correctionMessageTemplate: r"""Specify the type explicitly.""", - withArguments: _withArgumentsCantInferTypeDueToCircularity); +const Template + templateCantInferTypeDueToCircularity = + const Template( + "CantInferTypeDueToCircularity", + problemMessageTemplate: + r"""Can't infer the type of '#string': circularity found during type inference.""", + correctionMessageTemplate: r"""Specify the type explicitly.""", + withArguments: _withArgumentsCantInferTypeDueToCircularity, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantInferTypeDueToCircularity = - const Code("CantInferTypeDueToCircularity", - analyzerCodes: ["RECURSIVE_COMPILE_TIME_CONSTANT"]); + const Code( + "CantInferTypeDueToCircularity", + analyzerCodes: ["RECURSIVE_COMPILE_TIME_CONSTANT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCantInferTypeDueToCircularity(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeCantInferTypeDueToCircularity, - problemMessage: - """Can't infer the type of '${string}': circularity found during type inference.""", - correctionMessage: """Specify the type explicitly.""", - arguments: {'string': string}); + return new Message( + codeCantInferTypeDueToCircularity, + problemMessage: + """Can't infer the type of '${string}': circularity found during type inference.""", + correctionMessage: """Specify the type explicitly.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateCantInferTypeDueToNoCombinedSignature = const Template< - Message Function(String name)>("CantInferTypeDueToNoCombinedSignature", - problemMessageTemplate: - r"""Can't infer a type for '#name' as the overridden members don't have a combined signature.""", - correctionMessageTemplate: r"""Try adding an explicit type.""", - withArguments: _withArgumentsCantInferTypeDueToNoCombinedSignature); +const Template + templateCantInferTypeDueToNoCombinedSignature = + const Template( + "CantInferTypeDueToNoCombinedSignature", + problemMessageTemplate: + r"""Can't infer a type for '#name' as the overridden members don't have a combined signature.""", + correctionMessageTemplate: r"""Try adding an explicit type.""", + withArguments: _withArgumentsCantInferTypeDueToNoCombinedSignature, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantInferTypeDueToNoCombinedSignature = const Code( - "CantInferTypeDueToNoCombinedSignature", - analyzerCodes: [ - "COMPILE_TIME_ERROR.NO_COMBINED_SUPER_SIGNATURE" - ]); + "CantInferTypeDueToNoCombinedSignature", + analyzerCodes: ["COMPILE_TIME_ERROR.NO_COMBINED_SUPER_SIGNATURE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCantInferTypeDueToNoCombinedSignature(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCantInferTypeDueToNoCombinedSignature, - problemMessage: - """Can't infer a type for '${name}' as the overridden members don't have a combined signature.""", - correctionMessage: """Try adding an explicit type.""", - arguments: {'name': name}); + return new Message( + codeCantInferTypeDueToNoCombinedSignature, + problemMessage: + """Can't infer a type for '${name}' as the overridden members don't have a combined signature.""", + correctionMessage: """Try adding an explicit type.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateCantInferTypesDueToNoCombinedSignature = const Template< - Message Function(String name)>("CantInferTypesDueToNoCombinedSignature", - problemMessageTemplate: - r"""Can't infer types for '#name' as the overridden members don't have a combined signature.""", - correctionMessageTemplate: r"""Try adding explicit types.""", - withArguments: _withArgumentsCantInferTypesDueToNoCombinedSignature); +const Template + templateCantInferTypesDueToNoCombinedSignature = + const Template( + "CantInferTypesDueToNoCombinedSignature", + problemMessageTemplate: + r"""Can't infer types for '#name' as the overridden members don't have a combined signature.""", + correctionMessageTemplate: r"""Try adding explicit types.""", + withArguments: _withArgumentsCantInferTypesDueToNoCombinedSignature, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantInferTypesDueToNoCombinedSignature = const Code( - "CantInferTypesDueToNoCombinedSignature", - analyzerCodes: [ - "COMPILE_TIME_ERROR.NO_COMBINED_SUPER_SIGNATURE" - ]); + "CantInferTypesDueToNoCombinedSignature", + analyzerCodes: ["COMPILE_TIME_ERROR.NO_COMBINED_SUPER_SIGNATURE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCantInferTypesDueToNoCombinedSignature(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCantInferTypesDueToNoCombinedSignature, - problemMessage: - """Can't infer types for '${name}' as the overridden members don't have a combined signature.""", - correctionMessage: """Try adding explicit types.""", - arguments: {'name': name}); + return new Message( + codeCantInferTypesDueToNoCombinedSignature, + problemMessage: + """Can't infer types for '${name}' as the overridden members don't have a combined signature.""", + correctionMessage: """Try adding explicit types.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCantReadFile = - const Template("CantReadFile", - problemMessageTemplate: r"""Error when reading '#uri': #string""", - withArguments: _withArgumentsCantReadFile); + const Template( + "CantReadFile", + problemMessageTemplate: r"""Error when reading '#uri': #string""", + withArguments: _withArgumentsCantReadFile, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantReadFile = - const Code("CantReadFile", - analyzerCodes: ["URI_DOES_NOT_EXIST"]); + const Code( + "CantReadFile", + analyzerCodes: ["URI_DOES_NOT_EXIST"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCantReadFile(Uri uri_, String string) { String? uri = relativizeUri(uri_); if (string.isEmpty) throw 'No string provided'; - return new Message(codeCantReadFile, - problemMessage: """Error when reading '${uri}': ${string}""", - arguments: {'uri': uri_, 'string': string}); + return new Message( + codeCantReadFile, + problemMessage: """Error when reading '${uri}': ${string}""", + arguments: { + 'uri': uri_, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> templateCantUseClassAsMixin = const Template< - Message Function(String name)>("CantUseClassAsMixin", - problemMessageTemplate: - r"""The class '#name' can't be used as a mixin because it isn't a mixin class nor a mixin.""", - withArguments: _withArgumentsCantUseClassAsMixin); +const Template templateCantUseClassAsMixin = + const Template( + "CantUseClassAsMixin", + problemMessageTemplate: + r"""The class '#name' can't be used as a mixin because it isn't a mixin class nor a mixin.""", + withArguments: _withArgumentsCantUseClassAsMixin, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantUseClassAsMixin = - const Code("CantUseClassAsMixin", - analyzerCodes: ["CLASS_USED_AS_MIXIN"]); + const Code( + "CantUseClassAsMixin", + analyzerCodes: ["CLASS_USED_AS_MIXIN"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCantUseClassAsMixin(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCantUseClassAsMixin, - problemMessage: - """The class '${name}' can't be used as a mixin because it isn't a mixin class nor a mixin.""", - arguments: {'name': name}); + return new Message( + codeCantUseClassAsMixin, + problemMessage: + """The class '${name}' can't be used as a mixin because it isn't a mixin class nor a mixin.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCantUseControlFlowOrSpreadAsConstant = const Template( - "CantUseControlFlowOrSpreadAsConstant", - problemMessageTemplate: - r"""'#lexeme' is not supported in constant expressions.""", - withArguments: _withArgumentsCantUseControlFlowOrSpreadAsConstant); + "CantUseControlFlowOrSpreadAsConstant", + problemMessageTemplate: + r"""'#lexeme' is not supported in constant expressions.""", + withArguments: _withArgumentsCantUseControlFlowOrSpreadAsConstant, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantUseControlFlowOrSpreadAsConstant = const Code( - "CantUseControlFlowOrSpreadAsConstant", - analyzerCodes: ["NOT_CONSTANT_EXPRESSION"]); + "CantUseControlFlowOrSpreadAsConstant", + analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCantUseControlFlowOrSpreadAsConstant(Token token) { String lexeme = token.lexeme; - return new Message(codeCantUseControlFlowOrSpreadAsConstant, - problemMessage: - """'${lexeme}' is not supported in constant expressions.""", - arguments: {'lexeme': token}); + return new Message( + codeCantUseControlFlowOrSpreadAsConstant, + problemMessage: """'${lexeme}' is not supported in constant expressions.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Token - token)> templateCantUseDeferredPrefixAsConstant = const Template< - Message Function(Token token)>("CantUseDeferredPrefixAsConstant", - problemMessageTemplate: - r"""'#lexeme' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", - correctionMessageTemplate: - r"""Try moving the constant from the deferred library, or removing 'deferred' from the import. +const Template + templateCantUseDeferredPrefixAsConstant = + const Template( + "CantUseDeferredPrefixAsConstant", + problemMessageTemplate: + r"""'#lexeme' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", + correctionMessageTemplate: + r"""Try moving the constant from the deferred library, or removing 'deferred' from the import. """, - withArguments: _withArgumentsCantUseDeferredPrefixAsConstant); + withArguments: _withArgumentsCantUseDeferredPrefixAsConstant, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantUseDeferredPrefixAsConstant = - const Code("CantUseDeferredPrefixAsConstant", - analyzerCodes: ["CONST_DEFERRED_CLASS"]); + const Code( + "CantUseDeferredPrefixAsConstant", + analyzerCodes: ["CONST_DEFERRED_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCantUseDeferredPrefixAsConstant(Token token) { String lexeme = token.lexeme; - return new Message(codeCantUseDeferredPrefixAsConstant, - problemMessage: - """'${lexeme}' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", - correctionMessage: """Try moving the constant from the deferred library, or removing 'deferred' from the import. + return new Message( + codeCantUseDeferredPrefixAsConstant, + problemMessage: + """'${lexeme}' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", + correctionMessage: + """Try moving the constant from the deferred library, or removing 'deferred' from the import. """, - arguments: {'lexeme': token}); + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1126,9 +1324,10 @@ const Code codeCantUsePrefixAsExpression = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCantUsePrefixAsExpression = const MessageCode( - "CantUsePrefixAsExpression", - analyzerCodes: ["PREFIX_IDENTIFIER_NOT_FOLLOWED_BY_DOT"], - problemMessage: r"""A prefix can't be used as an expression."""); + "CantUsePrefixAsExpression", + analyzerCodes: ["PREFIX_IDENTIFIER_NOT_FOLLOWED_BY_DOT"], + problemMessage: r"""A prefix can't be used as an expression.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCantUsePrefixWithNullAware = @@ -1136,21 +1335,24 @@ const Code codeCantUsePrefixWithNullAware = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCantUsePrefixWithNullAware = const MessageCode( - "CantUsePrefixWithNullAware", - analyzerCodes: ["PREFIX_IDENTIFIER_NOT_FOLLOWED_BY_DOT"], - problemMessage: r"""A prefix can't be used with null-aware operators.""", - correctionMessage: r"""Try replacing '?.' with '.'"""); + "CantUsePrefixWithNullAware", + analyzerCodes: ["PREFIX_IDENTIFIER_NOT_FOLLOWED_BY_DOT"], + problemMessage: r"""A prefix can't be used with null-aware operators.""", + correctionMessage: r"""Try replacing '?.' with '.'""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCatchSyntax = messageCatchSyntax; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageCatchSyntax = const MessageCode("CatchSyntax", - index: 84, - problemMessage: - r"""'catch' must be followed by '(identifier)' or '(identifier, identifier)'.""", - correctionMessage: - r"""No types are needed, the first is given by 'on', the second is always 'StackTrace'."""); +const MessageCode messageCatchSyntax = const MessageCode( + "CatchSyntax", + index: 84, + problemMessage: + r"""'catch' must be followed by '(identifier)' or '(identifier, identifier)'.""", + correctionMessage: + r"""No types are needed, the first is given by 'on', the second is always 'StackTrace'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCatchSyntaxExtraParameters = @@ -1158,12 +1360,13 @@ const Code codeCatchSyntaxExtraParameters = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCatchSyntaxExtraParameters = const MessageCode( - "CatchSyntaxExtraParameters", - index: 83, - problemMessage: - r"""'catch' must be followed by '(identifier)' or '(identifier, identifier)'.""", - correctionMessage: - r"""No types are needed, the first is given by 'on', the second is always 'StackTrace'."""); + "CatchSyntaxExtraParameters", + index: 83, + problemMessage: + r"""'catch' must be followed by '(identifier)' or '(identifier, identifier)'.""", + correctionMessage: + r"""No types are needed, the first is given by 'on', the second is always 'StackTrace'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeClassImplementsDeferredClass = @@ -1171,41 +1374,52 @@ const Code codeClassImplementsDeferredClass = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageClassImplementsDeferredClass = const MessageCode( - "ClassImplementsDeferredClass", - analyzerCodes: ["IMPLEMENTS_DEFERRED_CLASS"], - problemMessage: r"""Classes and mixins can't implement deferred classes.""", - correctionMessage: - r"""Try specifying a different interface, removing the class from the list, or changing the import to not be deferred."""); + "ClassImplementsDeferredClass", + analyzerCodes: ["IMPLEMENTS_DEFERRED_CLASS"], + problemMessage: r"""Classes and mixins can't implement deferred classes.""", + correctionMessage: + r"""Try specifying a different interface, removing the class from the list, or changing the import to not be deferred.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeClassInClass = messageClassInClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageClassInClass = const MessageCode("ClassInClass", - index: 53, - problemMessage: r"""Classes can't be declared inside other classes.""", - correctionMessage: r"""Try moving the class to the top-level."""); +const MessageCode messageClassInClass = const MessageCode( + "ClassInClass", + index: 53, + problemMessage: r"""Classes can't be declared inside other classes.""", + correctionMessage: r"""Try moving the class to the top-level.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateClassInNullAwareReceiver = - const Template("ClassInNullAwareReceiver", - problemMessageTemplate: r"""The class '#name' cannot be null.""", - correctionMessageTemplate: r"""Try replacing '?.' with '.'""", - withArguments: _withArgumentsClassInNullAwareReceiver); + const Template( + "ClassInNullAwareReceiver", + problemMessageTemplate: r"""The class '#name' cannot be null.""", + correctionMessageTemplate: r"""Try replacing '?.' with '.'""", + withArguments: _withArgumentsClassInNullAwareReceiver, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeClassInNullAwareReceiver = - const Code("ClassInNullAwareReceiver", - severity: Severity.warning); + const Code( + "ClassInNullAwareReceiver", + severity: Severity.warning, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsClassInNullAwareReceiver(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeClassInNullAwareReceiver, - problemMessage: """The class '${name}' cannot be null.""", - correctionMessage: """Try replacing '?.' with '.'""", - arguments: {'name': name}); + return new Message( + codeClassInNullAwareReceiver, + problemMessage: """The class '${name}' cannot be null.""", + correctionMessage: """Try replacing '?.' with '.'""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1213,31 +1427,31 @@ const Code codeColonInPlaceOfIn = messageColonInPlaceOfIn; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageColonInPlaceOfIn = const MessageCode( - "ColonInPlaceOfIn", - index: 54, - problemMessage: r"""For-in loops use 'in' rather than a colon.""", - correctionMessage: r"""Try replacing the colon with the keyword 'in'."""); + "ColonInPlaceOfIn", + index: 54, + problemMessage: r"""For-in loops use 'in' rather than a colon.""", + correctionMessage: r"""Try replacing the colon with the keyword 'in'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateCombinedMemberSignatureFailed = const Template< - Message Function(String name, String name2)>( - "CombinedMemberSignatureFailed", - problemMessageTemplate: - r"""Class '#name' inherits multiple members named '#name2' with incompatible signatures.""", - correctionMessageTemplate: - r"""Try adding a declaration of '#name2' to '#name'.""", - withArguments: _withArgumentsCombinedMemberSignatureFailed); +const Template + templateCombinedMemberSignatureFailed = + const Template( + "CombinedMemberSignatureFailed", + problemMessageTemplate: + r"""Class '#name' inherits multiple members named '#name2' with incompatible signatures.""", + correctionMessageTemplate: + r"""Try adding a declaration of '#name2' to '#name'.""", + withArguments: _withArgumentsCombinedMemberSignatureFailed, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCombinedMemberSignatureFailed = const Code( - "CombinedMemberSignatureFailed", - analyzerCodes: ["INCONSISTENT_INHERITANCE"]); + "CombinedMemberSignatureFailed", + analyzerCodes: ["INCONSISTENT_INHERITANCE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCombinedMemberSignatureFailed(String name, String name2) { @@ -1245,11 +1459,17 @@ Message _withArgumentsCombinedMemberSignatureFailed(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeCombinedMemberSignatureFailed, - problemMessage: - """Class '${name}' inherits multiple members named '${name2}' with incompatible signatures.""", - correctionMessage: """Try adding a declaration of '${name2}' to '${name}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeCombinedMemberSignatureFailed, + problemMessage: + """Class '${name}' inherits multiple members named '${name2}' with incompatible signatures.""", + correctionMessage: + """Try adding a declaration of '${name2}' to '${name}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1258,66 +1478,82 @@ const Code codeCompilingWithoutSoundNullSafety = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCompilingWithoutSoundNullSafety = const MessageCode( - "CompilingWithoutSoundNullSafety", - severity: Severity.info, - problemMessage: r"""Compiling without sound null safety! -Dart 3 will only support sound null safety, see https://dart.dev/null-safety"""); + "CompilingWithoutSoundNullSafety", + severity: Severity.info, + problemMessage: r"""Compiling without sound null safety! +Dart 3 will only support sound null safety, see https://dart.dev/null-safety""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateConflictingModifiers = const Template< - Message Function(String string, String string2)>("ConflictingModifiers", - problemMessageTemplate: - r"""Members can't be declared to be both '#string' and '#string2'.""", - correctionMessageTemplate: r"""Try removing one of the keywords.""", - withArguments: _withArgumentsConflictingModifiers); +const Template + templateConflictingModifiers = + const Template( + "ConflictingModifiers", + problemMessageTemplate: + r"""Members can't be declared to be both '#string' and '#string2'.""", + correctionMessageTemplate: r"""Try removing one of the keywords.""", + withArguments: _withArgumentsConflictingModifiers, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConflictingModifiers = const Code( - "ConflictingModifiers", - index: 59); + "ConflictingModifiers", + index: 59, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConflictingModifiers(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeConflictingModifiers, - problemMessage: - """Members can't be declared to be both '${string}' and '${string2}'.""", - correctionMessage: """Try removing one of the keywords.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeConflictingModifiers, + problemMessage: + """Members can't be declared to be both '${string}' and '${string2}'.""", + correctionMessage: """Try removing one of the keywords.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConflictsWithConstructor = - const Template("ConflictsWithConstructor", - problemMessageTemplate: r"""Conflicts with constructor '#name'.""", - withArguments: _withArgumentsConflictsWithConstructor); + const Template( + "ConflictsWithConstructor", + problemMessageTemplate: r"""Conflicts with constructor '#name'.""", + withArguments: _withArgumentsConflictsWithConstructor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConflictsWithConstructor = - const Code("ConflictsWithConstructor", - analyzerCodes: ["CONFLICTS_WITH_CONSTRUCTOR"]); + const Code( + "ConflictsWithConstructor", + analyzerCodes: ["CONFLICTS_WITH_CONSTRUCTOR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConflictsWithConstructor(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConflictsWithConstructor, - problemMessage: """Conflicts with constructor '${name}'.""", - arguments: {'name': name}); + return new Message( + codeConflictsWithConstructor, + problemMessage: """Conflicts with constructor '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConflictsWithFactory = - const Template("ConflictsWithFactory", - problemMessageTemplate: r"""Conflicts with factory '#name'.""", - withArguments: _withArgumentsConflictsWithFactory); + const Template( + "ConflictsWithFactory", + problemMessageTemplate: r"""Conflicts with factory '#name'.""", + withArguments: _withArgumentsConflictsWithFactory, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConflictsWithFactory = @@ -1329,93 +1565,129 @@ const Code codeConflictsWithFactory = Message _withArgumentsConflictsWithFactory(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConflictsWithFactory, - problemMessage: """Conflicts with factory '${name}'.""", - arguments: {'name': name}); + return new Message( + codeConflictsWithFactory, + problemMessage: """Conflicts with factory '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConflictsWithImplicitSetter = - const Template("ConflictsWithImplicitSetter", - problemMessageTemplate: - r"""Conflicts with the implicit setter of the field '#name'.""", - withArguments: _withArgumentsConflictsWithImplicitSetter); + const Template( + "ConflictsWithImplicitSetter", + problemMessageTemplate: + r"""Conflicts with the implicit setter of the field '#name'.""", + withArguments: _withArgumentsConflictsWithImplicitSetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConflictsWithImplicitSetter = - const Code("ConflictsWithImplicitSetter", - analyzerCodes: ["CONFLICTS_WITH_MEMBER"]); + const Code( + "ConflictsWithImplicitSetter", + analyzerCodes: ["CONFLICTS_WITH_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConflictsWithImplicitSetter(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConflictsWithImplicitSetter, - problemMessage: - """Conflicts with the implicit setter of the field '${name}'.""", - arguments: {'name': name}); + return new Message( + codeConflictsWithImplicitSetter, + problemMessage: + """Conflicts with the implicit setter of the field '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConflictsWithMember = - const Template("ConflictsWithMember", - problemMessageTemplate: r"""Conflicts with member '#name'.""", - withArguments: _withArgumentsConflictsWithMember); + const Template( + "ConflictsWithMember", + problemMessageTemplate: r"""Conflicts with member '#name'.""", + withArguments: _withArgumentsConflictsWithMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConflictsWithMember = - const Code("ConflictsWithMember", - analyzerCodes: ["CONFLICTS_WITH_MEMBER"]); + const Code( + "ConflictsWithMember", + analyzerCodes: ["CONFLICTS_WITH_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConflictsWithMember(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConflictsWithMember, - problemMessage: """Conflicts with member '${name}'.""", - arguments: {'name': name}); + return new Message( + codeConflictsWithMember, + problemMessage: """Conflicts with member '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConflictsWithSetter = - const Template("ConflictsWithSetter", - problemMessageTemplate: r"""Conflicts with setter '#name'.""", - withArguments: _withArgumentsConflictsWithSetter); + const Template( + "ConflictsWithSetter", + problemMessageTemplate: r"""Conflicts with setter '#name'.""", + withArguments: _withArgumentsConflictsWithSetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConflictsWithSetter = - const Code("ConflictsWithSetter", - analyzerCodes: ["CONFLICTS_WITH_MEMBER"]); + const Code( + "ConflictsWithSetter", + analyzerCodes: ["CONFLICTS_WITH_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConflictsWithSetter(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConflictsWithSetter, - problemMessage: """Conflicts with setter '${name}'.""", - arguments: {'name': name}); + return new Message( + codeConflictsWithSetter, + problemMessage: """Conflicts with setter '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConflictsWithTypeVariable = - const Template("ConflictsWithTypeVariable", - problemMessageTemplate: r"""Conflicts with type variable '#name'.""", - withArguments: _withArgumentsConflictsWithTypeVariable); + const Template( + "ConflictsWithTypeVariable", + problemMessageTemplate: r"""Conflicts with type variable '#name'.""", + withArguments: _withArgumentsConflictsWithTypeVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConflictsWithTypeVariable = - const Code("ConflictsWithTypeVariable", - analyzerCodes: ["CONFLICTING_TYPE_VARIABLE_AND_MEMBER"]); + const Code( + "ConflictsWithTypeVariable", + analyzerCodes: ["CONFLICTING_TYPE_VARIABLE_AND_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConflictsWithTypeVariable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConflictsWithTypeVariable, - problemMessage: """Conflicts with type variable '${name}'.""", - arguments: {'name': name}); + return new Message( + codeConflictsWithTypeVariable, + problemMessage: """Conflicts with type variable '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1424,30 +1696,34 @@ const Code codeConflictsWithTypeVariableCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConflictsWithTypeVariableCause = const MessageCode( - "ConflictsWithTypeVariableCause", - severity: Severity.context, - problemMessage: r"""This is the type variable."""); + "ConflictsWithTypeVariableCause", + severity: Severity.context, + problemMessage: r"""This is the type variable.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstAndFinal = messageConstAndFinal; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageConstAndFinal = const MessageCode("ConstAndFinal", - index: 58, - problemMessage: - r"""Members can't be declared to be both 'const' and 'final'.""", - correctionMessage: - r"""Try removing either the 'const' or 'final' keyword."""); +const MessageCode messageConstAndFinal = const MessageCode( + "ConstAndFinal", + index: 58, + problemMessage: + r"""Members can't be declared to be both 'const' and 'final'.""", + correctionMessage: r"""Try removing either the 'const' or 'final' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstClass = messageConstClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageConstClass = const MessageCode("ConstClass", - index: 60, - problemMessage: r"""Classes can't be declared to be 'const'.""", - correctionMessage: - r"""Try removing the 'const' keyword. If you're trying to indicate that instances of the class can be constants, place the 'const' keyword on the class' constructor(s)."""); +const MessageCode messageConstClass = const MessageCode( + "ConstClass", + index: 60, + problemMessage: r"""Classes can't be declared to be 'const'.""", + correctionMessage: + r"""Try removing the 'const' keyword. If you're trying to indicate that instances of the class can be constants, place the 'const' keyword on the class' constructor(s).""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstConstructorLateFinalFieldCause = @@ -1455,19 +1731,23 @@ const Code codeConstConstructorLateFinalFieldCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstConstructorLateFinalFieldCause = - const MessageCode("ConstConstructorLateFinalFieldCause", - severity: Severity.context, - problemMessage: r"""This constructor is const."""); + const MessageCode( + "ConstConstructorLateFinalFieldCause", + severity: Severity.context, + problemMessage: r"""This constructor is const.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstConstructorLateFinalFieldError = messageConstConstructorLateFinalFieldError; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageConstConstructorLateFinalFieldError = const MessageCode( - "ConstConstructorLateFinalFieldError", - problemMessage: - r"""Can't have a late final field in a class with a const constructor."""); +const MessageCode messageConstConstructorLateFinalFieldError = + const MessageCode( + "ConstConstructorLateFinalFieldError", + problemMessage: + r"""Can't have a late final field in a class with a const constructor.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstConstructorNonFinalField = @@ -1475,10 +1755,11 @@ const Code codeConstConstructorNonFinalField = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstConstructorNonFinalField = const MessageCode( - "ConstConstructorNonFinalField", - analyzerCodes: ["CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD"], - problemMessage: - r"""Constructor is marked 'const' so all fields must be final."""); + "ConstConstructorNonFinalField", + analyzerCodes: ["CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD"], + problemMessage: + r"""Constructor is marked 'const' so all fields must be final.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstConstructorNonFinalFieldCause = @@ -1486,9 +1767,10 @@ const Code codeConstConstructorNonFinalFieldCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstConstructorNonFinalFieldCause = const MessageCode( - "ConstConstructorNonFinalFieldCause", - severity: Severity.context, - problemMessage: r"""Field isn't final, but constructor is 'const'."""); + "ConstConstructorNonFinalFieldCause", + severity: Severity.context, + problemMessage: r"""Field isn't final, but constructor is 'const'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstConstructorRedirectionToNonConst = @@ -1496,20 +1778,23 @@ const Code codeConstConstructorRedirectionToNonConst = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstConstructorRedirectionToNonConst = - const MessageCode("ConstConstructorRedirectionToNonConst", - problemMessage: - r"""A constant constructor can't call a non-constant constructor."""); + const MessageCode( + "ConstConstructorRedirectionToNonConst", + problemMessage: + r"""A constant constructor can't call a non-constant constructor.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstConstructorWithBody = messageConstConstructorWithBody; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstConstructorWithBody = const MessageCode( - "ConstConstructorWithBody", - analyzerCodes: ["CONST_CONSTRUCTOR_WITH_BODY"], - problemMessage: r"""A const constructor can't have a body.""", - correctionMessage: - r"""Try removing either the 'const' keyword or the body."""); + "ConstConstructorWithBody", + analyzerCodes: ["CONST_CONSTRUCTOR_WITH_BODY"], + problemMessage: r"""A const constructor can't have a body.""", + correctionMessage: + r"""Try removing either the 'const' keyword or the body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstConstructorWithNonConstSuper = @@ -1517,65 +1802,76 @@ const Code codeConstConstructorWithNonConstSuper = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstConstructorWithNonConstSuper = const MessageCode( - "ConstConstructorWithNonConstSuper", - analyzerCodes: ["CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER"], - problemMessage: - r"""A constant constructor can't call a non-constant super constructor."""); + "ConstConstructorWithNonConstSuper", + analyzerCodes: ["CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER"], + problemMessage: + r"""A constant constructor can't call a non-constant super constructor.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalCircularity = messageConstEvalCircularity; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalCircularity = const MessageCode( - "ConstEvalCircularity", - analyzerCodes: ["RECURSIVE_COMPILE_TIME_CONSTANT"], - problemMessage: r"""Constant expression depends on itself."""); + "ConstEvalCircularity", + analyzerCodes: ["RECURSIVE_COMPILE_TIME_CONSTANT"], + problemMessage: r"""Constant expression depends on itself.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalContext = messageConstEvalContext; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalContext = const MessageCode( - "ConstEvalContext", - problemMessage: r"""While analyzing:"""); + "ConstEvalContext", + problemMessage: r"""While analyzing:""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - nameOKEmpty)> templateConstEvalDeferredLibrary = const Template< - Message Function(String nameOKEmpty)>("ConstEvalDeferredLibrary", - problemMessageTemplate: - r"""'#nameOKEmpty' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", - correctionMessageTemplate: - r"""Try moving the constant from the deferred library, or removing 'deferred' from the import. +const Template + templateConstEvalDeferredLibrary = + const Template( + "ConstEvalDeferredLibrary", + problemMessageTemplate: + r"""'#nameOKEmpty' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", + correctionMessageTemplate: + r"""Try moving the constant from the deferred library, or removing 'deferred' from the import. """, - withArguments: _withArgumentsConstEvalDeferredLibrary); + withArguments: _withArgumentsConstEvalDeferredLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalDeferredLibrary = - const Code("ConstEvalDeferredLibrary", - analyzerCodes: [ - "INVALID_ANNOTATION_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY" - ]); + const Code( + "ConstEvalDeferredLibrary", + analyzerCodes: [ + "INVALID_ANNOTATION_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY" + ], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalDeferredLibrary(String nameOKEmpty) { if (nameOKEmpty.isEmpty) nameOKEmpty = '(unnamed)'; - return new Message(codeConstEvalDeferredLibrary, - problemMessage: - """'${nameOKEmpty}' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", - correctionMessage: """Try moving the constant from the deferred library, or removing 'deferred' from the import. + return new Message( + codeConstEvalDeferredLibrary, + problemMessage: + """'${nameOKEmpty}' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", + correctionMessage: + """Try moving the constant from the deferred library, or removing 'deferred' from the import. """, - arguments: {'nameOKEmpty': nameOKEmpty}); + arguments: { + 'nameOKEmpty': nameOKEmpty, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConstEvalError = - const Template("ConstEvalError", - problemMessageTemplate: - r"""Error evaluating constant expression: #string""", - withArguments: _withArgumentsConstEvalError); + const Template( + "ConstEvalError", + problemMessageTemplate: r"""Error evaluating constant expression: #string""", + withArguments: _withArgumentsConstEvalError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalError = @@ -1586,9 +1882,13 @@ const Code codeConstEvalError = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalError(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeConstEvalError, - problemMessage: """Error evaluating constant expression: ${string}""", - arguments: {'string': string}); + return new Message( + codeConstEvalError, + problemMessage: """Error evaluating constant expression: ${string}""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1596,10 +1896,11 @@ const Code codeConstEvalExtension = messageConstEvalExtension; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalExtension = const MessageCode( - "ConstEvalExtension", - analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], - problemMessage: - r"""Extension operations can't be used in constant expressions."""); + "ConstEvalExtension", + analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], + problemMessage: + r"""Extension operations can't be used in constant expressions.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalExternalConstructor = @@ -1607,52 +1908,60 @@ const Code codeConstEvalExternalConstructor = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalExternalConstructor = const MessageCode( - "ConstEvalExternalConstructor", - problemMessage: - r"""External constructors can't be evaluated in constant expressions."""); + "ConstEvalExternalConstructor", + problemMessage: + r"""External constructors can't be evaluated in constant expressions.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalExternalFactory = messageConstEvalExternalFactory; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalExternalFactory = const MessageCode( - "ConstEvalExternalFactory", - problemMessage: - r"""External factory constructors can't be evaluated in constant expressions."""); + "ConstEvalExternalFactory", + problemMessage: + r"""External factory constructors can't be evaluated in constant expressions.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalFailedAssertion = messageConstEvalFailedAssertion; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalFailedAssertion = const MessageCode( - "ConstEvalFailedAssertion", - analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], - problemMessage: r"""This assertion failed."""); + "ConstEvalFailedAssertion", + analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], + problemMessage: r"""This assertion failed.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConstEvalFailedAssertionWithMessage = const Template( - "ConstEvalFailedAssertionWithMessage", - problemMessageTemplate: - r"""This assertion failed with message: #stringOKEmpty""", - withArguments: _withArgumentsConstEvalFailedAssertionWithMessage); + "ConstEvalFailedAssertionWithMessage", + problemMessageTemplate: + r"""This assertion failed with message: #stringOKEmpty""", + withArguments: _withArgumentsConstEvalFailedAssertionWithMessage, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalFailedAssertionWithMessage = const Code( - "ConstEvalFailedAssertionWithMessage", - analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"]); + "ConstEvalFailedAssertionWithMessage", + analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalFailedAssertionWithMessage( String stringOKEmpty) { if (stringOKEmpty.isEmpty) stringOKEmpty = '(empty)'; - return new Message(codeConstEvalFailedAssertionWithMessage, - problemMessage: - """This assertion failed with message: ${stringOKEmpty}""", - arguments: {'stringOKEmpty': stringOKEmpty}); + return new Message( + codeConstEvalFailedAssertionWithMessage, + problemMessage: """This assertion failed with message: ${stringOKEmpty}""", + arguments: { + 'stringOKEmpty': stringOKEmpty, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1661,18 +1970,20 @@ const Code codeConstEvalFailedAssertionWithNonStringMessage = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalFailedAssertionWithNonStringMessage = - const MessageCode("ConstEvalFailedAssertionWithNonStringMessage", - analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], - problemMessage: - r"""This assertion failed with a non-String message."""); + const MessageCode( + "ConstEvalFailedAssertionWithNonStringMessage", + analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], + problemMessage: r"""This assertion failed with a non-String message.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConstEvalGetterNotFound = const Template( - "ConstEvalGetterNotFound", - problemMessageTemplate: r"""Variable get not found: '#nameOKEmpty'""", - withArguments: _withArgumentsConstEvalGetterNotFound); + "ConstEvalGetterNotFound", + problemMessageTemplate: r"""Variable get not found: '#nameOKEmpty'""", + withArguments: _withArgumentsConstEvalGetterNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalGetterNotFound = @@ -1683,48 +1994,55 @@ const Code codeConstEvalGetterNotFound = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalGetterNotFound(String nameOKEmpty) { if (nameOKEmpty.isEmpty) nameOKEmpty = '(unnamed)'; - return new Message(codeConstEvalGetterNotFound, - problemMessage: """Variable get not found: '${nameOKEmpty}'""", - arguments: {'nameOKEmpty': nameOKEmpty}); + return new Message( + codeConstEvalGetterNotFound, + problemMessage: """Variable get not found: '${nameOKEmpty}'""", + arguments: { + 'nameOKEmpty': nameOKEmpty, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConstEvalInvalidStaticInvocation = const Template( - "ConstEvalInvalidStaticInvocation", - problemMessageTemplate: - r"""The invocation of '#nameOKEmpty' is not allowed in a constant expression.""", - withArguments: _withArgumentsConstEvalInvalidStaticInvocation); + "ConstEvalInvalidStaticInvocation", + problemMessageTemplate: + r"""The invocation of '#nameOKEmpty' is not allowed in a constant expression.""", + withArguments: _withArgumentsConstEvalInvalidStaticInvocation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalInvalidStaticInvocation = const Code( - "ConstEvalInvalidStaticInvocation", - analyzerCodes: ["CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE"]); + "ConstEvalInvalidStaticInvocation", + analyzerCodes: ["CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalInvalidStaticInvocation(String nameOKEmpty) { if (nameOKEmpty.isEmpty) nameOKEmpty = '(unnamed)'; - return new Message(codeConstEvalInvalidStaticInvocation, - problemMessage: - """The invocation of '${nameOKEmpty}' is not allowed in a constant expression.""", - arguments: {'nameOKEmpty': nameOKEmpty}); + return new Message( + codeConstEvalInvalidStaticInvocation, + problemMessage: + """The invocation of '${nameOKEmpty}' is not allowed in a constant expression.""", + arguments: { + 'nameOKEmpty': nameOKEmpty, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String string2, - String - string3)> templateConstEvalNegativeShift = const Template< +const Template + templateConstEvalNegativeShift = const Template< Message Function(String string, String string2, String string3)>( - "ConstEvalNegativeShift", - problemMessageTemplate: - r"""Binary operator '#string' on '#string2' requires non-negative operand, but was '#string3'.""", - withArguments: _withArgumentsConstEvalNegativeShift); + "ConstEvalNegativeShift", + problemMessageTemplate: + r"""Binary operator '#string' on '#string2' requires non-negative operand, but was '#string3'.""", + withArguments: _withArgumentsConstEvalNegativeShift, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -1739,36 +2057,47 @@ Message _withArgumentsConstEvalNegativeShift( if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; if (string3.isEmpty) throw 'No string provided'; - return new Message(codeConstEvalNegativeShift, - problemMessage: - """Binary operator '${string}' on '${string2}' requires non-negative operand, but was '${string3}'.""", - arguments: {'string': string, 'string2': string2, 'string3': string3}); + return new Message( + codeConstEvalNegativeShift, + problemMessage: + """Binary operator '${string}' on '${string2}' requires non-negative operand, but was '${string3}'.""", + arguments: { + 'string': string, + 'string2': string2, + 'string3': string3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - nameOKEmpty)> templateConstEvalNonConstantVariableGet = const Template< - Message Function(String nameOKEmpty)>("ConstEvalNonConstantVariableGet", - problemMessageTemplate: - r"""The variable '#nameOKEmpty' is not a constant, only constant expressions are allowed.""", - withArguments: _withArgumentsConstEvalNonConstantVariableGet); +const Template + templateConstEvalNonConstantVariableGet = + const Template( + "ConstEvalNonConstantVariableGet", + problemMessageTemplate: + r"""The variable '#nameOKEmpty' is not a constant, only constant expressions are allowed.""", + withArguments: _withArgumentsConstEvalNonConstantVariableGet, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalNonConstantVariableGet = const Code( - "ConstEvalNonConstantVariableGet", - analyzerCodes: ["NON_CONSTANT_VALUE_IN_INITIALIZER"]); + "ConstEvalNonConstantVariableGet", + analyzerCodes: ["NON_CONSTANT_VALUE_IN_INITIALIZER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalNonConstantVariableGet(String nameOKEmpty) { if (nameOKEmpty.isEmpty) nameOKEmpty = '(unnamed)'; - return new Message(codeConstEvalNonConstantVariableGet, - problemMessage: - """The variable '${nameOKEmpty}' is not a constant, only constant expressions are allowed.""", - arguments: {'nameOKEmpty': nameOKEmpty}); + return new Message( + codeConstEvalNonConstantVariableGet, + problemMessage: + """The variable '${nameOKEmpty}' is not a constant, only constant expressions are allowed.""", + arguments: { + 'nameOKEmpty': nameOKEmpty, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1776,8 +2105,9 @@ const Code codeConstEvalNonNull = messageConstEvalNonNull; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalNonNull = const MessageCode( - "ConstEvalNonNull", - problemMessage: r"""Constant expression must be non-null."""); + "ConstEvalNonNull", + problemMessage: r"""Constant expression must be non-null.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalNotListOrSetInSpread = @@ -1785,48 +2115,50 @@ const Code codeConstEvalNotListOrSetInSpread = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalNotListOrSetInSpread = const MessageCode( - "ConstEvalNotListOrSetInSpread", - analyzerCodes: ["CONST_SPREAD_EXPECTED_LIST_OR_SET"], - problemMessage: - r"""Only lists and sets can be used in spreads in constant lists and sets."""); + "ConstEvalNotListOrSetInSpread", + analyzerCodes: ["CONST_SPREAD_EXPECTED_LIST_OR_SET"], + problemMessage: + r"""Only lists and sets can be used in spreads in constant lists and sets.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalNotMapInSpread = messageConstEvalNotMapInSpread; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalNotMapInSpread = const MessageCode( - "ConstEvalNotMapInSpread", - analyzerCodes: ["CONST_SPREAD_EXPECTED_MAP"], - problemMessage: r"""Only maps can be used in spreads in constant maps."""); + "ConstEvalNotMapInSpread", + analyzerCodes: ["CONST_SPREAD_EXPECTED_MAP"], + problemMessage: r"""Only maps can be used in spreads in constant maps.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalNullValue = messageConstEvalNullValue; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalNullValue = const MessageCode( - "ConstEvalNullValue", - analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], - problemMessage: r"""Null value during constant evaluation."""); + "ConstEvalNullValue", + analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], + problemMessage: r"""Null value during constant evaluation.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalStartingPoint = messageConstEvalStartingPoint; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalStartingPoint = const MessageCode( - "ConstEvalStartingPoint", - problemMessage: r"""Constant evaluation error:"""); + "ConstEvalStartingPoint", + problemMessage: r"""Constant evaluation error:""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateConstEvalTruncateError = const Template< - Message Function(String string, String string2)>( - "ConstEvalTruncateError", - problemMessageTemplate: - r"""Binary operator '#string ~/ #string2' results is Infinity or NaN.""", - withArguments: _withArgumentsConstEvalTruncateError); +const Template + templateConstEvalTruncateError = + const Template( + "ConstEvalTruncateError", + problemMessageTemplate: + r"""Binary operator '#string ~/ #string2' results is Infinity or NaN.""", + withArguments: _withArgumentsConstEvalTruncateError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -1839,10 +2171,15 @@ const Code Message _withArgumentsConstEvalTruncateError(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeConstEvalTruncateError, - problemMessage: - """Binary operator '${string} ~/ ${string2}' results is Infinity or NaN.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeConstEvalTruncateError, + problemMessage: + """Binary operator '${string} ~/ ${string2}' results is Infinity or NaN.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1850,16 +2187,18 @@ const Code codeConstEvalUnevaluated = messageConstEvalUnevaluated; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstEvalUnevaluated = const MessageCode( - "ConstEvalUnevaluated", - problemMessage: r"""Couldn't evaluate constant expression."""); + "ConstEvalUnevaluated", + problemMessage: r"""Couldn't evaluate constant expression.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConstEvalUnhandledCoreException = const Template( - "ConstEvalUnhandledCoreException", - problemMessageTemplate: r"""Unhandled core exception: #stringOKEmpty""", - withArguments: _withArgumentsConstEvalUnhandledCoreException); + "ConstEvalUnhandledCoreException", + problemMessageTemplate: r"""Unhandled core exception: #stringOKEmpty""", + withArguments: _withArgumentsConstEvalUnhandledCoreException, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -1871,49 +2210,60 @@ const Code // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalUnhandledCoreException(String stringOKEmpty) { if (stringOKEmpty.isEmpty) stringOKEmpty = '(empty)'; - return new Message(codeConstEvalUnhandledCoreException, - problemMessage: """Unhandled core exception: ${stringOKEmpty}""", - arguments: {'stringOKEmpty': stringOKEmpty}); + return new Message( + codeConstEvalUnhandledCoreException, + problemMessage: """Unhandled core exception: ${stringOKEmpty}""", + arguments: { + 'stringOKEmpty': stringOKEmpty, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateConstEvalZeroDivisor = const Template< - Message Function(String string, String string2)>("ConstEvalZeroDivisor", - problemMessageTemplate: - r"""Binary operator '#string' on '#string2' requires non-zero divisor, but divisor was '0'.""", - withArguments: _withArgumentsConstEvalZeroDivisor); +const Template + templateConstEvalZeroDivisor = + const Template( + "ConstEvalZeroDivisor", + problemMessageTemplate: + r"""Binary operator '#string' on '#string2' requires non-zero divisor, but divisor was '0'.""", + withArguments: _withArgumentsConstEvalZeroDivisor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalZeroDivisor = const Code( - "ConstEvalZeroDivisor", - analyzerCodes: ["CONST_EVAL_THROWS_IDBZE"]); + "ConstEvalZeroDivisor", + analyzerCodes: ["CONST_EVAL_THROWS_IDBZE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalZeroDivisor(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeConstEvalZeroDivisor, - problemMessage: - """Binary operator '${string}' on '${string2}' requires non-zero divisor, but divisor was '0'.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeConstEvalZeroDivisor, + problemMessage: + """Binary operator '${string}' on '${string2}' requires non-zero divisor, but divisor was '0'.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstFactory = messageConstFactory; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageConstFactory = const MessageCode("ConstFactory", - index: 62, - problemMessage: - r"""Only redirecting factory constructors can be declared to be 'const'.""", - correctionMessage: - r"""Try removing the 'const' keyword, or replacing the body with '=' followed by a valid target."""); +const MessageCode messageConstFactory = const MessageCode( + "ConstFactory", + index: 62, + problemMessage: + r"""Only redirecting factory constructors can be declared to be 'const'.""", + correctionMessage: + r"""Try removing the 'const' keyword, or replacing the body with '=' followed by a valid target.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstFactoryRedirectionToNonConst = @@ -1921,39 +2271,46 @@ const Code codeConstFactoryRedirectionToNonConst = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstFactoryRedirectionToNonConst = const MessageCode( - "ConstFactoryRedirectionToNonConst", - analyzerCodes: ["REDIRECT_TO_NON_CONST_CONSTRUCTOR"], - problemMessage: - r"""Constant factory constructor can't delegate to a non-constant constructor.""", - correctionMessage: - r"""Try redirecting to a different constructor or marking the target constructor 'const'."""); + "ConstFactoryRedirectionToNonConst", + analyzerCodes: ["REDIRECT_TO_NON_CONST_CONSTRUCTOR"], + problemMessage: + r"""Constant factory constructor can't delegate to a non-constant constructor.""", + correctionMessage: + r"""Try redirecting to a different constructor or marking the target constructor 'const'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateConstFieldWithoutInitializer = const Template< - Message Function(String name)>("ConstFieldWithoutInitializer", - problemMessageTemplate: - r"""The const variable '#name' must be initialized.""", - correctionMessageTemplate: - r"""Try adding an initializer ('= expression') to the declaration.""", - withArguments: _withArgumentsConstFieldWithoutInitializer); +const Template + templateConstFieldWithoutInitializer = + const Template( + "ConstFieldWithoutInitializer", + problemMessageTemplate: + r"""The const variable '#name' must be initialized.""", + correctionMessageTemplate: + r"""Try adding an initializer ('= expression') to the declaration.""", + withArguments: _withArgumentsConstFieldWithoutInitializer, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstFieldWithoutInitializer = - const Code("ConstFieldWithoutInitializer", - analyzerCodes: ["CONST_NOT_INITIALIZED"]); + const Code( + "ConstFieldWithoutInitializer", + analyzerCodes: ["CONST_NOT_INITIALIZED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstFieldWithoutInitializer(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConstFieldWithoutInitializer, - problemMessage: """The const variable '${name}' must be initialized.""", - correctionMessage: - """Try adding an initializer ('= expression') to the declaration.""", - arguments: {'name': name}); + return new Message( + codeConstFieldWithoutInitializer, + problemMessage: """The const variable '${name}' must be initialized.""", + correctionMessage: + """Try adding an initializer ('= expression') to the declaration.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1961,79 +2318,97 @@ const Code codeConstInstanceField = messageConstInstanceField; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstInstanceField = const MessageCode( - "ConstInstanceField", - analyzerCodes: ["CONST_INSTANCE_FIELD"], - problemMessage: r"""Only static fields can be declared as const.""", - correctionMessage: - r"""Try using 'final' instead of 'const', or adding the keyword 'static'."""); + "ConstInstanceField", + analyzerCodes: ["CONST_INSTANCE_FIELD"], + problemMessage: r"""Only static fields can be declared as const.""", + correctionMessage: + r"""Try using 'final' instead of 'const', or adding the keyword 'static'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstMethod = messageConstMethod; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageConstMethod = const MessageCode("ConstMethod", - index: 63, - problemMessage: - r"""Getters, setters and methods can't be declared to be 'const'.""", - correctionMessage: r"""Try removing the 'const' keyword."""); +const MessageCode messageConstMethod = const MessageCode( + "ConstMethod", + index: 63, + problemMessage: + r"""Getters, setters and methods can't be declared to be 'const'.""", + correctionMessage: r"""Try removing the 'const' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstructorCyclic = messageConstructorCyclic; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstructorCyclic = const MessageCode( - "ConstructorCyclic", - analyzerCodes: ["RECURSIVE_CONSTRUCTOR_REDIRECT"], - problemMessage: r"""Redirecting constructors can't be cyclic.""", - correctionMessage: - r"""Try to have all constructors eventually redirect to a non-redirecting constructor."""); + "ConstructorCyclic", + analyzerCodes: ["RECURSIVE_CONSTRUCTOR_REDIRECT"], + problemMessage: r"""Redirecting constructors can't be cyclic.""", + correctionMessage: + r"""Try to have all constructors eventually redirect to a non-redirecting constructor.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConstructorInitializeSameInstanceVariableSeveralTimes = const Template( - "ConstructorInitializeSameInstanceVariableSeveralTimes", - problemMessageTemplate: - r"""'#name' was already initialized by this constructor.""", - withArguments: - _withArgumentsConstructorInitializeSameInstanceVariableSeveralTimes); + "ConstructorInitializeSameInstanceVariableSeveralTimes", + problemMessageTemplate: + r"""'#name' was already initialized by this constructor.""", + withArguments: + _withArgumentsConstructorInitializeSameInstanceVariableSeveralTimes, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstructorInitializeSameInstanceVariableSeveralTimes = const Code( - "ConstructorInitializeSameInstanceVariableSeveralTimes", - analyzerCodes: ["FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS"]); + "ConstructorInitializeSameInstanceVariableSeveralTimes", + analyzerCodes: ["FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstructorInitializeSameInstanceVariableSeveralTimes( String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConstructorInitializeSameInstanceVariableSeveralTimes, - problemMessage: - """'${name}' was already initialized by this constructor.""", - arguments: {'name': name}); + return new Message( + codeConstructorInitializeSameInstanceVariableSeveralTimes, + problemMessage: + """'${name}' was already initialized by this constructor.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConstructorNotFound = - const Template("ConstructorNotFound", - problemMessageTemplate: r"""Couldn't find constructor '#name'.""", - withArguments: _withArgumentsConstructorNotFound); + const Template( + "ConstructorNotFound", + problemMessageTemplate: r"""Couldn't find constructor '#name'.""", + withArguments: _withArgumentsConstructorNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstructorNotFound = - const Code("ConstructorNotFound", - analyzerCodes: ["CONSTRUCTOR_NOT_FOUND"]); + const Code( + "ConstructorNotFound", + analyzerCodes: ["CONSTRUCTOR_NOT_FOUND"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstructorNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConstructorNotFound, - problemMessage: """Couldn't find constructor '${name}'.""", - arguments: {'name': name}); + return new Message( + codeConstructorNotFound, + problemMessage: """Couldn't find constructor '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2041,22 +2416,25 @@ const Code codeConstructorNotSync = messageConstructorNotSync; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstructorNotSync = const MessageCode( - "ConstructorNotSync", - analyzerCodes: ["NON_SYNC_CONSTRUCTOR"], - problemMessage: - r"""Constructor bodies can't use 'async', 'async*', or 'sync*'."""); + "ConstructorNotSync", + analyzerCodes: ["NON_SYNC_CONSTRUCTOR"], + problemMessage: + r"""Constructor bodies can't use 'async', 'async*', or 'sync*'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstructorTearOffWithTypeArguments = messageConstructorTearOffWithTypeArguments; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageConstructorTearOffWithTypeArguments = const MessageCode( - "ConstructorTearOffWithTypeArguments", - problemMessage: - r"""A constructor tear-off can't have type arguments after the constructor name.""", - correctionMessage: - r"""Try removing the type arguments or placing them after the class name."""); +const MessageCode messageConstructorTearOffWithTypeArguments = + const MessageCode( + "ConstructorTearOffWithTypeArguments", + problemMessage: + r"""A constructor tear-off can't have type arguments after the constructor name.""", + correctionMessage: + r"""Try removing the type arguments or placing them after the class name.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstructorWithReturnType = @@ -2064,10 +2442,11 @@ const Code codeConstructorWithReturnType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstructorWithReturnType = const MessageCode( - "ConstructorWithReturnType", - index: 55, - problemMessage: r"""Constructors can't have a return type.""", - correctionMessage: r"""Try removing the return type."""); + "ConstructorWithReturnType", + index: 55, + problemMessage: r"""Constructors can't have a return type.""", + correctionMessage: r"""Try removing the return type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstructorWithTypeArguments = @@ -2075,12 +2454,13 @@ const Code codeConstructorWithTypeArguments = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstructorWithTypeArguments = const MessageCode( - "ConstructorWithTypeArguments", - index: 118, - problemMessage: - r"""A constructor invocation can't have type arguments after the constructor name.""", - correctionMessage: - r"""Try removing the type arguments or placing them after the class name."""); + "ConstructorWithTypeArguments", + index: 118, + problemMessage: + r"""A constructor invocation can't have type arguments after the constructor name.""", + correctionMessage: + r"""Try removing the type arguments or placing them after the class name.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstructorWithTypeParameters = @@ -2088,42 +2468,50 @@ const Code codeConstructorWithTypeParameters = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstructorWithTypeParameters = const MessageCode( - "ConstructorWithTypeParameters", - index: 99, - problemMessage: r"""Constructors can't have type parameters.""", - correctionMessage: r"""Try removing the type parameters."""); + "ConstructorWithTypeParameters", + index: 99, + problemMessage: r"""Constructors can't have type parameters.""", + correctionMessage: r"""Try removing the type parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstructorWithWrongName = messageConstructorWithWrongName; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageConstructorWithWrongName = const MessageCode( - "ConstructorWithWrongName", - index: 102, - problemMessage: - r"""The name of a constructor must match the name of the enclosing class."""); + "ConstructorWithWrongName", + index: 102, + problemMessage: + r"""The name of a constructor must match the name of the enclosing class.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConstructorWithWrongNameContext = const Template( - "ConstructorWithWrongNameContext", - problemMessageTemplate: - r"""The name of the enclosing class is '#name'.""", - withArguments: _withArgumentsConstructorWithWrongNameContext); + "ConstructorWithWrongNameContext", + problemMessageTemplate: r"""The name of the enclosing class is '#name'.""", + withArguments: _withArgumentsConstructorWithWrongNameContext, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstructorWithWrongNameContext = - const Code("ConstructorWithWrongNameContext", - severity: Severity.context); + const Code( + "ConstructorWithWrongNameContext", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstructorWithWrongNameContext(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeConstructorWithWrongNameContext, - problemMessage: """The name of the enclosing class is '${name}'.""", - arguments: {'name': name}); + return new Message( + codeConstructorWithWrongNameContext, + problemMessage: """The name of the enclosing class is '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2131,44 +2519,52 @@ const Code codeContinueLabelInvalid = messageContinueLabelInvalid; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageContinueLabelInvalid = const MessageCode( - "ContinueLabelInvalid", - analyzerCodes: ["CONTINUE_LABEL_INVALID"], - problemMessage: - r"""A 'continue' label must be on a loop or a switch member."""); + "ContinueLabelInvalid", + analyzerCodes: ["CONTINUE_LABEL_INVALID"], + problemMessage: + r"""A 'continue' label must be on a loop or a switch member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeContinueOutsideOfLoop = messageContinueOutsideOfLoop; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageContinueOutsideOfLoop = const MessageCode( - "ContinueOutsideOfLoop", - index: 2, - problemMessage: - r"""A continue statement can't be used outside of a loop or switch statement.""", - correctionMessage: r"""Try removing the continue statement."""); + "ContinueOutsideOfLoop", + index: 2, + problemMessage: + r"""A continue statement can't be used outside of a loop or switch statement.""", + correctionMessage: r"""Try removing the continue statement.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateContinueTargetOutsideFunction = const Template( - "ContinueTargetOutsideFunction", - problemMessageTemplate: - r"""Can't continue at '#name' in a different function.""", - withArguments: _withArgumentsContinueTargetOutsideFunction); + "ContinueTargetOutsideFunction", + problemMessageTemplate: + r"""Can't continue at '#name' in a different function.""", + withArguments: _withArgumentsContinueTargetOutsideFunction, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeContinueTargetOutsideFunction = - const Code("ContinueTargetOutsideFunction", - analyzerCodes: ["LABEL_IN_OUTER_SCOPE"]); + const Code( + "ContinueTargetOutsideFunction", + analyzerCodes: ["LABEL_IN_OUTER_SCOPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsContinueTargetOutsideFunction(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeContinueTargetOutsideFunction, - problemMessage: - """Can't continue at '${name}' in a different function.""", - arguments: {'name': name}); + return new Message( + codeContinueTargetOutsideFunction, + problemMessage: """Can't continue at '${name}' in a different function.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2177,21 +2573,23 @@ const Code codeContinueWithoutLabelInCase = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageContinueWithoutLabelInCase = const MessageCode( - "ContinueWithoutLabelInCase", - index: 64, - problemMessage: - r"""A continue statement in a switch statement must have a label as a target.""", - correctionMessage: - r"""Try adding a label associated with one of the case clauses to the continue statement."""); + "ContinueWithoutLabelInCase", + index: 64, + problemMessage: + r"""A continue statement in a switch statement must have a label as a target.""", + correctionMessage: + r"""Try adding a label associated with one of the case clauses to the continue statement.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCouldNotParseUri = const Template( - "CouldNotParseUri", - problemMessageTemplate: r"""Couldn't parse URI '#string': + "CouldNotParseUri", + problemMessageTemplate: r"""Couldn't parse URI '#string': #string2.""", - withArguments: _withArgumentsCouldNotParseUri); + withArguments: _withArgumentsCouldNotParseUri, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -2204,9 +2602,15 @@ const Code Message _withArgumentsCouldNotParseUri(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeCouldNotParseUri, - problemMessage: """Couldn't parse URI '${string}': - ${string2}.""", arguments: {'string': string, 'string2': string2}); + return new Message( + codeCouldNotParseUri, + problemMessage: """Couldn't parse URI '${string}': + ${string2}.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2214,96 +2618,119 @@ const Code codeCovariantAndStatic = messageCovariantAndStatic; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCovariantAndStatic = const MessageCode( - "CovariantAndStatic", - index: 66, - problemMessage: - r"""Members can't be declared to be both 'covariant' and 'static'.""", - correctionMessage: - r"""Try removing either the 'covariant' or 'static' keyword."""); + "CovariantAndStatic", + index: 66, + problemMessage: + r"""Members can't be declared to be both 'covariant' and 'static'.""", + correctionMessage: + r"""Try removing either the 'covariant' or 'static' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCovariantMember = messageCovariantMember; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageCovariantMember = const MessageCode("CovariantMember", - index: 67, - problemMessage: - r"""Getters, setters and methods can't be declared to be 'covariant'.""", - correctionMessage: r"""Try removing the 'covariant' keyword."""); +const MessageCode messageCovariantMember = const MessageCode( + "CovariantMember", + index: 67, + problemMessage: + r"""Getters, setters and methods can't be declared to be 'covariant'.""", + correctionMessage: r"""Try removing the 'covariant' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCycleInTypeVariables = const Template( - "CycleInTypeVariables", - problemMessageTemplate: - r"""Type '#name' is a bound of itself via '#string'.""", - correctionMessageTemplate: - r"""Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.""", - withArguments: _withArgumentsCycleInTypeVariables); + "CycleInTypeVariables", + problemMessageTemplate: + r"""Type '#name' is a bound of itself via '#string'.""", + correctionMessageTemplate: + r"""Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.""", + withArguments: _withArgumentsCycleInTypeVariables, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCycleInTypeVariables = const Code( - "CycleInTypeVariables", - analyzerCodes: ["TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND"]); + "CycleInTypeVariables", + analyzerCodes: ["TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCycleInTypeVariables(String name, String string) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeCycleInTypeVariables, - problemMessage: - """Type '${name}' is a bound of itself via '${string}'.""", - correctionMessage: - """Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.""", - arguments: {'name': name, 'string': string}); + return new Message( + codeCycleInTypeVariables, + problemMessage: """Type '${name}' is a bound of itself via '${string}'.""", + correctionMessage: + """Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCyclicClassHierarchy = - const Template("CyclicClassHierarchy", - problemMessageTemplate: r"""'#name' is a supertype of itself.""", - withArguments: _withArgumentsCyclicClassHierarchy); + const Template( + "CyclicClassHierarchy", + problemMessageTemplate: r"""'#name' is a supertype of itself.""", + withArguments: _withArgumentsCyclicClassHierarchy, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCyclicClassHierarchy = - const Code("CyclicClassHierarchy", - analyzerCodes: ["RECURSIVE_INTERFACE_INHERITANCE"]); + const Code( + "CyclicClassHierarchy", + analyzerCodes: ["RECURSIVE_INTERFACE_INHERITANCE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCyclicClassHierarchy(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCyclicClassHierarchy, - problemMessage: """'${name}' is a supertype of itself.""", - arguments: {'name': name}); + return new Message( + codeCyclicClassHierarchy, + problemMessage: """'${name}' is a supertype of itself.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCyclicRedirectingFactoryConstructors = const Template( - "CyclicRedirectingFactoryConstructors", - problemMessageTemplate: r"""Cyclic definition of factory '#name'.""", - withArguments: _withArgumentsCyclicRedirectingFactoryConstructors); + "CyclicRedirectingFactoryConstructors", + problemMessageTemplate: r"""Cyclic definition of factory '#name'.""", + withArguments: _withArgumentsCyclicRedirectingFactoryConstructors, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCyclicRedirectingFactoryConstructors = const Code( - "CyclicRedirectingFactoryConstructors", - analyzerCodes: ["RECURSIVE_FACTORY_REDIRECT"]); + "CyclicRedirectingFactoryConstructors", + analyzerCodes: ["RECURSIVE_FACTORY_REDIRECT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCyclicRedirectingFactoryConstructors(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCyclicRedirectingFactoryConstructors, - problemMessage: """Cyclic definition of factory '${name}'.""", - arguments: {'name': name}); + return new Message( + codeCyclicRedirectingFactoryConstructors, + problemMessage: """Cyclic definition of factory '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2312,51 +2739,70 @@ const Code codeCyclicRepresentationDependency = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageCyclicRepresentationDependency = const MessageCode( - "CyclicRepresentationDependency", - problemMessage: - r"""An extension type can't depend on itself through its representation type."""); + "CyclicRepresentationDependency", + problemMessage: + r"""An extension type can't depend on itself through its representation type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateCyclicTypedef = - const Template("CyclicTypedef", - problemMessageTemplate: - r"""The typedef '#name' has a reference to itself.""", - withArguments: _withArgumentsCyclicTypedef); + const Template( + "CyclicTypedef", + problemMessageTemplate: r"""The typedef '#name' has a reference to itself.""", + withArguments: _withArgumentsCyclicTypedef, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeCyclicTypedef = - const Code("CyclicTypedef", - analyzerCodes: ["TYPE_ALIAS_CANNOT_REFERENCE_ITSELF"]); + const Code( + "CyclicTypedef", + analyzerCodes: ["TYPE_ALIAS_CANNOT_REFERENCE_ITSELF"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsCyclicTypedef(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeCyclicTypedef, - problemMessage: """The typedef '${name}' has a reference to itself.""", - arguments: {'name': name}); + return new Message( + codeCyclicTypedef, + problemMessage: """The typedef '${name}' has a reference to itself.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDebugTrace = - const Template("DebugTrace", - problemMessageTemplate: r"""Fatal '#name' at: + const Template( + "DebugTrace", + problemMessageTemplate: r"""Fatal '#name' at: #string""", - withArguments: _withArgumentsDebugTrace); + withArguments: _withArgumentsDebugTrace, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDebugTrace = - const Code("DebugTrace", - severity: Severity.ignored); + const Code( + "DebugTrace", + severity: Severity.ignored, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDebugTrace(String name, String string) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeDebugTrace, problemMessage: """Fatal '${name}' at: -${string}""", arguments: {'name': name, 'string': string}); + return new Message( + codeDebugTrace, + problemMessage: """Fatal '${name}' at: +${string}""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2365,10 +2811,12 @@ const Code codeDeclaredMemberConflictsWithInheritedMember = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDeclaredMemberConflictsWithInheritedMember = - const MessageCode("DeclaredMemberConflictsWithInheritedMember", - analyzerCodes: ["DECLARED_MEMBER_CONFLICTS_WITH_INHERITED"], - problemMessage: - r"""Can't declare a member that conflicts with an inherited one."""); + const MessageCode( + "DeclaredMemberConflictsWithInheritedMember", + analyzerCodes: ["DECLARED_MEMBER_CONFLICTS_WITH_INHERITED"], + problemMessage: + r"""Can't declare a member that conflicts with an inherited one.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDeclaredMemberConflictsWithInheritedMemberCause = @@ -2376,9 +2824,11 @@ const Code codeDeclaredMemberConflictsWithInheritedMemberCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDeclaredMemberConflictsWithInheritedMemberCause = - const MessageCode("DeclaredMemberConflictsWithInheritedMemberCause", - severity: Severity.context, - problemMessage: r"""This is the inherited member."""); + const MessageCode( + "DeclaredMemberConflictsWithInheritedMemberCause", + severity: Severity.context, + problemMessage: r"""This is the inherited member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDeclaredMemberConflictsWithInheritedMembersCause = @@ -2386,9 +2836,11 @@ const Code codeDeclaredMemberConflictsWithInheritedMembersCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDeclaredMemberConflictsWithInheritedMembersCause = - const MessageCode("DeclaredMemberConflictsWithInheritedMembersCause", - severity: Severity.context, - problemMessage: r"""This is one of the inherited members."""); + const MessageCode( + "DeclaredMemberConflictsWithInheritedMembersCause", + severity: Severity.context, + problemMessage: r"""This is one of the inherited members.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDeclaredMemberConflictsWithOverriddenMembersCause = @@ -2396,9 +2848,11 @@ const Code codeDeclaredMemberConflictsWithOverriddenMembersCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDeclaredMemberConflictsWithOverriddenMembersCause = - const MessageCode("DeclaredMemberConflictsWithOverriddenMembersCause", - severity: Severity.context, - problemMessage: r"""This is one of the overridden members."""); + const MessageCode( + "DeclaredMemberConflictsWithOverriddenMembersCause", + severity: Severity.context, + problemMessage: r"""This is one of the overridden members.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDefaultInSwitchExpression = @@ -2406,41 +2860,44 @@ const Code codeDefaultInSwitchExpression = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDefaultInSwitchExpression = const MessageCode( - "DefaultInSwitchExpression", - index: 153, - problemMessage: - r"""A switch expression may not use the `default` keyword.""", - correctionMessage: r"""Try replacing `default` with `_`."""); + "DefaultInSwitchExpression", + index: 153, + problemMessage: r"""A switch expression may not use the `default` keyword.""", + correctionMessage: r"""Try replacing `default` with `_`.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDefaultValueInRedirectingFactoryConstructor = const Template( - "DefaultValueInRedirectingFactoryConstructor", - problemMessageTemplate: - r"""Can't have a default value here because any default values of '#name' would be used instead.""", - correctionMessageTemplate: r"""Try removing the default value.""", - withArguments: - _withArgumentsDefaultValueInRedirectingFactoryConstructor); + "DefaultValueInRedirectingFactoryConstructor", + problemMessageTemplate: + r"""Can't have a default value here because any default values of '#name' would be used instead.""", + correctionMessageTemplate: r"""Try removing the default value.""", + withArguments: _withArgumentsDefaultValueInRedirectingFactoryConstructor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDefaultValueInRedirectingFactoryConstructor = const Code( - "DefaultValueInRedirectingFactoryConstructor", - analyzerCodes: [ - "DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR" - ]); + "DefaultValueInRedirectingFactoryConstructor", + analyzerCodes: ["DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRUCTOR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDefaultValueInRedirectingFactoryConstructor(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDefaultValueInRedirectingFactoryConstructor, - problemMessage: - """Can't have a default value here because any default values of '${name}' would be used instead.""", - correctionMessage: """Try removing the default value.""", - arguments: {'name': name}); + return new Message( + codeDefaultValueInRedirectingFactoryConstructor, + problemMessage: + """Can't have a default value here because any default values of '${name}' would be used instead.""", + correctionMessage: """Try removing the default value.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2448,24 +2905,22 @@ const Code codeDeferredAfterPrefix = messageDeferredAfterPrefix; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDeferredAfterPrefix = const MessageCode( - "DeferredAfterPrefix", - index: 68, - problemMessage: - r"""The deferred keyword should come immediately before the prefix ('as' clause).""", - correctionMessage: - r"""Try moving the deferred keyword before the prefix."""); + "DeferredAfterPrefix", + index: 68, + problemMessage: + r"""The deferred keyword should come immediately before the prefix ('as' clause).""", + correctionMessage: r"""Try moving the deferred keyword before the prefix.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateDeferredExtensionImport = const Template< - Message Function(String name)>("DeferredExtensionImport", - problemMessageTemplate: - r"""Extension '#name' cannot be imported through a deferred import.""", - correctionMessageTemplate: - r"""Try adding the `hide #name` to the import.""", - withArguments: _withArgumentsDeferredExtensionImport); +const Template templateDeferredExtensionImport = + const Template( + "DeferredExtensionImport", + problemMessageTemplate: + r"""Extension '#name' cannot be imported through a deferred import.""", + correctionMessageTemplate: r"""Try adding the `hide #name` to the import.""", + withArguments: _withArgumentsDeferredExtensionImport, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDeferredExtensionImport = @@ -2477,72 +2932,88 @@ const Code codeDeferredExtensionImport = Message _withArgumentsDeferredExtensionImport(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDeferredExtensionImport, - problemMessage: - """Extension '${name}' cannot be imported through a deferred import.""", - correctionMessage: """Try adding the `hide ${name}` to the import.""", - arguments: {'name': name}); + return new Message( + codeDeferredExtensionImport, + problemMessage: + """Extension '${name}' cannot be imported through a deferred import.""", + correctionMessage: """Try adding the `hide ${name}` to the import.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateDeferredPrefixDuplicated = const Template< - Message Function(String name)>("DeferredPrefixDuplicated", - problemMessageTemplate: - r"""Can't use the name '#name' for a deferred library, as the name is used elsewhere.""", - withArguments: _withArgumentsDeferredPrefixDuplicated); +const Template templateDeferredPrefixDuplicated = + const Template( + "DeferredPrefixDuplicated", + problemMessageTemplate: + r"""Can't use the name '#name' for a deferred library, as the name is used elsewhere.""", + withArguments: _withArgumentsDeferredPrefixDuplicated, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDeferredPrefixDuplicated = - const Code("DeferredPrefixDuplicated", - analyzerCodes: ["SHARED_DEFERRED_PREFIX"]); + const Code( + "DeferredPrefixDuplicated", + analyzerCodes: ["SHARED_DEFERRED_PREFIX"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDeferredPrefixDuplicated(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDeferredPrefixDuplicated, - problemMessage: - """Can't use the name '${name}' for a deferred library, as the name is used elsewhere.""", - arguments: {'name': name}); + return new Message( + codeDeferredPrefixDuplicated, + problemMessage: + """Can't use the name '${name}' for a deferred library, as the name is used elsewhere.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDeferredPrefixDuplicatedCause = const Template( - "DeferredPrefixDuplicatedCause", - problemMessageTemplate: r"""'#name' is used here.""", - withArguments: _withArgumentsDeferredPrefixDuplicatedCause); + "DeferredPrefixDuplicatedCause", + problemMessageTemplate: r"""'#name' is used here.""", + withArguments: _withArgumentsDeferredPrefixDuplicatedCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDeferredPrefixDuplicatedCause = - const Code("DeferredPrefixDuplicatedCause", - severity: Severity.context); + const Code( + "DeferredPrefixDuplicatedCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDeferredPrefixDuplicatedCause(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDeferredPrefixDuplicatedCause, - problemMessage: """'${name}' is used here.""", arguments: {'name': name}); + return new Message( + codeDeferredPrefixDuplicatedCause, + problemMessage: """'${name}' is used here.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - int count, int count2, num _num1, num _num2, num _num3)> - templateDillOutlineSummary = const Template< - Message Function( - int count, int count2, num _num1, num _num2, num _num3)>( - "DillOutlineSummary", - problemMessageTemplate: - r"""Indexed #count libraries (#count2 bytes) in #num1%.3ms, that is, + Message Function(int count, int count2, num _num1, num _num2, + num _num3)> templateDillOutlineSummary = const Template< + Message Function(int count, int count2, num _num1, num _num2, num _num3)>( + "DillOutlineSummary", + problemMessageTemplate: + r"""Indexed #count libraries (#count2 bytes) in #num1%.3ms, that is, #num2%12.3 bytes/ms, and #num3%12.3 ms/libraries.""", - withArguments: _withArgumentsDillOutlineSummary); + withArguments: _withArgumentsDillOutlineSummary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -2558,45 +3029,53 @@ Message _withArgumentsDillOutlineSummary( String num1 = _num1.toStringAsFixed(3); String num2 = _num2.toStringAsFixed(3).padLeft(12); String num3 = _num3.toStringAsFixed(3).padLeft(12); - return new Message(codeDillOutlineSummary, - problemMessage: - """Indexed ${count} libraries (${count2} bytes) in ${num1}ms, that is, + return new Message( + codeDillOutlineSummary, + problemMessage: + """Indexed ${count} libraries (${count2} bytes) in ${num1}ms, that is, ${num2} bytes/ms, and ${num3} ms/libraries.""", - arguments: { - 'count': count, - 'count2': count2, - 'num1': _num1, - 'num2': _num2, - 'num3': _num3 - }); + arguments: { + 'count': count, + 'count2': count2, + 'num1': _num1, + 'num2': _num2, + 'num3': _num3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateDirectCycleInTypeVariables = const Template< - Message Function(String name)>("DirectCycleInTypeVariables", - problemMessageTemplate: r"""Type '#name' can't use itself as a bound.""", - correctionMessageTemplate: - r"""Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.""", - withArguments: _withArgumentsDirectCycleInTypeVariables); +const Template + templateDirectCycleInTypeVariables = + const Template( + "DirectCycleInTypeVariables", + problemMessageTemplate: r"""Type '#name' can't use itself as a bound.""", + correctionMessageTemplate: + r"""Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.""", + withArguments: _withArgumentsDirectCycleInTypeVariables, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDirectCycleInTypeVariables = - const Code("DirectCycleInTypeVariables", - analyzerCodes: ["TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND"]); + const Code( + "DirectCycleInTypeVariables", + analyzerCodes: ["TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDirectCycleInTypeVariables(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDirectCycleInTypeVariables, - problemMessage: """Type '${name}' can't use itself as a bound.""", - correctionMessage: - """Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.""", - arguments: {'name': name}); + return new Message( + codeDirectCycleInTypeVariables, + problemMessage: """Type '${name}' can't use itself as a bound.""", + correctionMessage: + """Try breaking the cycle by removing at least one of the 'extends' clauses in the cycle.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2605,76 +3084,90 @@ const Code codeDirectiveAfterDeclaration = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDirectiveAfterDeclaration = const MessageCode( - "DirectiveAfterDeclaration", - index: 69, - problemMessage: r"""Directives must appear before any declarations.""", - correctionMessage: - r"""Try moving the directive before any declarations."""); + "DirectiveAfterDeclaration", + index: 69, + problemMessage: r"""Directives must appear before any declarations.""", + correctionMessage: r"""Try moving the directive before any declarations.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicateDeferred = messageDuplicateDeferred; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDuplicateDeferred = const MessageCode( - "DuplicateDeferred", - index: 71, - problemMessage: - r"""An import directive can only have one 'deferred' keyword.""", - correctionMessage: r"""Try removing all but one 'deferred' keyword."""); + "DuplicateDeferred", + index: 71, + problemMessage: + r"""An import directive can only have one 'deferred' keyword.""", + correctionMessage: r"""Try removing all but one 'deferred' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicateLabelInSwitchStatement = const Template( - "DuplicateLabelInSwitchStatement", - problemMessageTemplate: - r"""The label '#name' was already used in this switch statement.""", - correctionMessageTemplate: - r"""Try choosing a different name for this label.""", - withArguments: _withArgumentsDuplicateLabelInSwitchStatement); + "DuplicateLabelInSwitchStatement", + problemMessageTemplate: + r"""The label '#name' was already used in this switch statement.""", + correctionMessageTemplate: + r"""Try choosing a different name for this label.""", + withArguments: _withArgumentsDuplicateLabelInSwitchStatement, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicateLabelInSwitchStatement = - const Code("DuplicateLabelInSwitchStatement", - index: 72); + const Code( + "DuplicateLabelInSwitchStatement", + index: 72, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicateLabelInSwitchStatement(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicateLabelInSwitchStatement, - problemMessage: - """The label '${name}' was already used in this switch statement.""", - correctionMessage: """Try choosing a different name for this label.""", - arguments: {'name': name}); + return new Message( + codeDuplicateLabelInSwitchStatement, + problemMessage: + """The label '${name}' was already used in this switch statement.""", + correctionMessage: """Try choosing a different name for this label.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatePatternAssignmentVariable = const Template( - "DuplicatePatternAssignmentVariable", - problemMessageTemplate: - r"""The variable '#name' is already assigned in this pattern.""", - correctionMessageTemplate: r"""Try renaming the variable.""", - withArguments: _withArgumentsDuplicatePatternAssignmentVariable); + "DuplicatePatternAssignmentVariable", + problemMessageTemplate: + r"""The variable '#name' is already assigned in this pattern.""", + correctionMessageTemplate: r"""Try renaming the variable.""", + withArguments: _withArgumentsDuplicatePatternAssignmentVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatePatternAssignmentVariable = const Code( - "DuplicatePatternAssignmentVariable", - analyzerCodes: ["DUPLICATE_PATTERN_ASSIGNMENT_VARIABLE"]); + "DuplicatePatternAssignmentVariable", + analyzerCodes: ["DUPLICATE_PATTERN_ASSIGNMENT_VARIABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatePatternAssignmentVariable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatePatternAssignmentVariable, - problemMessage: - """The variable '${name}' is already assigned in this pattern.""", - correctionMessage: """Try renaming the variable.""", - arguments: {'name': name}); + return new Message( + codeDuplicatePatternAssignmentVariable, + problemMessage: + """The variable '${name}' is already assigned in this pattern.""", + correctionMessage: """Try renaming the variable.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2683,43 +3176,55 @@ const Code codeDuplicatePatternAssignmentVariableContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDuplicatePatternAssignmentVariableContext = - const MessageCode("DuplicatePatternAssignmentVariableContext", - severity: Severity.context, - problemMessage: r"""The first assigned variable pattern."""); + const MessageCode( + "DuplicatePatternAssignmentVariableContext", + severity: Severity.context, + problemMessage: r"""The first assigned variable pattern.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatePrefix = messageDuplicatePrefix; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageDuplicatePrefix = const MessageCode("DuplicatePrefix", - index: 73, - problemMessage: - r"""An import directive can only have one prefix ('as' clause).""", - correctionMessage: r"""Try removing all but one prefix."""); +const MessageCode messageDuplicatePrefix = const MessageCode( + "DuplicatePrefix", + index: 73, + problemMessage: + r"""An import directive can only have one prefix ('as' clause).""", + correctionMessage: r"""Try removing all but one prefix.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicateRecordPatternField = - const Template("DuplicateRecordPatternField", - problemMessageTemplate: - r"""The field '#name' is already matched in this pattern.""", - correctionMessageTemplate: r"""Try removing the duplicate field.""", - withArguments: _withArgumentsDuplicateRecordPatternField); + const Template( + "DuplicateRecordPatternField", + problemMessageTemplate: + r"""The field '#name' is already matched in this pattern.""", + correctionMessageTemplate: r"""Try removing the duplicate field.""", + withArguments: _withArgumentsDuplicateRecordPatternField, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicateRecordPatternField = - const Code("DuplicateRecordPatternField", - analyzerCodes: ["DUPLICATE_RECORD_PATTERN_FIELD"]); + const Code( + "DuplicateRecordPatternField", + analyzerCodes: ["DUPLICATE_RECORD_PATTERN_FIELD"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicateRecordPatternField(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicateRecordPatternField, - problemMessage: - """The field '${name}' is already matched in this pattern.""", - correctionMessage: """Try removing the duplicate field.""", - arguments: {'name': name}); + return new Message( + codeDuplicateRecordPatternField, + problemMessage: + """The field '${name}' is already matched in this pattern.""", + correctionMessage: """Try removing the duplicate field.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2728,9 +3233,10 @@ const Code codeDuplicateRecordPatternFieldContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDuplicateRecordPatternFieldContext = const MessageCode( - "DuplicateRecordPatternFieldContext", - severity: Severity.context, - problemMessage: r"""The first field."""); + "DuplicateRecordPatternFieldContext", + severity: Severity.context, + problemMessage: r"""The first field.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicateRestElementInPattern = @@ -2738,11 +3244,12 @@ const Code codeDuplicateRestElementInPattern = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDuplicateRestElementInPattern = const MessageCode( - "DuplicateRestElementInPattern", - analyzerCodes: ["DUPLICATE_REST_ELEMENT_IN_PATTERN"], - problemMessage: - r"""At most one rest element is allowed in a list or map pattern.""", - correctionMessage: r"""Try removing the duplicate rest element."""); + "DuplicateRestElementInPattern", + analyzerCodes: ["DUPLICATE_REST_ELEMENT_IN_PATTERN"], + problemMessage: + r"""At most one rest element is allowed in a list or map pattern.""", + correctionMessage: r"""Try removing the duplicate rest element.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicateRestElementInPatternContext = @@ -2750,85 +3257,109 @@ const Code codeDuplicateRestElementInPatternContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageDuplicateRestElementInPatternContext = - const MessageCode("DuplicateRestElementInPatternContext", - severity: Severity.context, - problemMessage: r"""The first rest element."""); + const MessageCode( + "DuplicateRestElementInPatternContext", + severity: Severity.context, + problemMessage: r"""The first rest element.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedDeclaration = - const Template("DuplicatedDeclaration", - problemMessageTemplate: - r"""'#name' is already declared in this scope.""", - withArguments: _withArgumentsDuplicatedDeclaration); + const Template( + "DuplicatedDeclaration", + problemMessageTemplate: r"""'#name' is already declared in this scope.""", + withArguments: _withArgumentsDuplicatedDeclaration, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedDeclaration = - const Code("DuplicatedDeclaration", - analyzerCodes: ["DUPLICATE_DEFINITION"]); + const Code( + "DuplicatedDeclaration", + analyzerCodes: ["DUPLICATE_DEFINITION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedDeclaration(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedDeclaration, - problemMessage: """'${name}' is already declared in this scope.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedDeclaration, + problemMessage: """'${name}' is already declared in this scope.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedDeclarationCause = - const Template("DuplicatedDeclarationCause", - problemMessageTemplate: r"""Previous declaration of '#name'.""", - withArguments: _withArgumentsDuplicatedDeclarationCause); + const Template( + "DuplicatedDeclarationCause", + problemMessageTemplate: r"""Previous declaration of '#name'.""", + withArguments: _withArgumentsDuplicatedDeclarationCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedDeclarationCause = - const Code("DuplicatedDeclarationCause", - severity: Severity.context); + const Code( + "DuplicatedDeclarationCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedDeclarationCause(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedDeclarationCause, - problemMessage: """Previous declaration of '${name}'.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedDeclarationCause, + problemMessage: """Previous declaration of '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateDuplicatedDeclarationSyntheticCause = const Template< - Message Function(String name)>("DuplicatedDeclarationSyntheticCause", - problemMessageTemplate: - r"""Previous declaration of '#name' is implied by this definition.""", - withArguments: _withArgumentsDuplicatedDeclarationSyntheticCause); +const Template + templateDuplicatedDeclarationSyntheticCause = + const Template( + "DuplicatedDeclarationSyntheticCause", + problemMessageTemplate: + r"""Previous declaration of '#name' is implied by this definition.""", + withArguments: _withArgumentsDuplicatedDeclarationSyntheticCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedDeclarationSyntheticCause = const Code( - "DuplicatedDeclarationSyntheticCause", - severity: Severity.context); + "DuplicatedDeclarationSyntheticCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedDeclarationSyntheticCause(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedDeclarationSyntheticCause, - problemMessage: - """Previous declaration of '${name}' is implied by this definition.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedDeclarationSyntheticCause, + problemMessage: + """Previous declaration of '${name}' is implied by this definition.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedDeclarationUse = - const Template("DuplicatedDeclarationUse", - problemMessageTemplate: - r"""Can't use '#name' because it is declared more than once.""", - withArguments: _withArgumentsDuplicatedDeclarationUse); + const Template( + "DuplicatedDeclarationUse", + problemMessageTemplate: + r"""Can't use '#name' because it is declared more than once.""", + withArguments: _withArgumentsDuplicatedDeclarationUse, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedDeclarationUse = @@ -2840,27 +3371,33 @@ const Code codeDuplicatedDeclarationUse = Message _withArgumentsDuplicatedDeclarationUse(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedDeclarationUse, - problemMessage: - """Can't use '${name}' because it is declared more than once.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedDeclarationUse, + problemMessage: + """Can't use '${name}' because it is declared more than once.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedExport = const Template( - "DuplicatedExport", - problemMessageTemplate: - r"""'#name' is exported from both '#uri' and '#uri2'.""", - withArguments: _withArgumentsDuplicatedExport); + "DuplicatedExport", + problemMessageTemplate: + r"""'#name' is exported from both '#uri' and '#uri2'.""", + withArguments: _withArgumentsDuplicatedExport, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedExport = const Code( - "DuplicatedExport", - analyzerCodes: ["AMBIGUOUS_EXPORT"]); + "DuplicatedExport", + analyzerCodes: ["AMBIGUOUS_EXPORT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedExport(String name, Uri uri_, Uri uri2_) { @@ -2868,20 +3405,27 @@ Message _withArgumentsDuplicatedExport(String name, Uri uri_, Uri uri2_) { name = demangleMixinApplicationName(name); String? uri = relativizeUri(uri_); String? uri2 = relativizeUri(uri2_); - return new Message(codeDuplicatedExport, - problemMessage: - """'${name}' is exported from both '${uri}' and '${uri2}'.""", - arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); + return new Message( + codeDuplicatedExport, + problemMessage: + """'${name}' is exported from both '${uri}' and '${uri2}'.""", + arguments: { + 'name': name, + 'uri': uri_, + 'uri2': uri2_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedExportInType = const Template( - "DuplicatedExportInType", - problemMessageTemplate: - r"""'#name' is exported from both '#uri' and '#uri2'.""", - withArguments: _withArgumentsDuplicatedExportInType); + "DuplicatedExportInType", + problemMessageTemplate: + r"""'#name' is exported from both '#uri' and '#uri2'.""", + withArguments: _withArgumentsDuplicatedExportInType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -2896,27 +3440,35 @@ Message _withArgumentsDuplicatedExportInType(String name, Uri uri_, Uri uri2_) { name = demangleMixinApplicationName(name); String? uri = relativizeUri(uri_); String? uri2 = relativizeUri(uri2_); - return new Message(codeDuplicatedExportInType, - problemMessage: - """'${name}' is exported from both '${uri}' and '${uri2}'.""", - arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); + return new Message( + codeDuplicatedExportInType, + problemMessage: + """'${name}' is exported from both '${uri}' and '${uri2}'.""", + arguments: { + 'name': name, + 'uri': uri_, + 'uri2': uri2_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedImportInType = const Template( - "DuplicatedImportInType", - problemMessageTemplate: - r"""'#name' is imported from both '#uri' and '#uri2'.""", - withArguments: _withArgumentsDuplicatedImportInType); + "DuplicatedImportInType", + problemMessageTemplate: + r"""'#name' is imported from both '#uri' and '#uri2'.""", + withArguments: _withArgumentsDuplicatedImportInType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedImportInType = const Code( - "DuplicatedImportInType", - analyzerCodes: ["AMBIGUOUS_IMPORT"]); + "DuplicatedImportInType", + analyzerCodes: ["AMBIGUOUS_IMPORT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedImportInType(String name, Uri uri_, Uri uri2_) { @@ -2924,108 +3476,144 @@ Message _withArgumentsDuplicatedImportInType(String name, Uri uri_, Uri uri2_) { name = demangleMixinApplicationName(name); String? uri = relativizeUri(uri_); String? uri2 = relativizeUri(uri2_); - return new Message(codeDuplicatedImportInType, - problemMessage: - """'${name}' is imported from both '${uri}' and '${uri2}'.""", - arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); + return new Message( + codeDuplicatedImportInType, + problemMessage: + """'${name}' is imported from both '${uri}' and '${uri2}'.""", + arguments: { + 'name': name, + 'uri': uri_, + 'uri2': uri2_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedModifier = - const Template("DuplicatedModifier", - problemMessageTemplate: - r"""The modifier '#lexeme' was already specified.""", - correctionMessageTemplate: - r"""Try removing all but one occurrence of the modifier.""", - withArguments: _withArgumentsDuplicatedModifier); + const Template( + "DuplicatedModifier", + problemMessageTemplate: r"""The modifier '#lexeme' was already specified.""", + correctionMessageTemplate: + r"""Try removing all but one occurrence of the modifier.""", + withArguments: _withArgumentsDuplicatedModifier, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedModifier = - const Code("DuplicatedModifier", index: 70); + const Code( + "DuplicatedModifier", + index: 70, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedModifier(Token token) { String lexeme = token.lexeme; - return new Message(codeDuplicatedModifier, - problemMessage: """The modifier '${lexeme}' was already specified.""", - correctionMessage: - """Try removing all but one occurrence of the modifier.""", - arguments: {'lexeme': token}); + return new Message( + codeDuplicatedModifier, + problemMessage: """The modifier '${lexeme}' was already specified.""", + correctionMessage: + """Try removing all but one occurrence of the modifier.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedNamedArgument = - const Template("DuplicatedNamedArgument", - problemMessageTemplate: r"""Duplicated named argument '#name'.""", - withArguments: _withArgumentsDuplicatedNamedArgument); + const Template( + "DuplicatedNamedArgument", + problemMessageTemplate: r"""Duplicated named argument '#name'.""", + withArguments: _withArgumentsDuplicatedNamedArgument, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedNamedArgument = - const Code("DuplicatedNamedArgument", - analyzerCodes: ["DUPLICATE_NAMED_ARGUMENT"]); + const Code( + "DuplicatedNamedArgument", + analyzerCodes: ["DUPLICATE_NAMED_ARGUMENT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedNamedArgument(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedNamedArgument, - problemMessage: """Duplicated named argument '${name}'.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedNamedArgument, + problemMessage: """Duplicated named argument '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedParameterName = - const Template("DuplicatedParameterName", - problemMessageTemplate: r"""Duplicated parameter name '#name'.""", - withArguments: _withArgumentsDuplicatedParameterName); + const Template( + "DuplicatedParameterName", + problemMessageTemplate: r"""Duplicated parameter name '#name'.""", + withArguments: _withArgumentsDuplicatedParameterName, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedParameterName = - const Code("DuplicatedParameterName", - analyzerCodes: ["DUPLICATE_DEFINITION"]); + const Code( + "DuplicatedParameterName", + analyzerCodes: ["DUPLICATE_DEFINITION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedParameterName(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedParameterName, - problemMessage: """Duplicated parameter name '${name}'.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedParameterName, + problemMessage: """Duplicated parameter name '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedParameterNameCause = const Template( - "DuplicatedParameterNameCause", - problemMessageTemplate: r"""Other parameter named '#name'.""", - withArguments: _withArgumentsDuplicatedParameterNameCause); + "DuplicatedParameterNameCause", + problemMessageTemplate: r"""Other parameter named '#name'.""", + withArguments: _withArgumentsDuplicatedParameterNameCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedParameterNameCause = - const Code("DuplicatedParameterNameCause", - severity: Severity.context); + const Code( + "DuplicatedParameterNameCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedParameterNameCause(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedParameterNameCause, - problemMessage: """Other parameter named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedParameterNameCause, + problemMessage: """Other parameter named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateDuplicatedRecordLiteralFieldName = const Template< - Message Function(String name)>("DuplicatedRecordLiteralFieldName", - problemMessageTemplate: - r"""Duplicated record literal field name '#name'.""", - correctionMessageTemplate: - r"""Try renaming or removing one of the named record literal fields.""", - withArguments: _withArgumentsDuplicatedRecordLiteralFieldName); +const Template + templateDuplicatedRecordLiteralFieldName = + const Template( + "DuplicatedRecordLiteralFieldName", + problemMessageTemplate: r"""Duplicated record literal field name '#name'.""", + correctionMessageTemplate: + r"""Try renaming or removing one of the named record literal fields.""", + withArguments: _withArgumentsDuplicatedRecordLiteralFieldName, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedRecordLiteralFieldName = @@ -3037,49 +3625,59 @@ const Code codeDuplicatedRecordLiteralFieldName = Message _withArgumentsDuplicatedRecordLiteralFieldName(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedRecordLiteralFieldName, - problemMessage: """Duplicated record literal field name '${name}'.""", - correctionMessage: - """Try renaming or removing one of the named record literal fields.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedRecordLiteralFieldName, + problemMessage: """Duplicated record literal field name '${name}'.""", + correctionMessage: + """Try renaming or removing one of the named record literal fields.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedRecordLiteralFieldNameContext = const Template( - "DuplicatedRecordLiteralFieldNameContext", - problemMessageTemplate: - r"""This is the existing record literal field named '#name'.""", - withArguments: _withArgumentsDuplicatedRecordLiteralFieldNameContext); + "DuplicatedRecordLiteralFieldNameContext", + problemMessageTemplate: + r"""This is the existing record literal field named '#name'.""", + withArguments: _withArgumentsDuplicatedRecordLiteralFieldNameContext, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedRecordLiteralFieldNameContext = const Code( - "DuplicatedRecordLiteralFieldNameContext", - severity: Severity.context); + "DuplicatedRecordLiteralFieldNameContext", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedRecordLiteralFieldNameContext(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedRecordLiteralFieldNameContext, - problemMessage: - """This is the existing record literal field named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedRecordLiteralFieldNameContext, + problemMessage: + """This is the existing record literal field named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateDuplicatedRecordTypeFieldName = const Template< - Message Function(String name)>("DuplicatedRecordTypeFieldName", - problemMessageTemplate: r"""Duplicated record type field name '#name'.""", - correctionMessageTemplate: - r"""Try renaming or removing one of the named record type fields.""", - withArguments: _withArgumentsDuplicatedRecordTypeFieldName); +const Template + templateDuplicatedRecordTypeFieldName = + const Template( + "DuplicatedRecordTypeFieldName", + problemMessageTemplate: r"""Duplicated record type field name '#name'.""", + correctionMessageTemplate: + r"""Try renaming or removing one of the named record type fields.""", + withArguments: _withArgumentsDuplicatedRecordTypeFieldName, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedRecordTypeFieldName = @@ -3091,57 +3689,70 @@ const Code codeDuplicatedRecordTypeFieldName = Message _withArgumentsDuplicatedRecordTypeFieldName(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedRecordTypeFieldName, - problemMessage: """Duplicated record type field name '${name}'.""", - correctionMessage: - """Try renaming or removing one of the named record type fields.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedRecordTypeFieldName, + problemMessage: """Duplicated record type field name '${name}'.""", + correctionMessage: + """Try renaming or removing one of the named record type fields.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateDuplicatedRecordTypeFieldNameContext = const Template( - "DuplicatedRecordTypeFieldNameContext", - problemMessageTemplate: - r"""This is the existing record type field named '#name'.""", - withArguments: _withArgumentsDuplicatedRecordTypeFieldNameContext); + "DuplicatedRecordTypeFieldNameContext", + problemMessageTemplate: + r"""This is the existing record type field named '#name'.""", + withArguments: _withArgumentsDuplicatedRecordTypeFieldNameContext, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeDuplicatedRecordTypeFieldNameContext = const Code( - "DuplicatedRecordTypeFieldNameContext", - severity: Severity.context); + "DuplicatedRecordTypeFieldNameContext", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDuplicatedRecordTypeFieldNameContext(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeDuplicatedRecordTypeFieldNameContext, - problemMessage: - """This is the existing record type field named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeDuplicatedRecordTypeFieldNameContext, + problemMessage: + """This is the existing record type field named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEmptyMapPattern = messageEmptyMapPattern; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageEmptyMapPattern = const MessageCode("EmptyMapPattern", - analyzerCodes: ["EMPTY_MAP_PATTERN"], - problemMessage: r"""A map pattern must have at least one entry.""", - correctionMessage: r"""Try replacing it with an object pattern 'Map()'."""); +const MessageCode messageEmptyMapPattern = const MessageCode( + "EmptyMapPattern", + analyzerCodes: ["EMPTY_MAP_PATTERN"], + problemMessage: r"""A map pattern must have at least one entry.""", + correctionMessage: r"""Try replacing it with an object pattern 'Map()'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEmptyNamedParameterList = messageEmptyNamedParameterList; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEmptyNamedParameterList = const MessageCode( - "EmptyNamedParameterList", - analyzerCodes: ["MISSING_IDENTIFIER"], - problemMessage: r"""Named parameter lists cannot be empty.""", - correctionMessage: r"""Try adding a named parameter to the list."""); + "EmptyNamedParameterList", + analyzerCodes: ["MISSING_IDENTIFIER"], + problemMessage: r"""Named parameter lists cannot be empty.""", + correctionMessage: r"""Try adding a named parameter to the list.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEmptyOptionalParameterList = @@ -3149,10 +3760,11 @@ const Code codeEmptyOptionalParameterList = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEmptyOptionalParameterList = const MessageCode( - "EmptyOptionalParameterList", - analyzerCodes: ["MISSING_IDENTIFIER"], - problemMessage: r"""Optional parameter lists cannot be empty.""", - correctionMessage: r"""Try adding an optional parameter to the list."""); + "EmptyOptionalParameterList", + analyzerCodes: ["MISSING_IDENTIFIER"], + problemMessage: r"""Optional parameter lists cannot be empty.""", + correctionMessage: r"""Try adding an optional parameter to the list.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEmptyRecordTypeNamedFieldsList = @@ -3160,50 +3772,60 @@ const Code codeEmptyRecordTypeNamedFieldsList = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEmptyRecordTypeNamedFieldsList = const MessageCode( - "EmptyRecordTypeNamedFieldsList", - index: 129, - problemMessage: - r"""The list of named fields in a record type can't be empty.""", - correctionMessage: r"""Try adding a named field to the list."""); + "EmptyRecordTypeNamedFieldsList", + index: 129, + problemMessage: + r"""The list of named fields in a record type can't be empty.""", + correctionMessage: r"""Try adding a named field to the list.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEncoding = messageEncoding; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageEncoding = const MessageCode("Encoding", - problemMessage: r"""Unable to decode bytes as UTF-8."""); +const MessageCode messageEncoding = const MessageCode( + "Encoding", + problemMessage: r"""Unable to decode bytes as UTF-8.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumAbstractMember = messageEnumAbstractMember; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumAbstractMember = const MessageCode( - "EnumAbstractMember", - problemMessage: r"""Enums can't declare abstract members."""); + "EnumAbstractMember", + problemMessage: r"""Enums can't declare abstract members.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateEnumConstantSameNameAsEnclosing = const Template< - Message Function(String name)>("EnumConstantSameNameAsEnclosing", - problemMessageTemplate: - r"""Name of enum constant '#name' can't be the same as the enum's own name.""", - withArguments: _withArgumentsEnumConstantSameNameAsEnclosing); +const Template + templateEnumConstantSameNameAsEnclosing = + const Template( + "EnumConstantSameNameAsEnclosing", + problemMessageTemplate: + r"""Name of enum constant '#name' can't be the same as the enum's own name.""", + withArguments: _withArgumentsEnumConstantSameNameAsEnclosing, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumConstantSameNameAsEnclosing = - const Code("EnumConstantSameNameAsEnclosing", - analyzerCodes: ["ENUM_CONSTANT_WITH_ENUM_NAME"]); + const Code( + "EnumConstantSameNameAsEnclosing", + analyzerCodes: ["ENUM_CONSTANT_WITH_ENUM_NAME"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsEnumConstantSameNameAsEnclosing(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeEnumConstantSameNameAsEnclosing, - problemMessage: - """Name of enum constant '${name}' can't be the same as the enum's own name.""", - arguments: {'name': name}); + return new Message( + codeEnumConstantSameNameAsEnclosing, + problemMessage: + """Name of enum constant '${name}' can't be the same as the enum's own name.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3212,25 +3834,28 @@ const Code codeEnumConstructorSuperInitializer = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumConstructorSuperInitializer = const MessageCode( - "EnumConstructorSuperInitializer", - problemMessage: r"""Enum constructors can't contain super-initializers."""); + "EnumConstructorSuperInitializer", + problemMessage: r"""Enum constructors can't contain super-initializers.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumConstructorTearoff = messageEnumConstructorTearoff; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumConstructorTearoff = const MessageCode( - "EnumConstructorTearoff", - problemMessage: r"""Enum constructors can't be torn off."""); + "EnumConstructorTearoff", + problemMessage: r"""Enum constructors can't be torn off.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateEnumContainsRestrictedInstanceDeclaration = const Template( - "EnumContainsRestrictedInstanceDeclaration", - problemMessageTemplate: - r"""An enum can't declare a non-abstract member named '#name'.""", - withArguments: _withArgumentsEnumContainsRestrictedInstanceDeclaration); + "EnumContainsRestrictedInstanceDeclaration", + problemMessageTemplate: + r"""An enum can't declare a non-abstract member named '#name'.""", + withArguments: _withArgumentsEnumContainsRestrictedInstanceDeclaration, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -3243,10 +3868,14 @@ const Code Message _withArgumentsEnumContainsRestrictedInstanceDeclaration(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeEnumContainsRestrictedInstanceDeclaration, - problemMessage: - """An enum can't declare a non-abstract member named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeEnumContainsRestrictedInstanceDeclaration, + problemMessage: + """An enum can't declare a non-abstract member named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3255,27 +3884,29 @@ const Code codeEnumContainsValuesDeclaration = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumContainsValuesDeclaration = const MessageCode( - "EnumContainsValuesDeclaration", - problemMessage: r"""An enum can't declare a member named 'values'."""); + "EnumContainsValuesDeclaration", + problemMessage: r"""An enum can't declare a member named 'values'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumDeclarationEmpty = messageEnumDeclarationEmpty; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumDeclarationEmpty = const MessageCode( - "EnumDeclarationEmpty", - analyzerCodes: ["EMPTY_ENUM_BODY"], - problemMessage: r"""An enum declaration can't be empty."""); + "EnumDeclarationEmpty", + analyzerCodes: ["EMPTY_ENUM_BODY"], + problemMessage: r"""An enum declaration can't be empty.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumDeclaresConstFactory = messageEnumDeclaresConstFactory; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumDeclaresConstFactory = const MessageCode( - "EnumDeclaresConstFactory", - problemMessage: r"""Enums can't declare const factory constructors.""", - correctionMessage: - r"""Try removing the factory constructor declaration."""); + "EnumDeclaresConstFactory", + problemMessage: r"""Enums can't declare const factory constructors.""", + correctionMessage: r"""Try removing the factory constructor declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumFactoryRedirectsToConstructor = @@ -3283,19 +3914,21 @@ const Code codeEnumFactoryRedirectsToConstructor = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumFactoryRedirectsToConstructor = const MessageCode( - "EnumFactoryRedirectsToConstructor", - problemMessage: - r"""Enum factory constructors can't redirect to generative constructors."""); + "EnumFactoryRedirectsToConstructor", + problemMessage: + r"""Enum factory constructors can't redirect to generative constructors.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateEnumImplementerContainsRestrictedInstanceDeclaration = const Template( - "EnumImplementerContainsRestrictedInstanceDeclaration", - problemMessageTemplate: - r"""'#name' has 'Enum' as a superinterface and can't contain non-static members with name '#name2'.""", - withArguments: - _withArgumentsEnumImplementerContainsRestrictedInstanceDeclaration); + "EnumImplementerContainsRestrictedInstanceDeclaration", + problemMessageTemplate: + r"""'#name' has 'Enum' as a superinterface and can't contain non-static members with name '#name2'.""", + withArguments: + _withArgumentsEnumImplementerContainsRestrictedInstanceDeclaration, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -3311,20 +3944,26 @@ Message _withArgumentsEnumImplementerContainsRestrictedInstanceDeclaration( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeEnumImplementerContainsRestrictedInstanceDeclaration, - problemMessage: - """'${name}' has 'Enum' as a superinterface and can't contain non-static members with name '${name2}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeEnumImplementerContainsRestrictedInstanceDeclaration, + problemMessage: + """'${name}' has 'Enum' as a superinterface and can't contain non-static members with name '${name2}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateEnumImplementerContainsValuesDeclaration = const Template( - "EnumImplementerContainsValuesDeclaration", - problemMessageTemplate: - r"""'#name' has 'Enum' as a superinterface and can't contain non-static member with name 'values'.""", - withArguments: _withArgumentsEnumImplementerContainsValuesDeclaration); + "EnumImplementerContainsValuesDeclaration", + problemMessageTemplate: + r"""'#name' has 'Enum' as a superinterface and can't contain non-static member with name 'values'.""", + withArguments: _withArgumentsEnumImplementerContainsValuesDeclaration, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -3337,27 +3976,34 @@ const Code Message _withArgumentsEnumImplementerContainsValuesDeclaration(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeEnumImplementerContainsValuesDeclaration, - problemMessage: - """'${name}' has 'Enum' as a superinterface and can't contain non-static member with name 'values'.""", - arguments: {'name': name}); + return new Message( + codeEnumImplementerContainsValuesDeclaration, + problemMessage: + """'${name}' has 'Enum' as a superinterface and can't contain non-static member with name 'values'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumInClass = messageEnumInClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageEnumInClass = const MessageCode("EnumInClass", - index: 74, - problemMessage: r"""Enums can't be declared inside classes.""", - correctionMessage: r"""Try moving the enum to the top-level."""); +const MessageCode messageEnumInClass = const MessageCode( + "EnumInClass", + index: 74, + problemMessage: r"""Enums can't be declared inside classes.""", + correctionMessage: r"""Try moving the enum to the top-level.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateEnumInheritsRestricted = - const Template("EnumInheritsRestricted", - problemMessageTemplate: - r"""An enum can't inherit a member named '#name'.""", - withArguments: _withArgumentsEnumInheritsRestricted); + const Template( + "EnumInheritsRestricted", + problemMessageTemplate: r"""An enum can't inherit a member named '#name'.""", + withArguments: _withArgumentsEnumInheritsRestricted, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumInheritsRestricted = @@ -3369,9 +4015,13 @@ const Code codeEnumInheritsRestricted = Message _withArgumentsEnumInheritsRestricted(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeEnumInheritsRestricted, - problemMessage: """An enum can't inherit a member named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeEnumInheritsRestricted, + problemMessage: """An enum can't inherit a member named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3380,36 +4030,40 @@ const Code codeEnumInheritsRestrictedMember = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumInheritsRestrictedMember = const MessageCode( - "EnumInheritsRestrictedMember", - severity: Severity.context, - problemMessage: r"""This is the inherited member"""); + "EnumInheritsRestrictedMember", + severity: Severity.context, + problemMessage: r"""This is the inherited member""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumInstantiation = messageEnumInstantiation; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumInstantiation = const MessageCode( - "EnumInstantiation", - analyzerCodes: ["INSTANTIATE_ENUM"], - problemMessage: r"""Enums can't be instantiated."""); + "EnumInstantiation", + analyzerCodes: ["INSTANTIATE_ENUM"], + problemMessage: r"""Enums can't be instantiated.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumNonConstConstructor = messageEnumNonConstConstructor; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumNonConstConstructor = const MessageCode( - "EnumNonConstConstructor", - problemMessage: - r"""Generative enum constructors must be marked as 'const'."""); + "EnumNonConstConstructor", + problemMessage: + r"""Generative enum constructors must be marked as 'const'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateEnumSupertypeOfNonAbstractClass = const Template( - "EnumSupertypeOfNonAbstractClass", - problemMessageTemplate: - r"""Non-abstract class '#name' has 'Enum' as a superinterface.""", - withArguments: _withArgumentsEnumSupertypeOfNonAbstractClass); + "EnumSupertypeOfNonAbstractClass", + problemMessageTemplate: + r"""Non-abstract class '#name' has 'Enum' as a superinterface.""", + withArguments: _withArgumentsEnumSupertypeOfNonAbstractClass, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEnumSupertypeOfNonAbstractClass = @@ -3421,10 +4075,14 @@ const Code codeEnumSupertypeOfNonAbstractClass = Message _withArgumentsEnumSupertypeOfNonAbstractClass(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeEnumSupertypeOfNonAbstractClass, - problemMessage: - """Non-abstract class '${name}' has 'Enum' as a superinterface.""", - arguments: {'name': name}); + return new Message( + codeEnumSupertypeOfNonAbstractClass, + problemMessage: + """Non-abstract class '${name}' has 'Enum' as a superinterface.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3432,20 +4090,22 @@ const Code codeEnumWithNameValues = messageEnumWithNameValues; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEnumWithNameValues = const MessageCode( - "EnumWithNameValues", - analyzerCodes: ["ENUM_WITH_NAME_VALUES"], - problemMessage: - r"""The name 'values' is not a valid name for an enum. Try using a different name."""); + "EnumWithNameValues", + analyzerCodes: ["ENUM_WITH_NAME_VALUES"], + problemMessage: + r"""The name 'values' is not a valid name for an enum. Try using a different name.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEqualKeysInMapPattern = messageEqualKeysInMapPattern; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEqualKeysInMapPattern = const MessageCode( - "EqualKeysInMapPattern", - analyzerCodes: ["EQUAL_KEYS_IN_MAP_PATTERN"], - problemMessage: r"""Two keys in a map pattern can't be equal.""", - correctionMessage: r"""Change or remove the duplicate key."""); + "EqualKeysInMapPattern", + analyzerCodes: ["EQUAL_KEYS_IN_MAP_PATTERN"], + problemMessage: r"""Two keys in a map pattern can't be equal.""", + correctionMessage: r"""Change or remove the duplicate key.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEqualKeysInMapPatternContext = @@ -3453,9 +4113,10 @@ const Code codeEqualKeysInMapPatternContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEqualKeysInMapPatternContext = const MessageCode( - "EqualKeysInMapPatternContext", - severity: Severity.context, - problemMessage: r"""This is the previous use of the same key."""); + "EqualKeysInMapPatternContext", + severity: Severity.context, + problemMessage: r"""This is the previous use of the same key.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeEqualityCannotBeEqualityOperand = @@ -3463,20 +4124,22 @@ const Code codeEqualityCannotBeEqualityOperand = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageEqualityCannotBeEqualityOperand = const MessageCode( - "EqualityCannotBeEqualityOperand", - index: 1, - problemMessage: - r"""A comparison expression can't be an operand of another comparison expression.""", - correctionMessage: - r"""Try putting parentheses around one of the comparisons."""); + "EqualityCannotBeEqualityOperand", + index: 1, + problemMessage: + r"""A comparison expression can't be an operand of another comparison expression.""", + correctionMessage: + r"""Try putting parentheses around one of the comparisons.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExceptionReadingFile = const Template( - "ExceptionReadingFile", - problemMessageTemplate: r"""Exception when reading '#uri': #string""", - withArguments: _withArgumentsExceptionReadingFile); + "ExceptionReadingFile", + problemMessageTemplate: r"""Exception when reading '#uri': #string""", + withArguments: _withArgumentsExceptionReadingFile, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExceptionReadingFile = @@ -3488,28 +4151,41 @@ const Code codeExceptionReadingFile = Message _withArgumentsExceptionReadingFile(Uri uri_, String string) { String? uri = relativizeUri(uri_); if (string.isEmpty) throw 'No string provided'; - return new Message(codeExceptionReadingFile, - problemMessage: """Exception when reading '${uri}': ${string}""", - arguments: {'uri': uri_, 'string': string}); + return new Message( + codeExceptionReadingFile, + problemMessage: """Exception when reading '${uri}': ${string}""", + arguments: { + 'uri': uri_, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedAfterButGot = - const Template("ExpectedAfterButGot", - problemMessageTemplate: r"""Expected '#string' after this.""", - withArguments: _withArgumentsExpectedAfterButGot); + const Template( + "ExpectedAfterButGot", + problemMessageTemplate: r"""Expected '#string' after this.""", + withArguments: _withArgumentsExpectedAfterButGot, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedAfterButGot = - const Code("ExpectedAfterButGot", - analyzerCodes: ["EXPECTED_TOKEN"]); + const Code( + "ExpectedAfterButGot", + analyzerCodes: ["EXPECTED_TOKEN"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedAfterButGot(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeExpectedAfterButGot, - problemMessage: """Expected '${string}' after this.""", - arguments: {'string': string}); + return new Message( + codeExpectedAfterButGot, + problemMessage: """Expected '${string}' after this.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3517,55 +4193,69 @@ const Code codeExpectedAnInitializer = messageExpectedAnInitializer; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedAnInitializer = const MessageCode( - "ExpectedAnInitializer", - index: 36, - problemMessage: r"""Expected an initializer."""); + "ExpectedAnInitializer", + index: 36, + problemMessage: r"""Expected an initializer.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedBlock = messageExpectedBlock; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExpectedBlock = const MessageCode("ExpectedBlock", - analyzerCodes: ["EXPECTED_TOKEN"], - problemMessage: r"""Expected a block.""", - correctionMessage: r"""Try adding {}."""); +const MessageCode messageExpectedBlock = const MessageCode( + "ExpectedBlock", + analyzerCodes: ["EXPECTED_TOKEN"], + problemMessage: r"""Expected a block.""", + correctionMessage: r"""Try adding {}.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedBlockToSkip = messageExpectedBlockToSkip; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedBlockToSkip = const MessageCode( - "ExpectedBlockToSkip", - analyzerCodes: ["MISSING_FUNCTION_BODY"], - problemMessage: r"""Expected a function body or '=>'.""", - correctionMessage: r"""Try adding {}."""); + "ExpectedBlockToSkip", + analyzerCodes: ["MISSING_FUNCTION_BODY"], + problemMessage: r"""Expected a function body or '=>'.""", + correctionMessage: r"""Try adding {}.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedBody = messageExpectedBody; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExpectedBody = const MessageCode("ExpectedBody", - analyzerCodes: ["MISSING_FUNCTION_BODY"], - problemMessage: r"""Expected a function body or '=>'.""", - correctionMessage: r"""Try adding {}."""); +const MessageCode messageExpectedBody = const MessageCode( + "ExpectedBody", + analyzerCodes: ["MISSING_FUNCTION_BODY"], + problemMessage: r"""Expected a function body or '=>'.""", + correctionMessage: r"""Try adding {}.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedButGot = - const Template("ExpectedButGot", - problemMessageTemplate: r"""Expected '#string' before this.""", - withArguments: _withArgumentsExpectedButGot); + const Template( + "ExpectedButGot", + problemMessageTemplate: r"""Expected '#string' before this.""", + withArguments: _withArgumentsExpectedButGot, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedButGot = - const Code("ExpectedButGot", - analyzerCodes: ["EXPECTED_TOKEN"]); + const Code( + "ExpectedButGot", + analyzerCodes: ["EXPECTED_TOKEN"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedButGot(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeExpectedButGot, - problemMessage: """Expected '${string}' before this.""", - arguments: {'string': string}); + return new Message( + codeExpectedButGot, + problemMessage: """Expected '${string}' before this.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3573,61 +4263,76 @@ const Code codeExpectedCatchClauseBody = messageExpectedCatchClauseBody; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedCatchClauseBody = const MessageCode( - "ExpectedCatchClauseBody", - index: 169, - problemMessage: - r"""A catch clause must have a body, even if it is empty.""", - correctionMessage: r"""Try adding an empty body."""); + "ExpectedCatchClauseBody", + index: 169, + problemMessage: r"""A catch clause must have a body, even if it is empty.""", + correctionMessage: r"""Try adding an empty body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedClassBody = messageExpectedClassBody; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedClassBody = const MessageCode( - "ExpectedClassBody", - index: 8, - problemMessage: - r"""A class declaration must have a body, even if it is empty.""", - correctionMessage: r"""Try adding an empty body."""); + "ExpectedClassBody", + index: 8, + problemMessage: + r"""A class declaration must have a body, even if it is empty.""", + correctionMessage: r"""Try adding an empty body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedClassMember = - const Template("ExpectedClassMember", - problemMessageTemplate: - r"""Expected a class member, but got '#lexeme'.""", - withArguments: _withArgumentsExpectedClassMember); + const Template( + "ExpectedClassMember", + problemMessageTemplate: r"""Expected a class member, but got '#lexeme'.""", + withArguments: _withArgumentsExpectedClassMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedClassMember = - const Code("ExpectedClassMember", - analyzerCodes: ["EXPECTED_CLASS_MEMBER"]); + const Code( + "ExpectedClassMember", + analyzerCodes: ["EXPECTED_CLASS_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedClassMember(Token token) { String lexeme = token.lexeme; - return new Message(codeExpectedClassMember, - problemMessage: """Expected a class member, but got '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExpectedClassMember, + problemMessage: """Expected a class member, but got '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedDeclaration = - const Template("ExpectedDeclaration", - problemMessageTemplate: - r"""Expected a declaration, but got '#lexeme'.""", - withArguments: _withArgumentsExpectedDeclaration); + const Template( + "ExpectedDeclaration", + problemMessageTemplate: r"""Expected a declaration, but got '#lexeme'.""", + withArguments: _withArgumentsExpectedDeclaration, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedDeclaration = - const Code("ExpectedDeclaration", - analyzerCodes: ["EXPECTED_EXECUTABLE"]); + const Code( + "ExpectedDeclaration", + analyzerCodes: ["EXPECTED_EXECUTABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedDeclaration(Token token) { String lexeme = token.lexeme; - return new Message(codeExpectedDeclaration, - problemMessage: """Expected a declaration, but got '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExpectedDeclaration, + problemMessage: """Expected a declaration, but got '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3635,32 +4340,40 @@ const Code codeExpectedElseOrComma = messageExpectedElseOrComma; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedElseOrComma = const MessageCode( - "ExpectedElseOrComma", - index: 46, - problemMessage: r"""Expected 'else' or comma."""); + "ExpectedElseOrComma", + index: 46, + problemMessage: r"""Expected 'else' or comma.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(Token token)> templateExpectedEnumBody = const Template< - Message Function(Token token)>("ExpectedEnumBody", - problemMessageTemplate: r"""Expected a enum body, but got '#lexeme'.""", - correctionMessageTemplate: - r"""An enum definition must have a body with at least one constant name.""", - withArguments: _withArgumentsExpectedEnumBody); +const Template templateExpectedEnumBody = + const Template( + "ExpectedEnumBody", + problemMessageTemplate: r"""Expected a enum body, but got '#lexeme'.""", + correctionMessageTemplate: + r"""An enum definition must have a body with at least one constant name.""", + withArguments: _withArgumentsExpectedEnumBody, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedEnumBody = - const Code("ExpectedEnumBody", - analyzerCodes: ["MISSING_ENUM_BODY"]); + const Code( + "ExpectedEnumBody", + analyzerCodes: ["MISSING_ENUM_BODY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedEnumBody(Token token) { String lexeme = token.lexeme; - return new Message(codeExpectedEnumBody, - problemMessage: """Expected a enum body, but got '${lexeme}'.""", - correctionMessage: - """An enum definition must have a body with at least one constant name.""", - arguments: {'lexeme': token}); + return new Message( + codeExpectedEnumBody, + problemMessage: """Expected a enum body, but got '${lexeme}'.""", + correctionMessage: + """An enum definition must have a body with at least one constant name.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3668,11 +4381,12 @@ const Code codeExpectedExtensionBody = messageExpectedExtensionBody; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedExtensionBody = const MessageCode( - "ExpectedExtensionBody", - index: 173, - problemMessage: - r"""An extension declaration must have a body, even if it is empty.""", - correctionMessage: r"""Try adding an empty body."""); + "ExpectedExtensionBody", + index: 173, + problemMessage: + r"""An extension declaration must have a body, even if it is empty.""", + correctionMessage: r"""Try adding an empty body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedExtensionTypeBody = @@ -3680,11 +4394,12 @@ const Code codeExpectedExtensionTypeBody = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedExtensionTypeBody = const MessageCode( - "ExpectedExtensionTypeBody", - index: 167, - problemMessage: - r"""An extension type declaration must have a body, even if it is empty.""", - correctionMessage: r"""Try adding an empty body."""); + "ExpectedExtensionTypeBody", + index: 167, + problemMessage: + r"""An extension type declaration must have a body, even if it is empty.""", + correctionMessage: r"""Try adding an empty body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedFinallyClauseBody = @@ -3692,30 +4407,38 @@ const Code codeExpectedFinallyClauseBody = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedFinallyClauseBody = const MessageCode( - "ExpectedFinallyClauseBody", - index: 170, - problemMessage: - r"""A finally clause must have a body, even if it is empty.""", - correctionMessage: r"""Try adding an empty body."""); + "ExpectedFinallyClauseBody", + index: 170, + problemMessage: + r"""A finally clause must have a body, even if it is empty.""", + correctionMessage: r"""Try adding an empty body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedFunctionBody = - const Template("ExpectedFunctionBody", - problemMessageTemplate: - r"""Expected a function body, but got '#lexeme'.""", - withArguments: _withArgumentsExpectedFunctionBody); + const Template( + "ExpectedFunctionBody", + problemMessageTemplate: r"""Expected a function body, but got '#lexeme'.""", + withArguments: _withArgumentsExpectedFunctionBody, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedFunctionBody = - const Code("ExpectedFunctionBody", - analyzerCodes: ["MISSING_FUNCTION_BODY"]); + const Code( + "ExpectedFunctionBody", + analyzerCodes: ["MISSING_FUNCTION_BODY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedFunctionBody(Token token) { String lexeme = token.lexeme; - return new Message(codeExpectedFunctionBody, - problemMessage: """Expected a function body, but got '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExpectedFunctionBody, + problemMessage: """Expected a function body, but got '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3723,76 +4446,100 @@ const Code codeExpectedHexDigit = messageExpectedHexDigit; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedHexDigit = const MessageCode( - "ExpectedHexDigit", - analyzerCodes: ["MISSING_HEX_DIGIT"], - problemMessage: r"""A hex digit (0-9 or A-F) must follow '0x'."""); + "ExpectedHexDigit", + analyzerCodes: ["MISSING_HEX_DIGIT"], + problemMessage: r"""A hex digit (0-9 or A-F) must follow '0x'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedIdentifier = - const Template("ExpectedIdentifier", - problemMessageTemplate: - r"""Expected an identifier, but got '#lexeme'.""", - correctionMessageTemplate: - r"""Try inserting an identifier before '#lexeme'.""", - withArguments: _withArgumentsExpectedIdentifier); + const Template( + "ExpectedIdentifier", + problemMessageTemplate: r"""Expected an identifier, but got '#lexeme'.""", + correctionMessageTemplate: + r"""Try inserting an identifier before '#lexeme'.""", + withArguments: _withArgumentsExpectedIdentifier, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedIdentifier = - const Code("ExpectedIdentifier", - analyzerCodes: ["MISSING_IDENTIFIER"]); + const Code( + "ExpectedIdentifier", + analyzerCodes: ["MISSING_IDENTIFIER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedIdentifier(Token token) { String lexeme = token.lexeme; - return new Message(codeExpectedIdentifier, - problemMessage: """Expected an identifier, but got '${lexeme}'.""", - correctionMessage: """Try inserting an identifier before '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExpectedIdentifier, + problemMessage: """Expected an identifier, but got '${lexeme}'.""", + correctionMessage: """Try inserting an identifier before '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Token - token)> templateExpectedIdentifierButGotKeyword = const Template< - Message Function(Token token)>("ExpectedIdentifierButGotKeyword", - problemMessageTemplate: - r"""'#lexeme' can't be used as an identifier because it's a keyword.""", - correctionMessageTemplate: - r"""Try renaming this to be an identifier that isn't a keyword.""", - withArguments: _withArgumentsExpectedIdentifierButGotKeyword); +const Template + templateExpectedIdentifierButGotKeyword = + const Template( + "ExpectedIdentifierButGotKeyword", + problemMessageTemplate: + r"""'#lexeme' can't be used as an identifier because it's a keyword.""", + correctionMessageTemplate: + r"""Try renaming this to be an identifier that isn't a keyword.""", + withArguments: _withArgumentsExpectedIdentifierButGotKeyword, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedIdentifierButGotKeyword = - const Code("ExpectedIdentifierButGotKeyword", - index: 113); + const Code( + "ExpectedIdentifierButGotKeyword", + index: 113, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedIdentifierButGotKeyword(Token token) { String lexeme = token.lexeme; - return new Message(codeExpectedIdentifierButGotKeyword, - problemMessage: - """'${lexeme}' can't be used as an identifier because it's a keyword.""", - correctionMessage: """Try renaming this to be an identifier that isn't a keyword.""", - arguments: {'lexeme': token}); + return new Message( + codeExpectedIdentifierButGotKeyword, + problemMessage: + """'${lexeme}' can't be used as an identifier because it's a keyword.""", + correctionMessage: + """Try renaming this to be an identifier that isn't a keyword.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedInstead = - const Template("ExpectedInstead", - problemMessageTemplate: r"""Expected '#string' instead of this.""", - withArguments: _withArgumentsExpectedInstead); + const Template( + "ExpectedInstead", + problemMessageTemplate: r"""Expected '#string' instead of this.""", + withArguments: _withArgumentsExpectedInstead, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedInstead = - const Code("ExpectedInstead", index: 41); + const Code( + "ExpectedInstead", + index: 41, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedInstead(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeExpectedInstead, - problemMessage: """Expected '${string}' instead of this.""", - arguments: {'string': string}); + return new Message( + codeExpectedInstead, + problemMessage: """Expected '${string}' instead of this.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3800,37 +4547,40 @@ const Code codeExpectedMixinBody = messageExpectedMixinBody; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedMixinBody = const MessageCode( - "ExpectedMixinBody", - index: 166, - problemMessage: - r"""A mixin declaration must have a body, even if it is empty.""", - correctionMessage: r"""Try adding an empty body."""); + "ExpectedMixinBody", + index: 166, + problemMessage: + r"""A mixin declaration must have a body, even if it is empty.""", + correctionMessage: r"""Try adding an empty body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedNamedArgument = messageExpectedNamedArgument; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedNamedArgument = const MessageCode( - "ExpectedNamedArgument", - analyzerCodes: ["EXTRA_POSITIONAL_ARGUMENTS"], - problemMessage: r"""Expected named argument."""); + "ExpectedNamedArgument", + analyzerCodes: ["EXTRA_POSITIONAL_ARGUMENTS"], + problemMessage: r"""Expected named argument.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedOneExpression = messageExpectedOneExpression; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedOneExpression = const MessageCode( - "ExpectedOneExpression", - problemMessage: - r"""Expected one expression, but found additional input."""); + "ExpectedOneExpression", + problemMessage: r"""Expected one expression, but found additional input.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedOpenParens = messageExpectedOpenParens; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedOpenParens = const MessageCode( - "ExpectedOpenParens", - problemMessage: r"""Expected '('."""); + "ExpectedOpenParens", + problemMessage: r"""Expected '('.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedRepresentationField = @@ -3838,9 +4588,10 @@ const Code codeExpectedRepresentationField = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedRepresentationField = const MessageCode( - "ExpectedRepresentationField", - analyzerCodes: ["EXPECTED_REPRESENTATION_FIELD"], - problemMessage: r"""Expected a representation field."""); + "ExpectedRepresentationField", + analyzerCodes: ["EXPECTED_REPRESENTATION_FIELD"], + problemMessage: r"""Expected a representation field.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedRepresentationType = @@ -3848,36 +4599,46 @@ const Code codeExpectedRepresentationType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedRepresentationType = const MessageCode( - "ExpectedRepresentationType", - analyzerCodes: ["EXPECTED_REPRESENTATION_TYPE"], - problemMessage: r"""Expected a representation type."""); + "ExpectedRepresentationType", + analyzerCodes: ["EXPECTED_REPRESENTATION_TYPE"], + problemMessage: r"""Expected a representation type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedStatement = messageExpectedStatement; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedStatement = const MessageCode( - "ExpectedStatement", - index: 29, - problemMessage: r"""Expected a statement."""); + "ExpectedStatement", + index: 29, + problemMessage: r"""Expected a statement.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedString = - const Template("ExpectedString", - problemMessageTemplate: r"""Expected a String, but got '#lexeme'.""", - withArguments: _withArgumentsExpectedString); + const Template( + "ExpectedString", + problemMessageTemplate: r"""Expected a String, but got '#lexeme'.""", + withArguments: _withArgumentsExpectedString, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedString = - const Code("ExpectedString", - analyzerCodes: ["EXPECTED_STRING_LITERAL"]); + const Code( + "ExpectedString", + analyzerCodes: ["EXPECTED_STRING_LITERAL"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedString(Token token) { String lexeme = token.lexeme; - return new Message(codeExpectedString, - problemMessage: """Expected a String, but got '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExpectedString, + problemMessage: """Expected a String, but got '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3886,11 +4647,12 @@ const Code codeExpectedSwitchExpressionBody = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedSwitchExpressionBody = const MessageCode( - "ExpectedSwitchExpressionBody", - index: 171, - problemMessage: - r"""A switch expression must have a body, even if it is empty.""", - correctionMessage: r"""Try adding an empty body."""); + "ExpectedSwitchExpressionBody", + index: 171, + problemMessage: + r"""A switch expression must have a body, even if it is empty.""", + correctionMessage: r"""Try adding an empty body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedSwitchStatementBody = @@ -3898,29 +4660,38 @@ const Code codeExpectedSwitchStatementBody = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedSwitchStatementBody = const MessageCode( - "ExpectedSwitchStatementBody", - index: 172, - problemMessage: - r"""A switch statement must have a body, even if it is empty.""", - correctionMessage: r"""Try adding an empty body."""); + "ExpectedSwitchStatementBody", + index: 172, + problemMessage: + r"""A switch statement must have a body, even if it is empty.""", + correctionMessage: r"""Try adding an empty body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedToken = - const Template("ExpectedToken", - problemMessageTemplate: r"""Expected to find '#string'.""", - withArguments: _withArgumentsExpectedToken); + const Template( + "ExpectedToken", + problemMessageTemplate: r"""Expected to find '#string'.""", + withArguments: _withArgumentsExpectedToken, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedToken = - const Code("ExpectedToken", - analyzerCodes: ["EXPECTED_TOKEN"]); + const Code( + "ExpectedToken", + analyzerCodes: ["EXPECTED_TOKEN"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedToken(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeExpectedToken, - problemMessage: """Expected to find '${string}'.""", - arguments: {'string': string}); + return new Message( + codeExpectedToken, + problemMessage: """Expected to find '${string}'.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3928,191 +4699,228 @@ const Code codeExpectedTryStatementBody = messageExpectedTryStatementBody; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpectedTryStatementBody = const MessageCode( - "ExpectedTryStatementBody", - index: 168, - problemMessage: - r"""A try statement must have a body, even if it is empty.""", - correctionMessage: r"""Try adding an empty body."""); + "ExpectedTryStatementBody", + index: 168, + problemMessage: r"""A try statement must have a body, even if it is empty.""", + correctionMessage: r"""Try adding an empty body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExpectedType = - const Template("ExpectedType", - problemMessageTemplate: r"""Expected a type, but got '#lexeme'.""", - withArguments: _withArgumentsExpectedType); + const Template( + "ExpectedType", + problemMessageTemplate: r"""Expected a type, but got '#lexeme'.""", + withArguments: _withArgumentsExpectedType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedType = - const Code("ExpectedType", - analyzerCodes: ["EXPECTED_TYPE_NAME"]); + const Code( + "ExpectedType", + analyzerCodes: ["EXPECTED_TYPE_NAME"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExpectedType(Token token) { String lexeme = token.lexeme; - return new Message(codeExpectedType, - problemMessage: """Expected a type, but got '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExpectedType, + problemMessage: """Expected a type, but got '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpectedUri = messageExpectedUri; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExpectedUri = - const MessageCode("ExpectedUri", problemMessage: r"""Expected a URI."""); +const MessageCode messageExpectedUri = const MessageCode( + "ExpectedUri", + problemMessage: r"""Expected a URI.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - string)> templateExperimentDisabled = const Template< - Message Function(String string)>("ExperimentDisabled", - problemMessageTemplate: - r"""This requires the '#string' language feature to be enabled.""", - correctionMessageTemplate: - r"""The feature is on by default but is currently disabled, maybe because the '--enable-experiment=no-#string' command line option is passed.""", - withArguments: _withArgumentsExperimentDisabled); +const Template templateExperimentDisabled = + const Template( + "ExperimentDisabled", + problemMessageTemplate: + r"""This requires the '#string' language feature to be enabled.""", + correctionMessageTemplate: + r"""The feature is on by default but is currently disabled, maybe because the '--enable-experiment=no-#string' command line option is passed.""", + withArguments: _withArgumentsExperimentDisabled, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExperimentDisabled = - const Code("ExperimentDisabled", - analyzerCodes: ["ParserErrorCode.EXPERIMENT_NOT_ENABLED"]); + const Code( + "ExperimentDisabled", + analyzerCodes: ["ParserErrorCode.EXPERIMENT_NOT_ENABLED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExperimentDisabled(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeExperimentDisabled, - problemMessage: - """This requires the '${string}' language feature to be enabled.""", - correctionMessage: - """The feature is on by default but is currently disabled, maybe because the '--enable-experiment=no-${string}' command line option is passed.""", - arguments: {'string': string}); + return new Message( + codeExperimentDisabled, + problemMessage: + """This requires the '${string}' language feature to be enabled.""", + correctionMessage: + """The feature is on by default but is currently disabled, maybe because the '--enable-experiment=no-${string}' command line option is passed.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExperimentDisabledInvalidLanguageVersion = const Template( - "ExperimentDisabledInvalidLanguageVersion", - problemMessageTemplate: - r"""This requires the '#string' language feature, which requires language version of #string2 or higher.""", - withArguments: _withArgumentsExperimentDisabledInvalidLanguageVersion); + "ExperimentDisabledInvalidLanguageVersion", + problemMessageTemplate: + r"""This requires the '#string' language feature, which requires language version of #string2 or higher.""", + withArguments: _withArgumentsExperimentDisabledInvalidLanguageVersion, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExperimentDisabledInvalidLanguageVersion = const Code( - "ExperimentDisabledInvalidLanguageVersion", - analyzerCodes: ["ParserErrorCode.EXPERIMENT_NOT_ENABLED"]); + "ExperimentDisabledInvalidLanguageVersion", + analyzerCodes: ["ParserErrorCode.EXPERIMENT_NOT_ENABLED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExperimentDisabledInvalidLanguageVersion( String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeExperimentDisabledInvalidLanguageVersion, - problemMessage: - """This requires the '${string}' language feature, which requires language version of ${string2} or higher.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeExperimentDisabledInvalidLanguageVersion, + problemMessage: + """This requires the '${string}' language feature, which requires language version of ${string2} or higher.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateExperimentNotEnabled = const Template< - Message Function(String string, String string2)>("ExperimentNotEnabled", - problemMessageTemplate: - r"""This requires the '#string' language feature to be enabled.""", - correctionMessageTemplate: - r"""Try updating your pubspec.yaml to set the minimum SDK constraint to #string2 or higher, and running 'pub get'.""", - withArguments: _withArgumentsExperimentNotEnabled); +const Template + templateExperimentNotEnabled = + const Template( + "ExperimentNotEnabled", + problemMessageTemplate: + r"""This requires the '#string' language feature to be enabled.""", + correctionMessageTemplate: + r"""Try updating your pubspec.yaml to set the minimum SDK constraint to #string2 or higher, and running 'pub get'.""", + withArguments: _withArgumentsExperimentNotEnabled, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExperimentNotEnabled = const Code( - "ExperimentNotEnabled", - index: 48); + "ExperimentNotEnabled", + index: 48, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExperimentNotEnabled(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeExperimentNotEnabled, - problemMessage: - """This requires the '${string}' language feature to be enabled.""", - correctionMessage: - """Try updating your pubspec.yaml to set the minimum SDK constraint to ${string2} or higher, and running 'pub get'.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeExperimentNotEnabled, + problemMessage: + """This requires the '${string}' language feature to be enabled.""", + correctionMessage: + """Try updating your pubspec.yaml to set the minimum SDK constraint to ${string2} or higher, and running 'pub get'.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - string)> templateExperimentNotEnabledOffByDefault = const Template< - Message Function(String string)>("ExperimentNotEnabledOffByDefault", - problemMessageTemplate: - r"""This requires the experimental '#string' language feature to be enabled.""", - correctionMessageTemplate: - r"""Try passing the '--enable-experiment=#string' command line option.""", - withArguments: _withArgumentsExperimentNotEnabledOffByDefault); +const Template + templateExperimentNotEnabledOffByDefault = + const Template( + "ExperimentNotEnabledOffByDefault", + problemMessageTemplate: + r"""This requires the experimental '#string' language feature to be enabled.""", + correctionMessageTemplate: + r"""Try passing the '--enable-experiment=#string' command line option.""", + withArguments: _withArgumentsExperimentNotEnabledOffByDefault, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExperimentNotEnabledOffByDefault = const Code( - "ExperimentNotEnabledOffByDefault", - index: 133); + "ExperimentNotEnabledOffByDefault", + index: 133, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExperimentNotEnabledOffByDefault(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeExperimentNotEnabledOffByDefault, - problemMessage: - """This requires the experimental '${string}' language feature to be enabled.""", - correctionMessage: """Try passing the '--enable-experiment=${string}' command line option.""", - arguments: {'string': string}); + return new Message( + codeExperimentNotEnabledOffByDefault, + problemMessage: + """This requires the experimental '${string}' language feature to be enabled.""", + correctionMessage: + """Try passing the '--enable-experiment=${string}' command line option.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - string)> templateExperimentOptOutComment = const Template< - Message Function(String string)>("ExperimentOptOutComment", - problemMessageTemplate: - r"""This is the annotation that opts out this library from the '#string' language feature.""", - withArguments: _withArgumentsExperimentOptOutComment); +const Template + templateExperimentOptOutComment = + const Template( + "ExperimentOptOutComment", + problemMessageTemplate: + r"""This is the annotation that opts out this library from the '#string' language feature.""", + withArguments: _withArgumentsExperimentOptOutComment, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExperimentOptOutComment = - const Code("ExperimentOptOutComment", - severity: Severity.context); + const Code( + "ExperimentOptOutComment", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExperimentOptOutComment(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeExperimentOptOutComment, - problemMessage: - """This is the annotation that opts out this library from the '${string}' language feature.""", - arguments: {'string': string}); + return new Message( + codeExperimentOptOutComment, + problemMessage: + """This is the annotation that opts out this library from the '${string}' language feature.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateExperimentOptOutExplicit = const Template< - Message Function(String string, String string2)>( - "ExperimentOptOutExplicit", - problemMessageTemplate: - r"""The '#string' language feature is disabled for this library.""", - correctionMessageTemplate: - r"""Try removing the `@dart=` annotation or setting the language version to #string2 or higher.""", - withArguments: _withArgumentsExperimentOptOutExplicit); +const Template + templateExperimentOptOutExplicit = + const Template( + "ExperimentOptOutExplicit", + problemMessageTemplate: + r"""The '#string' language feature is disabled for this library.""", + correctionMessageTemplate: + r"""Try removing the `@dart=` annotation or setting the language version to #string2 or higher.""", + withArguments: _withArgumentsExperimentOptOutExplicit, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4125,27 +4933,30 @@ const Code Message _withArgumentsExperimentOptOutExplicit(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeExperimentOptOutExplicit, - problemMessage: - """The '${string}' language feature is disabled for this library.""", - correctionMessage: - """Try removing the `@dart=` annotation or setting the language version to ${string2} or higher.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeExperimentOptOutExplicit, + problemMessage: + """The '${string}' language feature is disabled for this library.""", + correctionMessage: + """Try removing the `@dart=` annotation or setting the language version to ${string2} or higher.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateExperimentOptOutImplicit = const Template< - Message Function(String string, String string2)>( - "ExperimentOptOutImplicit", - problemMessageTemplate: - r"""The '#string' language feature is disabled for this library.""", - correctionMessageTemplate: - r"""Try removing the package language version or setting the language version to #string2 or higher.""", - withArguments: _withArgumentsExperimentOptOutImplicit); +const Template + templateExperimentOptOutImplicit = + const Template( + "ExperimentOptOutImplicit", + problemMessageTemplate: + r"""The '#string' language feature is disabled for this library.""", + correctionMessageTemplate: + r"""Try removing the package language version or setting the language version to #string2 or higher.""", + withArguments: _withArgumentsExperimentOptOutImplicit, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4158,12 +4969,17 @@ const Code Message _withArgumentsExperimentOptOutImplicit(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeExperimentOptOutImplicit, - problemMessage: - """The '${string}' language feature is disabled for this library.""", - correctionMessage: - """Try removing the package language version or setting the language version to ${string2} or higher.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeExperimentOptOutImplicit, + problemMessage: + """The '${string}' language feature is disabled for this library.""", + correctionMessage: + """Try removing the package language version or setting the language version to ${string2} or higher.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4172,9 +4988,10 @@ const Code codeExplicitExtensionArgumentMismatch = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExplicitExtensionArgumentMismatch = const MessageCode( - "ExplicitExtensionArgumentMismatch", - problemMessage: - r"""Explicit extension application requires exactly 1 positional argument."""); + "ExplicitExtensionArgumentMismatch", + problemMessage: + r"""Explicit extension application requires exactly 1 positional argument.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExplicitExtensionAsExpression = @@ -4182,9 +4999,10 @@ const Code codeExplicitExtensionAsExpression = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExplicitExtensionAsExpression = const MessageCode( - "ExplicitExtensionAsExpression", - problemMessage: - r"""Explicit extension application cannot be used as an expression."""); + "ExplicitExtensionAsExpression", + problemMessage: + r"""Explicit extension application cannot be used as an expression.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExplicitExtensionAsLvalue = @@ -4192,21 +5010,20 @@ const Code codeExplicitExtensionAsLvalue = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExplicitExtensionAsLvalue = const MessageCode( - "ExplicitExtensionAsLvalue", - problemMessage: - r"""Explicit extension application cannot be a target for assignment."""); + "ExplicitExtensionAsLvalue", + problemMessage: + r"""Explicit extension application cannot be a target for assignment.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - int - count)> templateExplicitExtensionTypeArgumentMismatch = const Template< - Message Function(String name, int count)>( - "ExplicitExtensionTypeArgumentMismatch", - problemMessageTemplate: - r"""Explicit extension application of extension '#name' takes '#count' type argument(s).""", - withArguments: _withArgumentsExplicitExtensionTypeArgumentMismatch); +const Template + templateExplicitExtensionTypeArgumentMismatch = + const Template( + "ExplicitExtensionTypeArgumentMismatch", + problemMessageTemplate: + r"""Explicit extension application of extension '#name' takes '#count' type argument(s).""", + withArguments: _withArgumentsExplicitExtensionTypeArgumentMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4220,90 +5037,117 @@ Message _withArgumentsExplicitExtensionTypeArgumentMismatch( String name, int count) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeExplicitExtensionTypeArgumentMismatch, - problemMessage: - """Explicit extension application of extension '${name}' takes '${count}' type argument(s).""", - arguments: {'name': name, 'count': count}); + return new Message( + codeExplicitExtensionTypeArgumentMismatch, + problemMessage: + """Explicit extension application of extension '${name}' takes '${count}' type argument(s).""", + arguments: { + 'name': name, + 'count': count, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExportAfterPart = messageExportAfterPart; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExportAfterPart = const MessageCode("ExportAfterPart", - index: 75, - problemMessage: r"""Export directives must precede part directives.""", - correctionMessage: - r"""Try moving the export directives before the part directives."""); +const MessageCode messageExportAfterPart = const MessageCode( + "ExportAfterPart", + index: 75, + problemMessage: r"""Export directives must precede part directives.""", + correctionMessage: + r"""Try moving the export directives before the part directives.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExportOptOutFromOptIn = messageExportOptOutFromOptIn; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExportOptOutFromOptIn = const MessageCode( - "ExportOptOutFromOptIn", - problemMessage: - r"""Null safe libraries are not allowed to export declarations from of opt-out libraries."""); + "ExportOptOutFromOptIn", + problemMessage: + r"""Null safe libraries are not allowed to export declarations from of opt-out libraries.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExportedMain = messageExportedMain; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExportedMain = const MessageCode("ExportedMain", - severity: Severity.context, - problemMessage: r"""This is exported 'main' declaration."""); +const MessageCode messageExportedMain = const MessageCode( + "ExportedMain", + severity: Severity.context, + problemMessage: r"""This is exported 'main' declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExpressionNotMetadata = messageExpressionNotMetadata; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExpressionNotMetadata = const MessageCode( - "ExpressionNotMetadata", - problemMessage: - r"""This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor."""); + "ExpressionNotMetadata", + problemMessage: + r"""This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExtendingEnum = - const Template("ExtendingEnum", - problemMessageTemplate: - r"""'#name' is an enum and can't be extended or implemented.""", - withArguments: _withArgumentsExtendingEnum); + const Template( + "ExtendingEnum", + problemMessageTemplate: + r"""'#name' is an enum and can't be extended or implemented.""", + withArguments: _withArgumentsExtendingEnum, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtendingEnum = - const Code("ExtendingEnum", - analyzerCodes: ["EXTENDS_ENUM"]); + const Code( + "ExtendingEnum", + analyzerCodes: ["EXTENDS_ENUM"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExtendingEnum(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeExtendingEnum, - problemMessage: - """'${name}' is an enum and can't be extended or implemented.""", - arguments: {'name': name}); + return new Message( + codeExtendingEnum, + problemMessage: + """'${name}' is an enum and can't be extended or implemented.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExtendingRestricted = - const Template("ExtendingRestricted", - problemMessageTemplate: - r"""'#name' is restricted and can't be extended or implemented.""", - withArguments: _withArgumentsExtendingRestricted); + const Template( + "ExtendingRestricted", + problemMessageTemplate: + r"""'#name' is restricted and can't be extended or implemented.""", + withArguments: _withArgumentsExtendingRestricted, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtendingRestricted = - const Code("ExtendingRestricted", - analyzerCodes: ["EXTENDS_DISALLOWED_CLASS"]); + const Code( + "ExtendingRestricted", + analyzerCodes: ["EXTENDS_DISALLOWED_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExtendingRestricted(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeExtendingRestricted, - problemMessage: - """'${name}' is restricted and can't be extended or implemented.""", - arguments: {'name': name}); + return new Message( + codeExtendingRestricted, + problemMessage: + """'${name}' is restricted and can't be extended or implemented.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4311,35 +5155,40 @@ const Code codeExtendsDeferredClass = messageExtendsDeferredClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtendsDeferredClass = const MessageCode( - "ExtendsDeferredClass", - analyzerCodes: ["EXTENDS_DEFERRED_CLASS"], - problemMessage: r"""Classes can't extend deferred classes.""", - correctionMessage: - r"""Try specifying a different superclass, or removing the extends clause."""); + "ExtendsDeferredClass", + analyzerCodes: ["EXTENDS_DEFERRED_CLASS"], + problemMessage: r"""Classes can't extend deferred classes.""", + correctionMessage: + r"""Try specifying a different superclass, or removing the extends clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtendsFutureOr = messageExtendsFutureOr; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExtendsFutureOr = const MessageCode("ExtendsFutureOr", - problemMessage: - r"""The type 'FutureOr' can't be used in an 'extends' clause."""); +const MessageCode messageExtendsFutureOr = const MessageCode( + "ExtendsFutureOr", + problemMessage: + r"""The type 'FutureOr' can't be used in an 'extends' clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtendsNever = messageExtendsNever; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExtendsNever = const MessageCode("ExtendsNever", - problemMessage: - r"""The type 'Never' can't be used in an 'extends' clause."""); +const MessageCode messageExtendsNever = const MessageCode( + "ExtendsNever", + problemMessage: r"""The type 'Never' can't be used in an 'extends' clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtendsVoid = messageExtendsVoid; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExtendsVoid = const MessageCode("ExtendsVoid", - problemMessage: - r"""The type 'void' can't be used in an 'extends' clause."""); +const MessageCode messageExtendsVoid = const MessageCode( + "ExtendsVoid", + problemMessage: r"""The type 'void' can't be used in an 'extends' clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionDeclaresAbstractMember = @@ -4347,10 +5196,11 @@ const Code codeExtensionDeclaresAbstractMember = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionDeclaresAbstractMember = const MessageCode( - "ExtensionDeclaresAbstractMember", - index: 94, - problemMessage: r"""Extensions can't declare abstract members.""", - correctionMessage: r"""Try providing an implementation for the member."""); + "ExtensionDeclaresAbstractMember", + index: 94, + problemMessage: r"""Extensions can't declare abstract members.""", + correctionMessage: r"""Try providing an implementation for the member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionDeclaresConstructor = @@ -4358,10 +5208,11 @@ const Code codeExtensionDeclaresConstructor = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionDeclaresConstructor = const MessageCode( - "ExtensionDeclaresConstructor", - index: 92, - problemMessage: r"""Extensions can't declare constructors.""", - correctionMessage: r"""Try removing the constructor declaration."""); + "ExtensionDeclaresConstructor", + index: 92, + problemMessage: r"""Extensions can't declare constructors.""", + correctionMessage: r"""Try removing the constructor declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionDeclaresInstanceField = @@ -4369,44 +5220,53 @@ const Code codeExtensionDeclaresInstanceField = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionDeclaresInstanceField = const MessageCode( - "ExtensionDeclaresInstanceField", - index: 93, - problemMessage: r"""Extensions can't declare instance fields""", - correctionMessage: - r"""Try removing the field declaration or making it a static field"""); + "ExtensionDeclaresInstanceField", + index: 93, + problemMessage: r"""Extensions can't declare instance fields""", + correctionMessage: + r"""Try removing the field declaration or making it a static field""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExtensionInNullAwareReceiver = const Template( - "ExtensionInNullAwareReceiver", - problemMessageTemplate: r"""The extension '#name' cannot be null.""", - correctionMessageTemplate: r"""Try replacing '?.' with '.'""", - withArguments: _withArgumentsExtensionInNullAwareReceiver); + "ExtensionInNullAwareReceiver", + problemMessageTemplate: r"""The extension '#name' cannot be null.""", + correctionMessageTemplate: r"""Try replacing '?.' with '.'""", + withArguments: _withArgumentsExtensionInNullAwareReceiver, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionInNullAwareReceiver = - const Code("ExtensionInNullAwareReceiver", - severity: Severity.warning); + const Code( + "ExtensionInNullAwareReceiver", + severity: Severity.warning, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExtensionInNullAwareReceiver(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeExtensionInNullAwareReceiver, - problemMessage: """The extension '${name}' cannot be null.""", - correctionMessage: """Try replacing '?.' with '.'""", - arguments: {'name': name}); + return new Message( + codeExtensionInNullAwareReceiver, + problemMessage: """The extension '${name}' cannot be null.""", + correctionMessage: """Try replacing '?.' with '.'""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExtensionMemberConflictsWithObjectMember = const Template( - "ExtensionMemberConflictsWithObjectMember", - problemMessageTemplate: - r"""This extension member conflicts with Object member '#name'.""", - withArguments: _withArgumentsExtensionMemberConflictsWithObjectMember); + "ExtensionMemberConflictsWithObjectMember", + problemMessageTemplate: + r"""This extension member conflicts with Object member '#name'.""", + withArguments: _withArgumentsExtensionMemberConflictsWithObjectMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4419,30 +5279,35 @@ const Code Message _withArgumentsExtensionMemberConflictsWithObjectMember(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeExtensionMemberConflictsWithObjectMember, - problemMessage: - """This extension member conflicts with Object member '${name}'.""", - arguments: {'name': name}); + return new Message( + codeExtensionMemberConflictsWithObjectMember, + problemMessage: + """This extension member conflicts with Object member '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExtensionTypeCombinedMemberSignatureFailed = const Template( - "ExtensionTypeCombinedMemberSignatureFailed", - problemMessageTemplate: - r"""Extension type '#name' inherits multiple members named '#name2' with incompatible signatures.""", - correctionMessageTemplate: - r"""Try adding a declaration of '#name2' to '#name'.""", - withArguments: - _withArgumentsExtensionTypeCombinedMemberSignatureFailed); + "ExtensionTypeCombinedMemberSignatureFailed", + problemMessageTemplate: + r"""Extension type '#name' inherits multiple members named '#name2' with incompatible signatures.""", + correctionMessageTemplate: + r"""Try adding a declaration of '#name2' to '#name'.""", + withArguments: _withArgumentsExtensionTypeCombinedMemberSignatureFailed, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeCombinedMemberSignatureFailed = const Code( - "ExtensionTypeCombinedMemberSignatureFailed", - analyzerCodes: ["INCONSISTENT_INHERITANCE"]); + "ExtensionTypeCombinedMemberSignatureFailed", + analyzerCodes: ["INCONSISTENT_INHERITANCE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExtensionTypeCombinedMemberSignatureFailed( @@ -4451,11 +5316,17 @@ Message _withArgumentsExtensionTypeCombinedMemberSignatureFailed( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeExtensionTypeCombinedMemberSignatureFailed, - problemMessage: - """Extension type '${name}' inherits multiple members named '${name2}' with incompatible signatures.""", - correctionMessage: """Try adding a declaration of '${name2}' to '${name}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeExtensionTypeCombinedMemberSignatureFailed, + problemMessage: + """Extension type '${name}' inherits multiple members named '${name2}' with incompatible signatures.""", + correctionMessage: + """Try adding a declaration of '${name2}' to '${name}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4464,12 +5335,14 @@ const Code codeExtensionTypeConstructorWithSuperFormalParameter = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeConstructorWithSuperFormalParameter = - const MessageCode("ExtensionTypeConstructorWithSuperFormalParameter", - analyzerCodes: [ - "EXTENSION_TYPE_CONSTRUCTOR_WITH_SUPER_FORMAL_PARAMETER" - ], - problemMessage: - r"""Extension type constructors can't declare super formal parameters."""); + const MessageCode( + "ExtensionTypeConstructorWithSuperFormalParameter", + analyzerCodes: [ + "EXTENSION_TYPE_CONSTRUCTOR_WITH_SUPER_FORMAL_PARAMETER" + ], + problemMessage: + r"""Extension type constructors can't declare super formal parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeDeclarationCause = @@ -4477,10 +5350,10 @@ const Code codeExtensionTypeDeclarationCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeDeclarationCause = const MessageCode( - "ExtensionTypeDeclarationCause", - severity: Severity.context, - problemMessage: - r"""The issue arises via this extension type declaration."""); + "ExtensionTypeDeclarationCause", + severity: Severity.context, + problemMessage: r"""The issue arises via this extension type declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeDeclaresAbstractMember = @@ -4488,11 +5361,12 @@ const Code codeExtensionTypeDeclaresAbstractMember = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeDeclaresAbstractMember = - const MessageCode("ExtensionTypeDeclaresAbstractMember", - analyzerCodes: ["EXTENSION_TYPE_WITH_ABSTRACT_MEMBER"], - problemMessage: r"""Extension types can't declare abstract members.""", - correctionMessage: - r"""Try providing an implementation for the member."""); + const MessageCode( + "ExtensionTypeDeclaresAbstractMember", + analyzerCodes: ["EXTENSION_TYPE_WITH_ABSTRACT_MEMBER"], + problemMessage: r"""Extension types can't declare abstract members.""", + correctionMessage: r"""Try providing an implementation for the member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeDeclaresInstanceField = @@ -4500,23 +5374,25 @@ const Code codeExtensionTypeDeclaresInstanceField = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeDeclaresInstanceField = const MessageCode( - "ExtensionTypeDeclaresInstanceField", - analyzerCodes: ["EXTENSION_TYPE_DECLARES_INSTANCE_FIELD"], - problemMessage: r"""Extension types can't declare instance fields""", - correctionMessage: - r"""Try removing the field declaration or making it a static field"""); + "ExtensionTypeDeclaresInstanceField", + analyzerCodes: ["EXTENSION_TYPE_DECLARES_INSTANCE_FIELD"], + problemMessage: r"""Extension types can't declare instance fields""", + correctionMessage: + r"""Try removing the field declaration or making it a static field""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeExtends = messageExtensionTypeExtends; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeExtends = const MessageCode( - "ExtensionTypeExtends", - index: 164, - problemMessage: - r"""An extension type declaration can't have an 'extends' clause.""", - correctionMessage: - r"""Try removing the 'extends' clause or replacing the 'extends' with 'implements'."""); + "ExtensionTypeExtends", + index: 164, + problemMessage: + r"""An extension type declaration can't have an 'extends' clause.""", + correctionMessage: + r"""Try removing the 'extends' clause or replacing the 'extends' with 'implements'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeImplementsDeferred = @@ -4524,11 +5400,12 @@ const Code codeExtensionTypeImplementsDeferred = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeImplementsDeferred = const MessageCode( - "ExtensionTypeImplementsDeferred", - analyzerCodes: ["IMPLEMENTS_DEFERRED_CLASS"], - problemMessage: r"""Extension types can't implement deferred types.""", - correctionMessage: - r"""Try specifying a different type, removing the type from the list, or changing the import to not be deferred."""); + "ExtensionTypeImplementsDeferred", + analyzerCodes: ["IMPLEMENTS_DEFERRED_CLASS"], + problemMessage: r"""Extension types can't implement deferred types.""", + correctionMessage: + r"""Try specifying a different type, removing the type from the list, or changing the import to not be deferred.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeMemberContext = @@ -4536,9 +5413,10 @@ const Code codeExtensionTypeMemberContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeMemberContext = const MessageCode( - "ExtensionTypeMemberContext", - severity: Severity.context, - problemMessage: r"""This is the inherited extension type member."""); + "ExtensionTypeMemberContext", + severity: Severity.context, + problemMessage: r"""This is the inherited extension type member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeMemberOneOfContext = @@ -4546,10 +5424,10 @@ const Code codeExtensionTypeMemberOneOfContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeMemberOneOfContext = const MessageCode( - "ExtensionTypeMemberOneOfContext", - severity: Severity.context, - problemMessage: - r"""This is one of the inherited extension type members."""); + "ExtensionTypeMemberOneOfContext", + severity: Severity.context, + problemMessage: r"""This is one of the inherited extension type members.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4560,11 +5438,12 @@ const Code const MessageCode messageExtensionTypePrimaryConstructorFunctionFormalParameterSyntax = const MessageCode( - "ExtensionTypePrimaryConstructorFunctionFormalParameterSyntax", - problemMessage: - r"""Primary constructors in extension types can't use function formal parameter syntax.""", - correctionMessage: - r"""Try rewriting with an explicit function type, like `int Function() f`."""); + "ExtensionTypePrimaryConstructorFunctionFormalParameterSyntax", + problemMessage: + r"""Primary constructors in extension types can't use function formal parameter syntax.""", + correctionMessage: + r"""Try rewriting with an explicit function type, like `int Function() f`.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypePrimaryConstructorWithInitializingFormal = @@ -4572,11 +5451,12 @@ const Code codeExtensionTypePrimaryConstructorWithInitializingFormal = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypePrimaryConstructorWithInitializingFormal = - const MessageCode("ExtensionTypePrimaryConstructorWithInitializingFormal", - problemMessage: - r"""Primary constructors in extension types can't use initializing formals.""", - correctionMessage: - r"""Try removing `this.` from the formal parameter."""); + const MessageCode( + "ExtensionTypePrimaryConstructorWithInitializingFormal", + problemMessage: + r"""Primary constructors in extension types can't use initializing formals.""", + correctionMessage: r"""Try removing `this.` from the formal parameter.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeRepresentationTypeBottom = @@ -4584,30 +5464,35 @@ const Code codeExtensionTypeRepresentationTypeBottom = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeRepresentationTypeBottom = - const MessageCode("ExtensionTypeRepresentationTypeBottom", - analyzerCodes: ["EXTENSION_TYPE_REPRESENTATION_TYPE_BOTTOM"], - problemMessage: r"""The representation type can't be a bottom type."""); + const MessageCode( + "ExtensionTypeRepresentationTypeBottom", + analyzerCodes: ["EXTENSION_TYPE_REPRESENTATION_TYPE_BOTTOM"], + problemMessage: r"""The representation type can't be a bottom type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtensionTypeWith = messageExtensionTypeWith; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExtensionTypeWith = const MessageCode( - "ExtensionTypeWith", - index: 165, - problemMessage: - r"""An extension type declaration can't have a 'with' clause.""", - correctionMessage: - r"""Try removing the 'with' clause or replacing the 'with' with 'implements'."""); + "ExtensionTypeWith", + index: 165, + problemMessage: + r"""An extension type declaration can't have a 'with' clause.""", + correctionMessage: + r"""Try removing the 'with' clause or replacing the 'with' with 'implements'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalClass = messageExternalClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExternalClass = const MessageCode("ExternalClass", - index: 3, - problemMessage: r"""Classes can't be declared to be 'external'.""", - correctionMessage: r"""Try removing the keyword 'external'."""); +const MessageCode messageExternalClass = const MessageCode( + "ExternalClass", + index: 3, + problemMessage: r"""Classes can't be declared to be 'external'.""", + correctionMessage: r"""Try removing the keyword 'external'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalConstructorWithBody = @@ -4615,11 +5500,12 @@ const Code codeExternalConstructorWithBody = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExternalConstructorWithBody = const MessageCode( - "ExternalConstructorWithBody", - index: 87, - problemMessage: r"""External constructors can't have a body.""", - correctionMessage: - r"""Try removing the body of the constructor, or removing the keyword 'external'."""); + "ExternalConstructorWithBody", + index: 87, + problemMessage: r"""External constructors can't have a body.""", + correctionMessage: + r"""Try removing the body of the constructor, or removing the keyword 'external'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalConstructorWithFieldInitializers = @@ -4627,11 +5513,13 @@ const Code codeExternalConstructorWithFieldInitializers = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExternalConstructorWithFieldInitializers = - const MessageCode("ExternalConstructorWithFieldInitializers", - index: 178, - problemMessage: r"""An external constructor can't initialize fields.""", - correctionMessage: - r"""Try removing the field initializers, or removing the keyword 'external'."""); + const MessageCode( + "ExternalConstructorWithFieldInitializers", + index: 178, + problemMessage: r"""An external constructor can't initialize fields.""", + correctionMessage: + r"""Try removing the field initializers, or removing the keyword 'external'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalConstructorWithInitializer = @@ -4639,19 +5527,21 @@ const Code codeExternalConstructorWithInitializer = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExternalConstructorWithInitializer = const MessageCode( - "ExternalConstructorWithInitializer", - index: 106, - problemMessage: - r"""An external constructor can't have any initializers."""); + "ExternalConstructorWithInitializer", + index: 106, + problemMessage: r"""An external constructor can't have any initializers.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalEnum = messageExternalEnum; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExternalEnum = const MessageCode("ExternalEnum", - index: 5, - problemMessage: r"""Enums can't be declared to be 'external'.""", - correctionMessage: r"""Try removing the keyword 'external'."""); +const MessageCode messageExternalEnum = const MessageCode( + "ExternalEnum", + index: 5, + problemMessage: r"""Enums can't be declared to be 'external'.""", + correctionMessage: r"""Try removing the keyword 'external'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalFactoryRedirection = @@ -4659,187 +5549,226 @@ const Code codeExternalFactoryRedirection = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExternalFactoryRedirection = const MessageCode( - "ExternalFactoryRedirection", - index: 85, - problemMessage: r"""A redirecting factory can't be external.""", - correctionMessage: r"""Try removing the 'external' modifier."""); + "ExternalFactoryRedirection", + index: 85, + problemMessage: r"""A redirecting factory can't be external.""", + correctionMessage: r"""Try removing the 'external' modifier.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalFactoryWithBody = messageExternalFactoryWithBody; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExternalFactoryWithBody = const MessageCode( - "ExternalFactoryWithBody", - index: 86, - problemMessage: r"""External factories can't have a body.""", - correctionMessage: - r"""Try removing the body of the factory, or removing the keyword 'external'."""); + "ExternalFactoryWithBody", + index: 86, + problemMessage: r"""External factories can't have a body.""", + correctionMessage: + r"""Try removing the body of the factory, or removing the keyword 'external'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalField = messageExternalField; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExternalField = const MessageCode("ExternalField", - index: 50, - problemMessage: r"""Fields can't be declared to be 'external'.""", - correctionMessage: - r"""Try removing the keyword 'external', or replacing the field by an external getter and/or setter."""); +const MessageCode messageExternalField = const MessageCode( + "ExternalField", + index: 50, + problemMessage: r"""Fields can't be declared to be 'external'.""", + correctionMessage: + r"""Try removing the keyword 'external', or replacing the field by an external getter and/or setter.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalFieldConstructorInitializer = messageExternalFieldConstructorInitializer; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExternalFieldConstructorInitializer = const MessageCode( - "ExternalFieldConstructorInitializer", - problemMessage: r"""External fields cannot have initializers.""", - correctionMessage: - r"""Try removing the field initializer or the 'external' keyword from the field declaration."""); +const MessageCode messageExternalFieldConstructorInitializer = + const MessageCode( + "ExternalFieldConstructorInitializer", + problemMessage: r"""External fields cannot have initializers.""", + correctionMessage: + r"""Try removing the field initializer or the 'external' keyword from the field declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalFieldInitializer = messageExternalFieldInitializer; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExternalFieldInitializer = const MessageCode( - "ExternalFieldInitializer", - problemMessage: r"""External fields cannot have initializers.""", - correctionMessage: - r"""Try removing the initializer or the 'external' keyword."""); + "ExternalFieldInitializer", + problemMessage: r"""External fields cannot have initializers.""", + correctionMessage: + r"""Try removing the initializer or the 'external' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalLateField = messageExternalLateField; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExternalLateField = const MessageCode( - "ExternalLateField", - index: 109, - problemMessage: r"""External fields cannot be late.""", - correctionMessage: r"""Try removing the 'external' or 'late' keyword."""); + "ExternalLateField", + index: 109, + problemMessage: r"""External fields cannot be late.""", + correctionMessage: r"""Try removing the 'external' or 'late' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalMethodWithBody = messageExternalMethodWithBody; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageExternalMethodWithBody = const MessageCode( - "ExternalMethodWithBody", - index: 49, - problemMessage: r"""An external or native method can't have a body."""); + "ExternalMethodWithBody", + index: 49, + problemMessage: r"""An external or native method can't have a body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExternalTypedef = messageExternalTypedef; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageExternalTypedef = const MessageCode("ExternalTypedef", - index: 76, - problemMessage: r"""Typedefs can't be declared to be 'external'.""", - correctionMessage: r"""Try removing the keyword 'external'."""); +const MessageCode messageExternalTypedef = const MessageCode( + "ExternalTypedef", + index: 76, + problemMessage: r"""Typedefs can't be declared to be 'external'.""", + correctionMessage: r"""Try removing the keyword 'external'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExtraneousModifier = - const Template("ExtraneousModifier", - problemMessageTemplate: r"""Can't have modifier '#lexeme' here.""", - correctionMessageTemplate: r"""Try removing '#lexeme'.""", - withArguments: _withArgumentsExtraneousModifier); + const Template( + "ExtraneousModifier", + problemMessageTemplate: r"""Can't have modifier '#lexeme' here.""", + correctionMessageTemplate: r"""Try removing '#lexeme'.""", + withArguments: _withArgumentsExtraneousModifier, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtraneousModifier = - const Code("ExtraneousModifier", index: 77); + const Code( + "ExtraneousModifier", + index: 77, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExtraneousModifier(Token token) { String lexeme = token.lexeme; - return new Message(codeExtraneousModifier, - problemMessage: """Can't have modifier '${lexeme}' here.""", - correctionMessage: """Try removing '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExtraneousModifier, + problemMessage: """Can't have modifier '${lexeme}' here.""", + correctionMessage: """Try removing '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExtraneousModifierInExtension = const Template( - "ExtraneousModifierInExtension", - problemMessageTemplate: - r"""Can't have modifier '#lexeme' in an extension.""", - correctionMessageTemplate: r"""Try removing '#lexeme'.""", - withArguments: _withArgumentsExtraneousModifierInExtension); + "ExtraneousModifierInExtension", + problemMessageTemplate: r"""Can't have modifier '#lexeme' in an extension.""", + correctionMessageTemplate: r"""Try removing '#lexeme'.""", + withArguments: _withArgumentsExtraneousModifierInExtension, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtraneousModifierInExtension = - const Code("ExtraneousModifierInExtension", - index: 98); + const Code( + "ExtraneousModifierInExtension", + index: 98, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExtraneousModifierInExtension(Token token) { String lexeme = token.lexeme; - return new Message(codeExtraneousModifierInExtension, - problemMessage: """Can't have modifier '${lexeme}' in an extension.""", - correctionMessage: """Try removing '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExtraneousModifierInExtension, + problemMessage: """Can't have modifier '${lexeme}' in an extension.""", + correctionMessage: """Try removing '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExtraneousModifierInExtensionType = const Template( - "ExtraneousModifierInExtensionType", - problemMessageTemplate: - r"""Can't have modifier '#lexeme' in an extension type.""", - correctionMessageTemplate: r"""Try removing '#lexeme'.""", - withArguments: _withArgumentsExtraneousModifierInExtensionType); + "ExtraneousModifierInExtensionType", + problemMessageTemplate: + r"""Can't have modifier '#lexeme' in an extension type.""", + correctionMessageTemplate: r"""Try removing '#lexeme'.""", + withArguments: _withArgumentsExtraneousModifierInExtensionType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtraneousModifierInExtensionType = const Code( - "ExtraneousModifierInExtensionType", - index: 174); + "ExtraneousModifierInExtensionType", + index: 174, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExtraneousModifierInExtensionType(Token token) { String lexeme = token.lexeme; - return new Message(codeExtraneousModifierInExtensionType, - problemMessage: - """Can't have modifier '${lexeme}' in an extension type.""", - correctionMessage: """Try removing '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExtraneousModifierInExtensionType, + problemMessage: """Can't have modifier '${lexeme}' in an extension type.""", + correctionMessage: """Try removing '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateExtraneousModifierInPrimaryConstructor = const Template( - "ExtraneousModifierInPrimaryConstructor", - problemMessageTemplate: - r"""Can't have modifier '#lexeme' in a primary constructor.""", - correctionMessageTemplate: r"""Try removing '#lexeme'.""", - withArguments: _withArgumentsExtraneousModifierInPrimaryConstructor); + "ExtraneousModifierInPrimaryConstructor", + problemMessageTemplate: + r"""Can't have modifier '#lexeme' in a primary constructor.""", + correctionMessageTemplate: r"""Try removing '#lexeme'.""", + withArguments: _withArgumentsExtraneousModifierInPrimaryConstructor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeExtraneousModifierInPrimaryConstructor = const Code( - "ExtraneousModifierInPrimaryConstructor", - index: 175); + "ExtraneousModifierInPrimaryConstructor", + index: 175, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsExtraneousModifierInPrimaryConstructor(Token token) { String lexeme = token.lexeme; - return new Message(codeExtraneousModifierInPrimaryConstructor, - problemMessage: - """Can't have modifier '${lexeme}' in a primary constructor.""", - correctionMessage: """Try removing '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeExtraneousModifierInPrimaryConstructor, + problemMessage: + """Can't have modifier '${lexeme}' in a primary constructor.""", + correctionMessage: """Try removing '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFactoryNotSync = messageFactoryNotSync; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFactoryNotSync = const MessageCode("FactoryNotSync", - analyzerCodes: ["NON_SYNC_FACTORY"], - problemMessage: - r"""Factory bodies can't use 'async', 'async*', or 'sync*'."""); +const MessageCode messageFactoryNotSync = const MessageCode( + "FactoryNotSync", + analyzerCodes: ["NON_SYNC_FACTORY"], + problemMessage: + r"""Factory bodies can't use 'async', 'async*', or 'sync*'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFactoryTopLevelDeclaration = @@ -4847,17 +5776,20 @@ const Code codeFactoryTopLevelDeclaration = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFactoryTopLevelDeclaration = const MessageCode( - "FactoryTopLevelDeclaration", - index: 78, - problemMessage: - r"""Top-level declarations can't be declared to be 'factory'.""", - correctionMessage: r"""Try removing the keyword 'factory'."""); + "FactoryTopLevelDeclaration", + index: 78, + problemMessage: + r"""Top-level declarations can't be declared to be 'factory'.""", + correctionMessage: r"""Try removing the keyword 'factory'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFastaCLIArgumentRequired = - const Template("FastaCLIArgumentRequired", - problemMessageTemplate: r"""Expected value after '#name'.""", - withArguments: _withArgumentsFastaCLIArgumentRequired); + const Template( + "FastaCLIArgumentRequired", + problemMessageTemplate: r"""Expected value after '#name'.""", + withArguments: _withArgumentsFastaCLIArgumentRequired, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFastaCLIArgumentRequired = @@ -4869,17 +5801,22 @@ const Code codeFastaCLIArgumentRequired = Message _withArgumentsFastaCLIArgumentRequired(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFastaCLIArgumentRequired, - problemMessage: """Expected value after '${name}'.""", - arguments: {'name': name}); + return new Message( + codeFastaCLIArgumentRequired, + problemMessage: """Expected value after '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFastaUsageLong = messageFastaUsageLong; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFastaUsageLong = - const MessageCode("FastaUsageLong", problemMessage: r"""Supported options: +const MessageCode messageFastaUsageLong = const MessageCode( + "FastaUsageLong", + problemMessage: r"""Supported options: -o , --output= Generate the output into . @@ -4963,17 +5900,20 @@ const MessageCode messageFastaUsageLong = --enable-experiment= Enable or disable an experimental flag, used to guard features currently in development. Prefix an experiment name with 'no-' to disable it. - Multiple experiments can be separated by commas."""); + Multiple experiments can be separated by commas.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFastaUsageShort = messageFastaUsageShort; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFastaUsageShort = const MessageCode("FastaUsageShort", - problemMessage: r"""Frequently used options: +const MessageCode messageFastaUsageShort = const MessageCode( + "FastaUsageShort", + problemMessage: r"""Frequently used options: -o Generate the output into . - -h Display this message (add -v for information about all options)."""); + -h Display this message (add -v for information about all options).""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiAbiSpecificIntegerInvalid = @@ -4981,40 +5921,44 @@ const Code codeFfiAbiSpecificIntegerInvalid = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiAbiSpecificIntegerInvalid = const MessageCode( - "FfiAbiSpecificIntegerInvalid", - problemMessage: - r"""Classes extending 'AbiSpecificInteger' must have exactly one const constructor, no other members, and no type arguments."""); + "FfiAbiSpecificIntegerInvalid", + problemMessage: + r"""Classes extending 'AbiSpecificInteger' must have exactly one const constructor, no other members, and no type arguments.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiAbiSpecificIntegerMappingInvalid = messageFfiAbiSpecificIntegerMappingInvalid; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFfiAbiSpecificIntegerMappingInvalid = const MessageCode( - "FfiAbiSpecificIntegerMappingInvalid", - problemMessage: - r"""Classes extending 'AbiSpecificInteger' must have exactly one 'AbiSpecificIntegerMapping' annotation specifying the mapping from ABI to a NativeType integer with a fixed size."""); +const MessageCode messageFfiAbiSpecificIntegerMappingInvalid = + const MessageCode( + "FfiAbiSpecificIntegerMappingInvalid", + problemMessage: + r"""Classes extending 'AbiSpecificInteger' must have exactly one 'AbiSpecificIntegerMapping' annotation specifying the mapping from ABI to a NativeType integer with a fixed size.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiAddressOfMustBeNative = messageFfiAddressOfMustBeNative; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiAddressOfMustBeNative = const MessageCode( - "FfiAddressOfMustBeNative", - analyzerCodes: ["ARGUMENT_MUST_BE_NATIVE"], - problemMessage: - r"""Argument to 'Native.addressOf' must be annotated with @Native."""); + "FfiAddressOfMustBeNative", + analyzerCodes: ["ARGUMENT_MUST_BE_NATIVE"], + problemMessage: + r"""Argument to 'Native.addressOf' must be annotated with @Native.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiCompoundImplementsFinalizable = const Template( - "FfiCompoundImplementsFinalizable", - problemMessageTemplate: - r"""#string '#name' can't implement Finalizable.""", - correctionMessageTemplate: - r"""Try removing the implements clause from '#name'.""", - withArguments: _withArgumentsFfiCompoundImplementsFinalizable); + "FfiCompoundImplementsFinalizable", + problemMessageTemplate: r"""#string '#name' can't implement Finalizable.""", + correctionMessageTemplate: + r"""Try removing the implements clause from '#name'.""", + withArguments: _withArgumentsFfiCompoundImplementsFinalizable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5029,11 +5973,15 @@ Message _withArgumentsFfiCompoundImplementsFinalizable( if (string.isEmpty) throw 'No string provided'; if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiCompoundImplementsFinalizable, - problemMessage: """${string} '${name}' can't implement Finalizable.""", - correctionMessage: - """Try removing the implements clause from '${name}'.""", - arguments: {'string': string, 'name': name}); + return new Message( + codeFfiCompoundImplementsFinalizable, + problemMessage: """${string} '${name}' can't implement Finalizable.""", + correctionMessage: """Try removing the implements clause from '${name}'.""", + arguments: { + 'string': string, + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5041,30 +5989,31 @@ const Code codeFfiCreateOfStructOrUnion = messageFfiCreateOfStructOrUnion; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiCreateOfStructOrUnion = const MessageCode( - "FfiCreateOfStructOrUnion", - problemMessage: - r"""Subclasses of 'Struct' and 'Union' are backed by native memory, and can't be instantiated by a generative constructor. Try allocating it via allocation, or load from a 'Pointer'."""); + "FfiCreateOfStructOrUnion", + problemMessage: + r"""Subclasses of 'Struct' and 'Union' are backed by native memory, and can't be instantiated by a generative constructor. Try allocating it via allocation, or load from a 'Pointer'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiDefaultAssetDuplicate = messageFfiDefaultAssetDuplicate; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiDefaultAssetDuplicate = const MessageCode( - "FfiDefaultAssetDuplicate", - analyzerCodes: ["FFI_NATIVE_INVALID_DUPLICATE_DEFAULT_ASSET"], - problemMessage: - r"""There may be at most one @DefaultAsset annotation on a library."""); + "FfiDefaultAssetDuplicate", + analyzerCodes: ["FFI_NATIVE_INVALID_DUPLICATE_DEFAULT_ASSET"], + problemMessage: + r"""There may be at most one @DefaultAsset annotation on a library.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - name)> templateFfiEmptyStruct = const Template< - Message Function(String string, String name)>("FfiEmptyStruct", - problemMessageTemplate: - r"""#string '#name' is empty. Empty structs and unions are undefined behavior.""", - withArguments: _withArgumentsFfiEmptyStruct); +const Template + templateFfiEmptyStruct = + const Template( + "FfiEmptyStruct", + problemMessageTemplate: + r"""#string '#name' is empty. Empty structs and unions are undefined behavior.""", + withArguments: _withArgumentsFfiEmptyStruct, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiEmptyStruct = @@ -5077,10 +6026,15 @@ Message _withArgumentsFfiEmptyStruct(String string, String name) { if (string.isEmpty) throw 'No string provided'; if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiEmptyStruct, - problemMessage: - """${string} '${name}' is empty. Empty structs and unions are undefined behavior.""", - arguments: {'string': string, 'name': name}); + return new Message( + codeFfiEmptyStruct, + problemMessage: + """${string} '${name}' is empty. Empty structs and unions are undefined behavior.""", + arguments: { + 'string': string, + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5088,22 +6042,26 @@ const Code codeFfiExceptionalReturnNull = messageFfiExceptionalReturnNull; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiExceptionalReturnNull = const MessageCode( - "FfiExceptionalReturnNull", - problemMessage: r"""Exceptional return value must not be null."""); + "FfiExceptionalReturnNull", + problemMessage: r"""Exceptional return value must not be null.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiExpectedConstant = messageFfiExpectedConstant; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiExpectedConstant = const MessageCode( - "FfiExpectedConstant", - problemMessage: r"""Exceptional return value must be a constant."""); + "FfiExpectedConstant", + problemMessage: r"""Exceptional return value must be a constant.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiExpectedConstantArg = - const Template("FfiExpectedConstantArg", - problemMessageTemplate: r"""Argument '#name' must be a constant.""", - withArguments: _withArgumentsFfiExpectedConstantArg); + const Template( + "FfiExpectedConstantArg", + problemMessageTemplate: r"""Argument '#name' must be a constant.""", + withArguments: _withArgumentsFfiExpectedConstantArg, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiExpectedConstantArg = @@ -5115,19 +6073,24 @@ const Code codeFfiExpectedConstantArg = Message _withArgumentsFfiExpectedConstantArg(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiExpectedConstantArg, - problemMessage: """Argument '${name}' must be a constant.""", - arguments: {'name': name}); + return new Message( + codeFfiExpectedConstantArg, + problemMessage: """Argument '${name}' must be a constant.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiExtendsOrImplementsSealedClass = const Template( - "FfiExtendsOrImplementsSealedClass", - problemMessageTemplate: - r"""Class '#name' cannot be extended or implemented.""", - withArguments: _withArgumentsFfiExtendsOrImplementsSealedClass); + "FfiExtendsOrImplementsSealedClass", + problemMessageTemplate: + r"""Class '#name' cannot be extended or implemented.""", + withArguments: _withArgumentsFfiExtendsOrImplementsSealedClass, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5140,18 +6103,23 @@ const Code Message _withArgumentsFfiExtendsOrImplementsSealedClass(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiExtendsOrImplementsSealedClass, - problemMessage: """Class '${name}' cannot be extended or implemented.""", - arguments: {'name': name}); + return new Message( + codeFfiExtendsOrImplementsSealedClass, + problemMessage: """Class '${name}' cannot be extended or implemented.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> templateFfiFieldAnnotation = const Template< - Message Function(String name)>("FfiFieldAnnotation", - problemMessageTemplate: - r"""Field '#name' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.""", - withArguments: _withArgumentsFfiFieldAnnotation); +const Template templateFfiFieldAnnotation = + const Template( + "FfiFieldAnnotation", + problemMessageTemplate: + r"""Field '#name' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.""", + withArguments: _withArgumentsFfiFieldAnnotation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiFieldAnnotation = @@ -5163,22 +6131,26 @@ const Code codeFfiFieldAnnotation = Message _withArgumentsFfiFieldAnnotation(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiFieldAnnotation, - problemMessage: - """Field '${name}' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.""", - arguments: {'name': name}); + return new Message( + codeFfiFieldAnnotation, + problemMessage: + """Field '${name}' requires exactly one annotation to declare its native type, which cannot be Void. dart:ffi Structs and Unions cannot have regular Dart fields.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(String string, String name, List _names)> templateFfiFieldCyclic = const Template< - Message Function(String string, String name, List _names)>( - "FfiFieldCyclic", - problemMessageTemplate: - r"""#string '#name' contains itself. Cycle elements: + Message Function(String string, String name, List _names)>( + "FfiFieldCyclic", + problemMessageTemplate: r"""#string '#name' contains itself. Cycle elements: #names""", - withArguments: _withArgumentsFfiFieldCyclic); + withArguments: _withArgumentsFfiFieldCyclic, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code _names)> @@ -5195,20 +6167,28 @@ Message _withArgumentsFfiFieldCyclic( name = demangleMixinApplicationName(name); if (_names.isEmpty) throw 'No names provided'; String names = itemizeNames(_names); - return new Message(codeFfiFieldCyclic, - problemMessage: """${string} '${name}' contains itself. Cycle elements: -${names}""", arguments: {'string': string, 'name': name, 'names': _names}); + return new Message( + codeFfiFieldCyclic, + problemMessage: """${string} '${name}' contains itself. Cycle elements: +${names}""", + arguments: { + 'string': string, + 'name': name, + 'names': _names, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> templateFfiFieldInitializer = const Template< - Message Function(String name)>("FfiFieldInitializer", - problemMessageTemplate: - r"""Field '#name' is a dart:ffi Pointer to a struct field and therefore cannot be initialized before constructor execution.""", - correctionMessageTemplate: - r"""Mark the field as external to avoid having to initialize it.""", - withArguments: _withArgumentsFfiFieldInitializer); +const Template templateFfiFieldInitializer = + const Template( + "FfiFieldInitializer", + problemMessageTemplate: + r"""Field '#name' is a dart:ffi Pointer to a struct field and therefore cannot be initialized before constructor execution.""", + correctionMessageTemplate: + r"""Mark the field as external to avoid having to initialize it.""", + withArguments: _withArgumentsFfiFieldInitializer, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiFieldInitializer = @@ -5220,22 +6200,26 @@ const Code codeFfiFieldInitializer = Message _withArgumentsFfiFieldInitializer(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiFieldInitializer, - problemMessage: - """Field '${name}' is a dart:ffi Pointer to a struct field and therefore cannot be initialized before constructor execution.""", - correctionMessage: """Mark the field as external to avoid having to initialize it.""", - arguments: {'name': name}); + return new Message( + codeFfiFieldInitializer, + problemMessage: + """Field '${name}' is a dart:ffi Pointer to a struct field and therefore cannot be initialized before constructor execution.""", + correctionMessage: + """Mark the field as external to avoid having to initialize it.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFfiFieldNoAnnotation = const Template< - Message Function(String name)>("FfiFieldNoAnnotation", - problemMessageTemplate: - r"""Field '#name' requires no annotation to declare its native type, it is a Pointer which is represented by the same type in Dart and native code.""", - withArguments: _withArgumentsFfiFieldNoAnnotation); +const Template templateFfiFieldNoAnnotation = + const Template( + "FfiFieldNoAnnotation", + problemMessageTemplate: + r"""Field '#name' requires no annotation to declare its native type, it is a Pointer which is represented by the same type in Dart and native code.""", + withArguments: _withArgumentsFfiFieldNoAnnotation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiFieldNoAnnotation = @@ -5247,19 +6231,24 @@ const Code codeFfiFieldNoAnnotation = Message _withArgumentsFfiFieldNoAnnotation(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiFieldNoAnnotation, - problemMessage: - """Field '${name}' requires no annotation to declare its native type, it is a Pointer which is represented by the same type in Dart and native code.""", - arguments: {'name': name}); + return new Message( + codeFfiFieldNoAnnotation, + problemMessage: + """Field '${name}' requires no annotation to declare its native type, it is a Pointer which is represented by the same type in Dart and native code.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> templateFfiFieldNull = const Template< - Message Function(String name)>("FfiFieldNull", - problemMessageTemplate: - r"""Field '#name' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.""", - withArguments: _withArgumentsFfiFieldNull); +const Template templateFfiFieldNull = + const Template( + "FfiFieldNull", + problemMessageTemplate: + r"""Field '#name' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.""", + withArguments: _withArgumentsFfiFieldNull, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiFieldNull = @@ -5271,10 +6260,14 @@ const Code codeFfiFieldNull = Message _withArgumentsFfiFieldNull(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiFieldNull, - problemMessage: - """Field '${name}' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.""", - arguments: {'name': name}); + return new Message( + codeFfiFieldNull, + problemMessage: + """Field '${name}' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5283,8 +6276,9 @@ const Code codeFfiLeafCallMustNotReturnHandle = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiLeafCallMustNotReturnHandle = const MessageCode( - "FfiLeafCallMustNotReturnHandle", - problemMessage: r"""FFI leaf call must not have Handle return type."""); + "FfiLeafCallMustNotReturnHandle", + problemMessage: r"""FFI leaf call must not have Handle return type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiLeafCallMustNotTakeHandle = @@ -5292,8 +6286,9 @@ const Code codeFfiLeafCallMustNotTakeHandle = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiLeafCallMustNotTakeHandle = const MessageCode( - "FfiLeafCallMustNotTakeHandle", - problemMessage: r"""FFI leaf call must not have Handle argument types."""); + "FfiLeafCallMustNotTakeHandle", + problemMessage: r"""FFI leaf call must not have Handle argument types.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiNativeDuplicateAnnotations = @@ -5301,10 +6296,11 @@ const Code codeFfiNativeDuplicateAnnotations = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiNativeDuplicateAnnotations = const MessageCode( - "FfiNativeDuplicateAnnotations", - analyzerCodes: ["FFI_NATIVE_INVALID_MULTIPLE_ANNOTATIONS"], - problemMessage: - r"""Native functions and fields must not have more than @Native annotation."""); + "FfiNativeDuplicateAnnotations", + analyzerCodes: ["FFI_NATIVE_INVALID_MULTIPLE_ANNOTATIONS"], + problemMessage: + r"""Native functions and fields must not have more than @Native annotation.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiNativeFieldMissingType = @@ -5312,10 +6308,11 @@ const Code codeFfiNativeFieldMissingType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiNativeFieldMissingType = const MessageCode( - "FfiNativeFieldMissingType", - analyzerCodes: ["NATIVE_FIELD_MISSING_TYPE"], - problemMessage: - r"""The native type of this field could not be inferred and must be specified in the annotation."""); + "FfiNativeFieldMissingType", + analyzerCodes: ["NATIVE_FIELD_MISSING_TYPE"], + problemMessage: + r"""The native type of this field could not be inferred and must be specified in the annotation.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiNativeFieldMustBeStatic = @@ -5323,28 +6320,30 @@ const Code codeFfiNativeFieldMustBeStatic = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiNativeFieldMustBeStatic = const MessageCode( - "FfiNativeFieldMustBeStatic", - analyzerCodes: ["NATIVE_FIELD_NOT_STATIC"], - problemMessage: r"""Native fields must be static."""); + "FfiNativeFieldMustBeStatic", + analyzerCodes: ["NATIVE_FIELD_NOT_STATIC"], + problemMessage: r"""Native fields must be static.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiNativeFieldType = messageFfiNativeFieldType; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiNativeFieldType = const MessageCode( - "FfiNativeFieldType", - analyzerCodes: ["NATIVE_FIELD_INVALID_TYPE"], - problemMessage: - r"""Unsupported type for native fields. Native fields only support pointers, compounds and numeric types."""); + "FfiNativeFieldType", + analyzerCodes: ["NATIVE_FIELD_INVALID_TYPE"], + problemMessage: + r"""Unsupported type for native fields. Native fields only support pointers, compounds and numeric types.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiNativeMustBeExternal = messageFfiNativeMustBeExternal; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiNativeMustBeExternal = const MessageCode( - "FfiNativeMustBeExternal", - problemMessage: - r"""Native functions and fields must be marked external."""); + "FfiNativeMustBeExternal", + problemMessage: r"""Native functions and fields must be marked external.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiNativeOnlyNativeFieldWrapperClassCanBePointer = @@ -5352,18 +6351,21 @@ const Code codeFfiNativeOnlyNativeFieldWrapperClassCanBePointer = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiNativeOnlyNativeFieldWrapperClassCanBePointer = - const MessageCode("FfiNativeOnlyNativeFieldWrapperClassCanBePointer", - problemMessage: - r"""Only classes extending NativeFieldWrapperClass1 can be passed as Pointer."""); + const MessageCode( + "FfiNativeOnlyNativeFieldWrapperClassCanBePointer", + problemMessage: + r"""Only classes extending NativeFieldWrapperClass1 can be passed as Pointer.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiNativeUnexpectedNumberOfParameters = const Template( - "FfiNativeUnexpectedNumberOfParameters", - problemMessageTemplate: - r"""Unexpected number of Native annotation parameters. Expected #count but has #count2.""", - withArguments: _withArgumentsFfiNativeUnexpectedNumberOfParameters); + "FfiNativeUnexpectedNumberOfParameters", + problemMessageTemplate: + r"""Unexpected number of Native annotation parameters. Expected #count but has #count2.""", + withArguments: _withArgumentsFfiNativeUnexpectedNumberOfParameters, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5375,21 +6377,27 @@ const Code // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFfiNativeUnexpectedNumberOfParameters( int count, int count2) { - return new Message(codeFfiNativeUnexpectedNumberOfParameters, - problemMessage: - """Unexpected number of Native annotation parameters. Expected ${count} but has ${count2}.""", - arguments: {'count': count, 'count2': count2}); + return new Message( + codeFfiNativeUnexpectedNumberOfParameters, + problemMessage: + """Unexpected number of Native annotation parameters. Expected ${count} but has ${count2}.""", + arguments: { + 'count': count, + 'count2': count2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiNativeUnexpectedNumberOfParametersWithReceiver = const Template( - "FfiNativeUnexpectedNumberOfParametersWithReceiver", - problemMessageTemplate: - r"""Unexpected number of Native annotation parameters. Expected #count but has #count2. Native instance method annotation must have receiver as first argument.""", - withArguments: - _withArgumentsFfiNativeUnexpectedNumberOfParametersWithReceiver); + "FfiNativeUnexpectedNumberOfParametersWithReceiver", + problemMessageTemplate: + r"""Unexpected number of Native annotation parameters. Expected #count but has #count2. Native instance method annotation must have receiver as first argument.""", + withArguments: + _withArgumentsFfiNativeUnexpectedNumberOfParametersWithReceiver, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5401,19 +6409,25 @@ const Code // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFfiNativeUnexpectedNumberOfParametersWithReceiver( int count, int count2) { - return new Message(codeFfiNativeUnexpectedNumberOfParametersWithReceiver, - problemMessage: - """Unexpected number of Native annotation parameters. Expected ${count} but has ${count2}. Native instance method annotation must have receiver as first argument.""", - arguments: {'count': count, 'count2': count2}); + return new Message( + codeFfiNativeUnexpectedNumberOfParametersWithReceiver, + problemMessage: + """Unexpected number of Native annotation parameters. Expected ${count} but has ${count2}. Native instance method annotation must have receiver as first argument.""", + arguments: { + 'count': count, + 'count2': count2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> templateFfiNotStatic = const Template< - Message Function(String name)>("FfiNotStatic", - problemMessageTemplate: - r"""#name expects a static function as parameter. dart:ffi only supports calling static Dart functions from native code. Closures and tear-offs are not supported because they can capture context.""", - withArguments: _withArgumentsFfiNotStatic); +const Template templateFfiNotStatic = + const Template( + "FfiNotStatic", + problemMessageTemplate: + r"""#name expects a static function as parameter. dart:ffi only supports calling static Dart functions from native code. Closures and tear-offs are not supported because they can capture context.""", + withArguments: _withArgumentsFfiNotStatic, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiNotStatic = @@ -5425,18 +6439,24 @@ const Code codeFfiNotStatic = Message _withArgumentsFfiNotStatic(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiNotStatic, - problemMessage: - """${name} expects a static function as parameter. dart:ffi only supports calling static Dart functions from native code. Closures and tear-offs are not supported because they can capture context.""", - arguments: {'name': name}); + return new Message( + codeFfiNotStatic, + problemMessage: + """${name} expects a static function as parameter. dart:ffi only supports calling static Dart functions from native code. Closures and tear-offs are not supported because they can capture context.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiPackedAnnotation = - const Template("FfiPackedAnnotation", - problemMessageTemplate: - r"""Struct '#name' must have at most one 'Packed' annotation.""", - withArguments: _withArgumentsFfiPackedAnnotation); + const Template( + "FfiPackedAnnotation", + problemMessageTemplate: + r"""Struct '#name' must have at most one 'Packed' annotation.""", + withArguments: _withArgumentsFfiPackedAnnotation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiPackedAnnotation = @@ -5448,10 +6468,14 @@ const Code codeFfiPackedAnnotation = Message _withArgumentsFfiPackedAnnotation(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiPackedAnnotation, - problemMessage: - """Struct '${name}' must have at most one 'Packed' annotation.""", - arguments: {'name': name}); + return new Message( + codeFfiPackedAnnotation, + problemMessage: + """Struct '${name}' must have at most one 'Packed' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5460,16 +6484,18 @@ const Code codeFfiPackedAnnotationAlignment = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFfiPackedAnnotationAlignment = const MessageCode( - "FfiPackedAnnotationAlignment", - problemMessage: - r"""Only packing to 1, 2, 4, 8, and 16 bytes is supported."""); + "FfiPackedAnnotationAlignment", + problemMessage: r"""Only packing to 1, 2, 4, 8, and 16 bytes is supported.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiSizeAnnotation = - const Template("FfiSizeAnnotation", - problemMessageTemplate: - r"""Field '#name' must have exactly one 'Array' annotation.""", - withArguments: _withArgumentsFfiSizeAnnotation); + const Template( + "FfiSizeAnnotation", + problemMessageTemplate: + r"""Field '#name' must have exactly one 'Array' annotation.""", + withArguments: _withArgumentsFfiSizeAnnotation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiSizeAnnotation = @@ -5481,21 +6507,25 @@ const Code codeFfiSizeAnnotation = Message _withArgumentsFfiSizeAnnotation(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiSizeAnnotation, - problemMessage: - """Field '${name}' must have exactly one 'Array' annotation.""", - arguments: {'name': name}); + return new Message( + codeFfiSizeAnnotation, + problemMessage: + """Field '${name}' must have exactly one 'Array' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFfiSizeAnnotationDimensions = const Template< - Message Function(String name)>("FfiSizeAnnotationDimensions", - problemMessageTemplate: - r"""Field '#name' must have an 'Array' annotation that matches the dimensions.""", - withArguments: _withArgumentsFfiSizeAnnotationDimensions); +const Template + templateFfiSizeAnnotationDimensions = + const Template( + "FfiSizeAnnotationDimensions", + problemMessageTemplate: + r"""Field '#name' must have an 'Array' annotation that matches the dimensions.""", + withArguments: _withArgumentsFfiSizeAnnotationDimensions, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiSizeAnnotationDimensions = @@ -5507,19 +6537,24 @@ const Code codeFfiSizeAnnotationDimensions = Message _withArgumentsFfiSizeAnnotationDimensions(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiSizeAnnotationDimensions, - problemMessage: - """Field '${name}' must have an 'Array' annotation that matches the dimensions.""", - arguments: {'name': name}); + return new Message( + codeFfiSizeAnnotationDimensions, + problemMessage: + """Field '${name}' must have an 'Array' annotation that matches the dimensions.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiStructGeneric = const Template( - "FfiStructGeneric", - problemMessageTemplate: r"""#string '#name' should not be generic.""", - withArguments: _withArgumentsFfiStructGeneric); + "FfiStructGeneric", + problemMessageTemplate: r"""#string '#name' should not be generic.""", + withArguments: _withArgumentsFfiStructGeneric, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFfiStructGeneric = @@ -5532,62 +6567,76 @@ Message _withArgumentsFfiStructGeneric(String string, String name) { if (string.isEmpty) throw 'No string provided'; if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFfiStructGeneric, - problemMessage: """${string} '${name}' should not be generic.""", - arguments: {'string': string, 'name': name}); + return new Message( + codeFfiStructGeneric, + problemMessage: """${string} '${name}' should not be generic.""", + arguments: { + 'string': string, + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFieldAlreadyInitializedAtDeclaration = const Template< - Message Function(String name)>("FieldAlreadyInitializedAtDeclaration", - problemMessageTemplate: - r"""'#name' is a final instance variable that was initialized at the declaration.""", - withArguments: _withArgumentsFieldAlreadyInitializedAtDeclaration); +const Template + templateFieldAlreadyInitializedAtDeclaration = + const Template( + "FieldAlreadyInitializedAtDeclaration", + problemMessageTemplate: + r"""'#name' is a final instance variable that was initialized at the declaration.""", + withArguments: _withArgumentsFieldAlreadyInitializedAtDeclaration, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFieldAlreadyInitializedAtDeclaration = const Code( - "FieldAlreadyInitializedAtDeclaration", - analyzerCodes: [ - "FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION" - ]); + "FieldAlreadyInitializedAtDeclaration", + analyzerCodes: ["FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFieldAlreadyInitializedAtDeclaration(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFieldAlreadyInitializedAtDeclaration, - problemMessage: - """'${name}' is a final instance variable that was initialized at the declaration.""", - arguments: {'name': name}); + return new Message( + codeFieldAlreadyInitializedAtDeclaration, + problemMessage: + """'${name}' is a final instance variable that was initialized at the declaration.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFieldAlreadyInitializedAtDeclarationCause = const Template( - "FieldAlreadyInitializedAtDeclarationCause", - problemMessageTemplate: r"""'#name' was initialized here.""", - withArguments: _withArgumentsFieldAlreadyInitializedAtDeclarationCause); + "FieldAlreadyInitializedAtDeclarationCause", + problemMessageTemplate: r"""'#name' was initialized here.""", + withArguments: _withArgumentsFieldAlreadyInitializedAtDeclarationCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFieldAlreadyInitializedAtDeclarationCause = const Code( - "FieldAlreadyInitializedAtDeclarationCause", - severity: Severity.context); + "FieldAlreadyInitializedAtDeclarationCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFieldAlreadyInitializedAtDeclarationCause(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFieldAlreadyInitializedAtDeclarationCause, - problemMessage: """'${name}' was initialized here.""", - arguments: {'name': name}); + return new Message( + codeFieldAlreadyInitializedAtDeclarationCause, + problemMessage: """'${name}' was initialized here.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5595,13 +6644,14 @@ const Code codeFieldInitializedOutsideDeclaringClass = messageFieldInitializedOutsideDeclaringClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFieldInitializedOutsideDeclaringClass = const MessageCode( - "FieldInitializedOutsideDeclaringClass", - index: 88, - problemMessage: - r"""A field can only be initialized in its declaring class""", - correctionMessage: - r"""Try passing a value into the superclass constructor, or moving the initialization into the constructor body."""); +const MessageCode messageFieldInitializedOutsideDeclaringClass = + const MessageCode( + "FieldInitializedOutsideDeclaringClass", + index: 88, + problemMessage: r"""A field can only be initialized in its declaring class""", + correctionMessage: + r"""Try passing a value into the superclass constructor, or moving the initialization into the constructor body.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFieldInitializerOutsideConstructor = @@ -5609,21 +6659,23 @@ const Code codeFieldInitializerOutsideConstructor = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFieldInitializerOutsideConstructor = const MessageCode( - "FieldInitializerOutsideConstructor", - index: 79, - problemMessage: - r"""Field formal parameters can only be used in a constructor.""", - correctionMessage: r"""Try removing 'this.'."""); + "FieldInitializerOutsideConstructor", + index: 79, + problemMessage: + r"""Field formal parameters can only be used in a constructor.""", + correctionMessage: r"""Try removing 'this.'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFieldNotPromotedBecauseConflictingField = const Template( - "FieldNotPromotedBecauseConflictingField", - problemMessageTemplate: - r"""'#name' couldn't be promoted because there is a conflicting non-promotable field in class '#name2'.""", - correctionMessageTemplate: r"""See #string""", - withArguments: _withArgumentsFieldNotPromotedBecauseConflictingField); + "FieldNotPromotedBecauseConflictingField", + problemMessageTemplate: + r"""'#name' couldn't be promoted because there is a conflicting non-promotable field in class '#name2'.""", + correctionMessageTemplate: r"""See #string""", + withArguments: _withArgumentsFieldNotPromotedBecauseConflictingField, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5640,22 +6692,29 @@ Message _withArgumentsFieldNotPromotedBecauseConflictingField( if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); if (string.isEmpty) throw 'No string provided'; - return new Message(codeFieldNotPromotedBecauseConflictingField, - problemMessage: - """'${name}' couldn't be promoted because there is a conflicting non-promotable field in class '${name2}'.""", - correctionMessage: """See ${string}""", - arguments: {'name': name, 'name2': name2, 'string': string}); + return new Message( + codeFieldNotPromotedBecauseConflictingField, + problemMessage: + """'${name}' couldn't be promoted because there is a conflicting non-promotable field in class '${name2}'.""", + correctionMessage: """See ${string}""", + arguments: { + 'name': name, + 'name2': name2, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFieldNotPromotedBecauseConflictingGetter = const Template( - "FieldNotPromotedBecauseConflictingGetter", - problemMessageTemplate: - r"""'#name' couldn't be promoted because there is a conflicting getter in class '#name2'.""", - correctionMessageTemplate: r"""See #string""", - withArguments: _withArgumentsFieldNotPromotedBecauseConflictingGetter); + "FieldNotPromotedBecauseConflictingGetter", + problemMessageTemplate: + r"""'#name' couldn't be promoted because there is a conflicting getter in class '#name2'.""", + correctionMessageTemplate: r"""See #string""", + withArguments: _withArgumentsFieldNotPromotedBecauseConflictingGetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5672,23 +6731,29 @@ Message _withArgumentsFieldNotPromotedBecauseConflictingGetter( if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); if (string.isEmpty) throw 'No string provided'; - return new Message(codeFieldNotPromotedBecauseConflictingGetter, - problemMessage: - """'${name}' couldn't be promoted because there is a conflicting getter in class '${name2}'.""", - correctionMessage: """See ${string}""", - arguments: {'name': name, 'name2': name2, 'string': string}); + return new Message( + codeFieldNotPromotedBecauseConflictingGetter, + problemMessage: + """'${name}' couldn't be promoted because there is a conflicting getter in class '${name2}'.""", + correctionMessage: """See ${string}""", + arguments: { + 'name': name, + 'name2': name2, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFieldNotPromotedBecauseConflictingNsmForwarder = const Template( - "FieldNotPromotedBecauseConflictingNsmForwarder", - problemMessageTemplate: - r"""'#name' couldn't be promoted because there is a conflicting noSuchMethod forwarder in class '#name2'.""", - correctionMessageTemplate: r"""See #string""", - withArguments: - _withArgumentsFieldNotPromotedBecauseConflictingNsmForwarder); + "FieldNotPromotedBecauseConflictingNsmForwarder", + problemMessageTemplate: + r"""'#name' couldn't be promoted because there is a conflicting noSuchMethod forwarder in class '#name2'.""", + correctionMessageTemplate: r"""See #string""", + withArguments: _withArgumentsFieldNotPromotedBecauseConflictingNsmForwarder, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5705,25 +6770,29 @@ Message _withArgumentsFieldNotPromotedBecauseConflictingNsmForwarder( if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); if (string.isEmpty) throw 'No string provided'; - return new Message(codeFieldNotPromotedBecauseConflictingNsmForwarder, - problemMessage: - """'${name}' couldn't be promoted because there is a conflicting noSuchMethod forwarder in class '${name2}'.""", - correctionMessage: """See ${string}""", - arguments: {'name': name, 'name2': name2, 'string': string}); + return new Message( + codeFieldNotPromotedBecauseConflictingNsmForwarder, + problemMessage: + """'${name}' couldn't be promoted because there is a conflicting noSuchMethod forwarder in class '${name2}'.""", + correctionMessage: """See ${string}""", + arguments: { + 'name': name, + 'name2': name2, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - string)> templateFieldNotPromotedBecauseExternal = const Template< - Message Function(String name, String string)>( - "FieldNotPromotedBecauseExternal", - problemMessageTemplate: - r"""'#name' refers to an external field so it couldn't be promoted.""", - correctionMessageTemplate: r"""See #string""", - withArguments: _withArgumentsFieldNotPromotedBecauseExternal); +const Template + templateFieldNotPromotedBecauseExternal = + const Template( + "FieldNotPromotedBecauseExternal", + problemMessageTemplate: + r"""'#name' refers to an external field so it couldn't be promoted.""", + correctionMessageTemplate: r"""See #string""", + withArguments: _withArgumentsFieldNotPromotedBecauseExternal, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5738,25 +6807,28 @@ Message _withArgumentsFieldNotPromotedBecauseExternal( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeFieldNotPromotedBecauseExternal, - problemMessage: - """'${name}' refers to an external field so it couldn't be promoted.""", - correctionMessage: """See ${string}""", - arguments: {'name': name, 'string': string}); + return new Message( + codeFieldNotPromotedBecauseExternal, + problemMessage: + """'${name}' refers to an external field so it couldn't be promoted.""", + correctionMessage: """See ${string}""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - string)> templateFieldNotPromotedBecauseNotEnabled = const Template< - Message Function(String name, String string)>( - "FieldNotPromotedBecauseNotEnabled", - problemMessageTemplate: - r"""'#name' couldn't be promoted because field promotion is only available in Dart 3.2 and above.""", - correctionMessageTemplate: r"""See #string""", - withArguments: _withArgumentsFieldNotPromotedBecauseNotEnabled); +const Template + templateFieldNotPromotedBecauseNotEnabled = + const Template( + "FieldNotPromotedBecauseNotEnabled", + problemMessageTemplate: + r"""'#name' couldn't be promoted because field promotion is only available in Dart 3.2 and above.""", + correctionMessageTemplate: r"""See #string""", + withArguments: _withArgumentsFieldNotPromotedBecauseNotEnabled, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5771,22 +6843,28 @@ Message _withArgumentsFieldNotPromotedBecauseNotEnabled( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeFieldNotPromotedBecauseNotEnabled, - problemMessage: - """'${name}' couldn't be promoted because field promotion is only available in Dart 3.2 and above.""", - correctionMessage: """See ${string}""", - arguments: {'name': name, 'string': string}); + return new Message( + codeFieldNotPromotedBecauseNotEnabled, + problemMessage: + """'${name}' couldn't be promoted because field promotion is only available in Dart 3.2 and above.""", + correctionMessage: """See ${string}""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFieldNotPromotedBecauseNotField = const Template( - "FieldNotPromotedBecauseNotField", - problemMessageTemplate: - r"""'#name' refers to a getter so it couldn't be promoted.""", - correctionMessageTemplate: r"""See #string""", - withArguments: _withArgumentsFieldNotPromotedBecauseNotField); + "FieldNotPromotedBecauseNotField", + problemMessageTemplate: + r"""'#name' refers to a getter so it couldn't be promoted.""", + correctionMessageTemplate: r"""See #string""", + withArguments: _withArgumentsFieldNotPromotedBecauseNotField, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5801,25 +6879,28 @@ Message _withArgumentsFieldNotPromotedBecauseNotField( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeFieldNotPromotedBecauseNotField, - problemMessage: - """'${name}' refers to a getter so it couldn't be promoted.""", - correctionMessage: """See ${string}""", - arguments: {'name': name, 'string': string}); + return new Message( + codeFieldNotPromotedBecauseNotField, + problemMessage: + """'${name}' refers to a getter so it couldn't be promoted.""", + correctionMessage: """See ${string}""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - string)> templateFieldNotPromotedBecauseNotFinal = const Template< - Message Function(String name, String string)>( - "FieldNotPromotedBecauseNotFinal", - problemMessageTemplate: - r"""'#name' refers to a non-final field so it couldn't be promoted.""", - correctionMessageTemplate: r"""See #string""", - withArguments: _withArgumentsFieldNotPromotedBecauseNotFinal); +const Template + templateFieldNotPromotedBecauseNotFinal = + const Template( + "FieldNotPromotedBecauseNotFinal", + problemMessageTemplate: + r"""'#name' refers to a non-final field so it couldn't be promoted.""", + correctionMessageTemplate: r"""See #string""", + withArguments: _withArgumentsFieldNotPromotedBecauseNotFinal, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5834,25 +6915,28 @@ Message _withArgumentsFieldNotPromotedBecauseNotFinal( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeFieldNotPromotedBecauseNotFinal, - problemMessage: - """'${name}' refers to a non-final field so it couldn't be promoted.""", - correctionMessage: """See ${string}""", - arguments: {'name': name, 'string': string}); + return new Message( + codeFieldNotPromotedBecauseNotFinal, + problemMessage: + """'${name}' refers to a non-final field so it couldn't be promoted.""", + correctionMessage: """See ${string}""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - string)> templateFieldNotPromotedBecauseNotPrivate = const Template< - Message Function(String name, String string)>( - "FieldNotPromotedBecauseNotPrivate", - problemMessageTemplate: - r"""'#name' refers to a public property so it couldn't be promoted.""", - correctionMessageTemplate: r"""See #string""", - withArguments: _withArgumentsFieldNotPromotedBecauseNotPrivate); +const Template + templateFieldNotPromotedBecauseNotPrivate = + const Template( + "FieldNotPromotedBecauseNotPrivate", + problemMessageTemplate: + r"""'#name' refers to a public property so it couldn't be promoted.""", + correctionMessageTemplate: r"""See #string""", + withArguments: _withArgumentsFieldNotPromotedBecauseNotPrivate, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5867,11 +6951,16 @@ Message _withArgumentsFieldNotPromotedBecauseNotPrivate( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeFieldNotPromotedBecauseNotPrivate, - problemMessage: - """'${name}' refers to a public property so it couldn't be promoted.""", - correctionMessage: """See ${string}""", - arguments: {'name': name, 'string': string}); + return new Message( + codeFieldNotPromotedBecauseNotPrivate, + problemMessage: + """'${name}' refers to a public property so it couldn't be promoted.""", + correctionMessage: """See ${string}""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5879,281 +6968,334 @@ const Code codeFinalAndCovariant = messageFinalAndCovariant; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFinalAndCovariant = const MessageCode( - "FinalAndCovariant", - index: 80, - problemMessage: - r"""Members can't be declared to be both 'final' and 'covariant'.""", - correctionMessage: - r"""Try removing either the 'final' or 'covariant' keyword."""); + "FinalAndCovariant", + index: 80, + problemMessage: + r"""Members can't be declared to be both 'final' and 'covariant'.""", + correctionMessage: + r"""Try removing either the 'final' or 'covariant' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalAndCovariantLateWithInitializer = messageFinalAndCovariantLateWithInitializer; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFinalAndCovariantLateWithInitializer = const MessageCode( - "FinalAndCovariantLateWithInitializer", - index: 101, - problemMessage: - r"""Members marked 'late' with an initializer can't be declared to be both 'final' and 'covariant'.""", - correctionMessage: - r"""Try removing either the 'final' or 'covariant' keyword, or removing the initializer."""); +const MessageCode messageFinalAndCovariantLateWithInitializer = + const MessageCode( + "FinalAndCovariantLateWithInitializer", + index: 101, + problemMessage: + r"""Members marked 'late' with an initializer can't be declared to be both 'final' and 'covariant'.""", + correctionMessage: + r"""Try removing either the 'final' or 'covariant' keyword, or removing the initializer.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalAndVar = messageFinalAndVar; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFinalAndVar = const MessageCode("FinalAndVar", - index: 81, - problemMessage: - r"""Members can't be declared to be both 'final' and 'var'.""", - correctionMessage: r"""Try removing the keyword 'var'."""); +const MessageCode messageFinalAndVar = const MessageCode( + "FinalAndVar", + index: 81, + problemMessage: + r"""Members can't be declared to be both 'final' and 'var'.""", + correctionMessage: r"""Try removing the keyword 'var'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFinalClassExtendedOutsideOfLibrary = const Template< - Message Function(String name)>("FinalClassExtendedOutsideOfLibrary", - problemMessageTemplate: - r"""The class '#name' can't be extended outside of its library because it's a final class.""", - withArguments: _withArgumentsFinalClassExtendedOutsideOfLibrary); +const Template + templateFinalClassExtendedOutsideOfLibrary = + const Template( + "FinalClassExtendedOutsideOfLibrary", + problemMessageTemplate: + r"""The class '#name' can't be extended outside of its library because it's a final class.""", + withArguments: _withArgumentsFinalClassExtendedOutsideOfLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalClassExtendedOutsideOfLibrary = const Code( - "FinalClassExtendedOutsideOfLibrary", - analyzerCodes: ["FINAL_CLASS_EXTENDED_OUTSIDE_OF_LIBRARY"]); + "FinalClassExtendedOutsideOfLibrary", + analyzerCodes: ["FINAL_CLASS_EXTENDED_OUTSIDE_OF_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFinalClassExtendedOutsideOfLibrary(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFinalClassExtendedOutsideOfLibrary, - problemMessage: - """The class '${name}' can't be extended outside of its library because it's a final class.""", - arguments: {'name': name}); + return new Message( + codeFinalClassExtendedOutsideOfLibrary, + problemMessage: + """The class '${name}' can't be extended outside of its library because it's a final class.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFinalClassImplementedOutsideOfLibrary = const Template< - Message Function(String name)>("FinalClassImplementedOutsideOfLibrary", - problemMessageTemplate: - r"""The class '#name' can't be implemented outside of its library because it's a final class.""", - withArguments: _withArgumentsFinalClassImplementedOutsideOfLibrary); +const Template + templateFinalClassImplementedOutsideOfLibrary = + const Template( + "FinalClassImplementedOutsideOfLibrary", + problemMessageTemplate: + r"""The class '#name' can't be implemented outside of its library because it's a final class.""", + withArguments: _withArgumentsFinalClassImplementedOutsideOfLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalClassImplementedOutsideOfLibrary = const Code( - "FinalClassImplementedOutsideOfLibrary", - analyzerCodes: ["FINAL_CLASS_IMPLEMENTED_OUTSIDE_OF_LIBRARY"]); + "FinalClassImplementedOutsideOfLibrary", + analyzerCodes: ["FINAL_CLASS_IMPLEMENTED_OUTSIDE_OF_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFinalClassImplementedOutsideOfLibrary(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFinalClassImplementedOutsideOfLibrary, - problemMessage: - """The class '${name}' can't be implemented outside of its library because it's a final class.""", - arguments: {'name': name}); + return new Message( + codeFinalClassImplementedOutsideOfLibrary, + problemMessage: + """The class '${name}' can't be implemented outside of its library because it's a final class.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFinalClassUsedAsMixinConstraintOutsideOfLibrary = const Template( - "FinalClassUsedAsMixinConstraintOutsideOfLibrary", - problemMessageTemplate: - r"""The class '#name' can't be used as a mixin superclass constraint outside of its library because it's a final class.""", - withArguments: - _withArgumentsFinalClassUsedAsMixinConstraintOutsideOfLibrary); + "FinalClassUsedAsMixinConstraintOutsideOfLibrary", + problemMessageTemplate: + r"""The class '#name' can't be used as a mixin superclass constraint outside of its library because it's a final class.""", + withArguments: _withArgumentsFinalClassUsedAsMixinConstraintOutsideOfLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalClassUsedAsMixinConstraintOutsideOfLibrary = const Code( - "FinalClassUsedAsMixinConstraintOutsideOfLibrary", - analyzerCodes: [ - "FINAL_CLASS_USED_AS_MIXIN_CONSTRAINT_OUTSIDE_OF_LIBRARY" - ]); + "FinalClassUsedAsMixinConstraintOutsideOfLibrary", + analyzerCodes: [ + "FINAL_CLASS_USED_AS_MIXIN_CONSTRAINT_OUTSIDE_OF_LIBRARY" + ], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFinalClassUsedAsMixinConstraintOutsideOfLibrary( String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFinalClassUsedAsMixinConstraintOutsideOfLibrary, - problemMessage: - """The class '${name}' can't be used as a mixin superclass constraint outside of its library because it's a final class.""", - arguments: {'name': name}); + return new Message( + codeFinalClassUsedAsMixinConstraintOutsideOfLibrary, + problemMessage: + """The class '${name}' can't be used as a mixin superclass constraint outside of its library because it's a final class.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalEnum = messageFinalEnum; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFinalEnum = const MessageCode("FinalEnum", - index: 156, - problemMessage: r"""Enums can't be declared to be 'final'.""", - correctionMessage: r"""Try removing the keyword 'final'."""); +const MessageCode messageFinalEnum = const MessageCode( + "FinalEnum", + index: 156, + problemMessage: r"""Enums can't be declared to be 'final'.""", + correctionMessage: r"""Try removing the keyword 'final'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFinalFieldNotInitialized = const Template< - Message Function(String name)>("FinalFieldNotInitialized", - problemMessageTemplate: r"""Final field '#name' is not initialized.""", - correctionMessageTemplate: - r"""Try to initialize the field in the declaration or in every constructor.""", - withArguments: _withArgumentsFinalFieldNotInitialized); +const Template templateFinalFieldNotInitialized = + const Template( + "FinalFieldNotInitialized", + problemMessageTemplate: r"""Final field '#name' is not initialized.""", + correctionMessageTemplate: + r"""Try to initialize the field in the declaration or in every constructor.""", + withArguments: _withArgumentsFinalFieldNotInitialized, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalFieldNotInitialized = - const Code("FinalFieldNotInitialized", - analyzerCodes: ["FINAL_NOT_INITIALIZED"]); + const Code( + "FinalFieldNotInitialized", + analyzerCodes: ["FINAL_NOT_INITIALIZED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFinalFieldNotInitialized(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFinalFieldNotInitialized, - problemMessage: """Final field '${name}' is not initialized.""", - correctionMessage: - """Try to initialize the field in the declaration or in every constructor.""", - arguments: {'name': name}); + return new Message( + codeFinalFieldNotInitialized, + problemMessage: """Final field '${name}' is not initialized.""", + correctionMessage: + """Try to initialize the field in the declaration or in every constructor.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFinalFieldNotInitializedByConstructor = const Template< - Message Function(String name)>("FinalFieldNotInitializedByConstructor", - problemMessageTemplate: - r"""Final field '#name' is not initialized by this constructor.""", - correctionMessageTemplate: - r"""Try to initialize the field using an initializing formal or a field initializer.""", - withArguments: _withArgumentsFinalFieldNotInitializedByConstructor); +const Template + templateFinalFieldNotInitializedByConstructor = + const Template( + "FinalFieldNotInitializedByConstructor", + problemMessageTemplate: + r"""Final field '#name' is not initialized by this constructor.""", + correctionMessageTemplate: + r"""Try to initialize the field using an initializing formal or a field initializer.""", + withArguments: _withArgumentsFinalFieldNotInitializedByConstructor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalFieldNotInitializedByConstructor = const Code( - "FinalFieldNotInitializedByConstructor", - analyzerCodes: ["FINAL_NOT_INITIALIZED_CONSTRUCTOR_1"]); + "FinalFieldNotInitializedByConstructor", + analyzerCodes: ["FINAL_NOT_INITIALIZED_CONSTRUCTOR_1"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFinalFieldNotInitializedByConstructor(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFinalFieldNotInitializedByConstructor, - problemMessage: - """Final field '${name}' is not initialized by this constructor.""", - correctionMessage: - """Try to initialize the field using an initializing formal or a field initializer.""", - arguments: {'name': name}); + return new Message( + codeFinalFieldNotInitializedByConstructor, + problemMessage: + """Final field '${name}' is not initialized by this constructor.""", + correctionMessage: + """Try to initialize the field using an initializing formal or a field initializer.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFinalFieldWithoutInitializer = const Template< - Message Function(String name)>("FinalFieldWithoutInitializer", - problemMessageTemplate: - r"""The final variable '#name' must be initialized.""", - correctionMessageTemplate: - r"""Try adding an initializer ('= expression') to the declaration.""", - withArguments: _withArgumentsFinalFieldWithoutInitializer); +const Template + templateFinalFieldWithoutInitializer = + const Template( + "FinalFieldWithoutInitializer", + problemMessageTemplate: + r"""The final variable '#name' must be initialized.""", + correctionMessageTemplate: + r"""Try adding an initializer ('= expression') to the declaration.""", + withArguments: _withArgumentsFinalFieldWithoutInitializer, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalFieldWithoutInitializer = - const Code("FinalFieldWithoutInitializer", - analyzerCodes: ["FINAL_NOT_INITIALIZED"]); + const Code( + "FinalFieldWithoutInitializer", + analyzerCodes: ["FINAL_NOT_INITIALIZED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFinalFieldWithoutInitializer(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFinalFieldWithoutInitializer, - problemMessage: """The final variable '${name}' must be initialized.""", - correctionMessage: - """Try adding an initializer ('= expression') to the declaration.""", - arguments: {'name': name}); + return new Message( + codeFinalFieldWithoutInitializer, + problemMessage: """The final variable '${name}' must be initialized.""", + correctionMessage: + """Try adding an initializer ('= expression') to the declaration.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalMixin = messageFinalMixin; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFinalMixin = const MessageCode("FinalMixin", - index: 146, - problemMessage: r"""A mixin can't be declared 'final'.""", - correctionMessage: r"""Try removing the 'final' keyword."""); +const MessageCode messageFinalMixin = const MessageCode( + "FinalMixin", + index: 146, + problemMessage: r"""A mixin can't be declared 'final'.""", + correctionMessage: r"""Try removing the 'final' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalMixinClass = messageFinalMixinClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageFinalMixinClass = const MessageCode("FinalMixinClass", - index: 142, - problemMessage: r"""A mixin class can't be declared 'final'.""", - correctionMessage: r"""Try removing the 'final' keyword."""); +const MessageCode messageFinalMixinClass = const MessageCode( + "FinalMixinClass", + index: 142, + problemMessage: r"""A mixin class can't be declared 'final'.""", + correctionMessage: r"""Try removing the 'final' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFinalNotAssignedError = const Template< - Message Function(String name)>("FinalNotAssignedError", - problemMessageTemplate: - r"""Final variable '#name' must be assigned before it can be used.""", - withArguments: _withArgumentsFinalNotAssignedError); +const Template templateFinalNotAssignedError = + const Template( + "FinalNotAssignedError", + problemMessageTemplate: + r"""Final variable '#name' must be assigned before it can be used.""", + withArguments: _withArgumentsFinalNotAssignedError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalNotAssignedError = - const Code("FinalNotAssignedError", - analyzerCodes: ["READ_POTENTIALLY_UNASSIGNED_FINAL"]); + const Code( + "FinalNotAssignedError", + analyzerCodes: ["READ_POTENTIALLY_UNASSIGNED_FINAL"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFinalNotAssignedError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFinalNotAssignedError, - problemMessage: - """Final variable '${name}' must be assigned before it can be used.""", - arguments: {'name': name}); + return new Message( + codeFinalNotAssignedError, + problemMessage: + """Final variable '${name}' must be assigned before it can be used.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateFinalPossiblyAssignedError = const Template< - Message Function(String name)>("FinalPossiblyAssignedError", - problemMessageTemplate: - r"""Final variable '#name' might already be assigned at this point.""", - withArguments: _withArgumentsFinalPossiblyAssignedError); +const Template + templateFinalPossiblyAssignedError = + const Template( + "FinalPossiblyAssignedError", + problemMessageTemplate: + r"""Final variable '#name' might already be assigned at this point.""", + withArguments: _withArgumentsFinalPossiblyAssignedError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFinalPossiblyAssignedError = - const Code("FinalPossiblyAssignedError", - analyzerCodes: ["ASSIGNMENT_TO_FINAL_LOCAL"]); + const Code( + "FinalPossiblyAssignedError", + analyzerCodes: ["ASSIGNMENT_TO_FINAL_LOCAL"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsFinalPossiblyAssignedError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeFinalPossiblyAssignedError, - problemMessage: - """Final variable '${name}' might already be assigned at this point.""", - arguments: {'name': name}); + return new Message( + codeFinalPossiblyAssignedError, + problemMessage: + """Final variable '${name}' might already be assigned at this point.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -6162,18 +7304,19 @@ const Code codeForInLoopExactlyOneVariable = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageForInLoopExactlyOneVariable = const MessageCode( - "ForInLoopExactlyOneVariable", - problemMessage: - r"""A for-in loop can't have more than one loop variable."""); + "ForInLoopExactlyOneVariable", + problemMessage: r"""A for-in loop can't have more than one loop variable.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeForInLoopNotAssignable = messageForInLoopNotAssignable; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageForInLoopNotAssignable = const MessageCode( - "ForInLoopNotAssignable", - problemMessage: - r"""Can't assign to this, so it can't be used in a for-in loop."""); + "ForInLoopNotAssignable", + problemMessage: + r"""Can't assign to this, so it can't be used in a for-in loop.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeForInLoopWithConstVariable = @@ -6181,19 +7324,21 @@ const Code codeForInLoopWithConstVariable = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageForInLoopWithConstVariable = const MessageCode( - "ForInLoopWithConstVariable", - analyzerCodes: ["FOR_IN_WITH_CONST_VARIABLE"], - problemMessage: r"""A for-in loop-variable can't be 'const'.""", - correctionMessage: r"""Try removing the 'const' modifier."""); + "ForInLoopWithConstVariable", + analyzerCodes: ["FOR_IN_WITH_CONST_VARIABLE"], + problemMessage: r"""A for-in loop-variable can't be 'const'.""", + correctionMessage: r"""Try removing the 'const' modifier.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFunctionTypeDefaultValue = messageFunctionTypeDefaultValue; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFunctionTypeDefaultValue = const MessageCode( - "FunctionTypeDefaultValue", - analyzerCodes: ["DEFAULT_VALUE_IN_FUNCTION_TYPE"], - problemMessage: r"""Can't have a default value in a function type."""); + "FunctionTypeDefaultValue", + analyzerCodes: ["DEFAULT_VALUE_IN_FUNCTION_TYPE"], + problemMessage: r"""Can't have a default value in a function type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeFunctionTypedParameterVar = @@ -6201,20 +7346,22 @@ const Code codeFunctionTypedParameterVar = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageFunctionTypedParameterVar = const MessageCode( - "FunctionTypedParameterVar", - index: 119, - problemMessage: - r"""Function-typed parameters can't specify 'const', 'final' or 'var' in place of a return type.""", - correctionMessage: r"""Try replacing the keyword with a return type."""); + "FunctionTypedParameterVar", + index: 119, + problemMessage: + r"""Function-typed parameters can't specify 'const', 'final' or 'var' in place of a return type.""", + correctionMessage: r"""Try replacing the keyword with a return type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeGeneratorReturnsValue = messageGeneratorReturnsValue; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageGeneratorReturnsValue = const MessageCode( - "GeneratorReturnsValue", - analyzerCodes: ["RETURN_IN_GENERATOR"], - problemMessage: r"""'sync*' and 'async*' can't return a value."""); + "GeneratorReturnsValue", + analyzerCodes: ["RETURN_IN_GENERATOR"], + problemMessage: r"""'sync*' and 'async*' can't return a value.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeGenericFunctionTypeInBound = @@ -6222,10 +7369,11 @@ const Code codeGenericFunctionTypeInBound = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageGenericFunctionTypeInBound = const MessageCode( - "GenericFunctionTypeInBound", - analyzerCodes: ["GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND"], - problemMessage: - r"""Type variables can't have generic function types in their bounds."""); + "GenericFunctionTypeInBound", + analyzerCodes: ["GENERIC_FUNCTION_TYPE_CANNOT_BE_BOUND"], + problemMessage: + r"""Type variables can't have generic function types in their bounds.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeGenericFunctionTypeUsedAsActualTypeArgument = @@ -6233,40 +7381,51 @@ const Code codeGenericFunctionTypeUsedAsActualTypeArgument = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageGenericFunctionTypeUsedAsActualTypeArgument = - const MessageCode("GenericFunctionTypeUsedAsActualTypeArgument", - analyzerCodes: ["GENERIC_FUNCTION_CANNOT_BE_TYPE_ARGUMENT"], - problemMessage: - r"""A generic function type can't be used as a type argument.""", - correctionMessage: r"""Try using a non-generic function type."""); + const MessageCode( + "GenericFunctionTypeUsedAsActualTypeArgument", + analyzerCodes: ["GENERIC_FUNCTION_CANNOT_BE_TYPE_ARGUMENT"], + problemMessage: + r"""A generic function type can't be used as a type argument.""", + correctionMessage: r"""Try using a non-generic function type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeGetterConstructor = messageGetterConstructor; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageGetterConstructor = const MessageCode( - "GetterConstructor", - index: 103, - problemMessage: r"""Constructors can't be a getter.""", - correctionMessage: r"""Try removing 'get'."""); + "GetterConstructor", + index: 103, + problemMessage: r"""Constructors can't be a getter.""", + correctionMessage: r"""Try removing 'get'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateGetterNotFound = - const Template("GetterNotFound", - problemMessageTemplate: r"""Getter not found: '#name'.""", - withArguments: _withArgumentsGetterNotFound); + const Template( + "GetterNotFound", + problemMessageTemplate: r"""Getter not found: '#name'.""", + withArguments: _withArgumentsGetterNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeGetterNotFound = - const Code("GetterNotFound", - analyzerCodes: ["UNDEFINED_GETTER"]); + const Code( + "GetterNotFound", + analyzerCodes: ["UNDEFINED_GETTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsGetterNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeGetterNotFound, - problemMessage: """Getter not found: '${name}'.""", - arguments: {'name': name}); + return new Message( + codeGetterNotFound, + problemMessage: """Getter not found: '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -6274,10 +7433,11 @@ const Code codeGetterWithFormals = messageGetterWithFormals; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageGetterWithFormals = const MessageCode( - "GetterWithFormals", - analyzerCodes: ["GETTER_WITH_PARAMETERS"], - problemMessage: r"""A getter can't have formal parameters.""", - correctionMessage: r"""Try removing '(...)'."""); + "GetterWithFormals", + analyzerCodes: ["GETTER_WITH_PARAMETERS"], + problemMessage: r"""A getter can't have formal parameters.""", + correctionMessage: r"""Try removing '(...)'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalAssignmentToNonAssignable = @@ -6285,9 +7445,10 @@ const Code codeIllegalAssignmentToNonAssignable = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageIllegalAssignmentToNonAssignable = const MessageCode( - "IllegalAssignmentToNonAssignable", - index: 45, - problemMessage: r"""Illegal assignment to non-assignable expression."""); + "IllegalAssignmentToNonAssignable", + index: 45, + problemMessage: r"""Illegal assignment to non-assignable expression.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalAsyncGeneratorReturnType = @@ -6295,10 +7456,11 @@ const Code codeIllegalAsyncGeneratorReturnType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageIllegalAsyncGeneratorReturnType = const MessageCode( - "IllegalAsyncGeneratorReturnType", - analyzerCodes: ["ILLEGAL_ASYNC_GENERATOR_RETURN_TYPE"], - problemMessage: - r"""Functions marked 'async*' must have a return type assignable to 'Stream'."""); + "IllegalAsyncGeneratorReturnType", + analyzerCodes: ["ILLEGAL_ASYNC_GENERATOR_RETURN_TYPE"], + problemMessage: + r"""Functions marked 'async*' must have a return type assignable to 'Stream'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalAsyncGeneratorVoidReturnType = @@ -6306,167 +7468,208 @@ const Code codeIllegalAsyncGeneratorVoidReturnType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageIllegalAsyncGeneratorVoidReturnType = - const MessageCode("IllegalAsyncGeneratorVoidReturnType", - problemMessage: - r"""Functions marked 'async*' can't have return type 'void'."""); + const MessageCode( + "IllegalAsyncGeneratorVoidReturnType", + problemMessage: + r"""Functions marked 'async*' can't have return type 'void'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalAsyncReturnType = messageIllegalAsyncReturnType; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageIllegalAsyncReturnType = const MessageCode( - "IllegalAsyncReturnType", - analyzerCodes: ["ILLEGAL_ASYNC_RETURN_TYPE"], - problemMessage: - r"""Functions marked 'async' must have a return type assignable to 'Future'."""); + "IllegalAsyncReturnType", + analyzerCodes: ["ILLEGAL_ASYNC_RETURN_TYPE"], + problemMessage: + r"""Functions marked 'async' must have a return type assignable to 'Future'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateIllegalMixin = - const Template("IllegalMixin", - problemMessageTemplate: r"""The type '#name' can't be mixed in.""", - withArguments: _withArgumentsIllegalMixin); + const Template( + "IllegalMixin", + problemMessageTemplate: r"""The type '#name' can't be mixed in.""", + withArguments: _withArgumentsIllegalMixin, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalMixin = - const Code("IllegalMixin", - analyzerCodes: ["ILLEGAL_MIXIN"]); + const Code( + "IllegalMixin", + analyzerCodes: ["ILLEGAL_MIXIN"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIllegalMixin(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeIllegalMixin, - problemMessage: """The type '${name}' can't be mixed in.""", - arguments: {'name': name}); + return new Message( + codeIllegalMixin, + problemMessage: """The type '${name}' can't be mixed in.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateIllegalMixinDueToConstructors = const Template( - "IllegalMixinDueToConstructors", - problemMessageTemplate: - r"""Can't use '#name' as a mixin because it has constructors.""", - withArguments: _withArgumentsIllegalMixinDueToConstructors); + "IllegalMixinDueToConstructors", + problemMessageTemplate: + r"""Can't use '#name' as a mixin because it has constructors.""", + withArguments: _withArgumentsIllegalMixinDueToConstructors, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalMixinDueToConstructors = - const Code("IllegalMixinDueToConstructors", - analyzerCodes: ["MIXIN_DECLARES_CONSTRUCTOR"]); + const Code( + "IllegalMixinDueToConstructors", + analyzerCodes: ["MIXIN_DECLARES_CONSTRUCTOR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIllegalMixinDueToConstructors(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeIllegalMixinDueToConstructors, - problemMessage: - """Can't use '${name}' as a mixin because it has constructors.""", - arguments: {'name': name}); + return new Message( + codeIllegalMixinDueToConstructors, + problemMessage: + """Can't use '${name}' as a mixin because it has constructors.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateIllegalMixinDueToConstructorsCause = const Template( - "IllegalMixinDueToConstructorsCause", - problemMessageTemplate: - r"""This constructor prevents using '#name' as a mixin.""", - withArguments: _withArgumentsIllegalMixinDueToConstructorsCause); + "IllegalMixinDueToConstructorsCause", + problemMessageTemplate: + r"""This constructor prevents using '#name' as a mixin.""", + withArguments: _withArgumentsIllegalMixinDueToConstructorsCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalMixinDueToConstructorsCause = const Code( - "IllegalMixinDueToConstructorsCause", - severity: Severity.context); + "IllegalMixinDueToConstructorsCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIllegalMixinDueToConstructorsCause(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeIllegalMixinDueToConstructorsCause, - problemMessage: - """This constructor prevents using '${name}' as a mixin.""", - arguments: {'name': name}); + return new Message( + codeIllegalMixinDueToConstructorsCause, + problemMessage: """This constructor prevents using '${name}' as a mixin.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Token - token)> templateIllegalPatternAssignmentVariableName = const Template< - Message Function(Token token)>("IllegalPatternAssignmentVariableName", - problemMessageTemplate: - r"""A variable assigned by a pattern assignment can't be named '#lexeme'.""", - correctionMessageTemplate: r"""Choose a different name.""", - withArguments: _withArgumentsIllegalPatternAssignmentVariableName); +const Template + templateIllegalPatternAssignmentVariableName = + const Template( + "IllegalPatternAssignmentVariableName", + problemMessageTemplate: + r"""A variable assigned by a pattern assignment can't be named '#lexeme'.""", + correctionMessageTemplate: r"""Choose a different name.""", + withArguments: _withArgumentsIllegalPatternAssignmentVariableName, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalPatternAssignmentVariableName = const Code( - "IllegalPatternAssignmentVariableName", - index: 160); + "IllegalPatternAssignmentVariableName", + index: 160, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIllegalPatternAssignmentVariableName(Token token) { String lexeme = token.lexeme; - return new Message(codeIllegalPatternAssignmentVariableName, - problemMessage: - """A variable assigned by a pattern assignment can't be named '${lexeme}'.""", - correctionMessage: """Choose a different name.""", - arguments: {'lexeme': token}); + return new Message( + codeIllegalPatternAssignmentVariableName, + problemMessage: + """A variable assigned by a pattern assignment can't be named '${lexeme}'.""", + correctionMessage: """Choose a different name.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateIllegalPatternIdentifierName = const Template( - "IllegalPatternIdentifierName", - problemMessageTemplate: - r"""A pattern can't refer to an identifier named '#lexeme'.""", - correctionMessageTemplate: r"""Match the identifier using '==""", - withArguments: _withArgumentsIllegalPatternIdentifierName); + "IllegalPatternIdentifierName", + problemMessageTemplate: + r"""A pattern can't refer to an identifier named '#lexeme'.""", + correctionMessageTemplate: r"""Match the identifier using '==""", + withArguments: _withArgumentsIllegalPatternIdentifierName, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalPatternIdentifierName = - const Code("IllegalPatternIdentifierName", - index: 161); + const Code( + "IllegalPatternIdentifierName", + index: 161, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIllegalPatternIdentifierName(Token token) { String lexeme = token.lexeme; - return new Message(codeIllegalPatternIdentifierName, - problemMessage: - """A pattern can't refer to an identifier named '${lexeme}'.""", - correctionMessage: """Match the identifier using '==""", - arguments: {'lexeme': token}); + return new Message( + codeIllegalPatternIdentifierName, + problemMessage: + """A pattern can't refer to an identifier named '${lexeme}'.""", + correctionMessage: """Match the identifier using '==""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Token - token)> templateIllegalPatternVariableName = const Template< - Message Function(Token token)>("IllegalPatternVariableName", - problemMessageTemplate: - r"""The variable declared by a variable pattern can't be named '#lexeme'.""", - correctionMessageTemplate: r"""Choose a different name.""", - withArguments: _withArgumentsIllegalPatternVariableName); +const Template + templateIllegalPatternVariableName = + const Template( + "IllegalPatternVariableName", + problemMessageTemplate: + r"""The variable declared by a variable pattern can't be named '#lexeme'.""", + correctionMessageTemplate: r"""Choose a different name.""", + withArguments: _withArgumentsIllegalPatternVariableName, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalPatternVariableName = - const Code("IllegalPatternVariableName", - index: 159); + const Code( + "IllegalPatternVariableName", + index: 159, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIllegalPatternVariableName(Token token) { String lexeme = token.lexeme; - return new Message(codeIllegalPatternVariableName, - problemMessage: - """The variable declared by a variable pattern can't be named '${lexeme}'.""", - correctionMessage: """Choose a different name.""", - arguments: {'lexeme': token}); + return new Message( + codeIllegalPatternVariableName, + problemMessage: + """The variable declared by a variable pattern can't be named '${lexeme}'.""", + correctionMessage: """Choose a different name.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -6475,10 +7678,11 @@ const Code codeIllegalSyncGeneratorReturnType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageIllegalSyncGeneratorReturnType = const MessageCode( - "IllegalSyncGeneratorReturnType", - analyzerCodes: ["ILLEGAL_SYNC_GENERATOR_RETURN_TYPE"], - problemMessage: - r"""Functions marked 'sync*' must have a return type assignable to 'Iterable'."""); + "IllegalSyncGeneratorReturnType", + analyzerCodes: ["ILLEGAL_SYNC_GENERATOR_RETURN_TYPE"], + problemMessage: + r"""Functions marked 'sync*' must have a return type assignable to 'Iterable'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIllegalSyncGeneratorVoidReturnType = @@ -6486,23 +7690,22 @@ const Code codeIllegalSyncGeneratorVoidReturnType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageIllegalSyncGeneratorVoidReturnType = const MessageCode( - "IllegalSyncGeneratorVoidReturnType", - problemMessage: - r"""Functions marked 'sync*' can't have return type 'void'."""); + "IllegalSyncGeneratorVoidReturnType", + problemMessage: + r"""Functions marked 'sync*' can't have return type 'void'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateImplementMultipleExtensionTypeMembers = const Template< - Message Function(String name, String name2)>( - "ImplementMultipleExtensionTypeMembers", - problemMessageTemplate: - r"""The extension type '#name' can't inherit the member '#name2' from more than one extension type.""", - correctionMessageTemplate: - r"""Try declaring a member '#name2' in '#name' to resolve the conflict.""", - withArguments: _withArgumentsImplementMultipleExtensionTypeMembers); +const Template + templateImplementMultipleExtensionTypeMembers = + const Template( + "ImplementMultipleExtensionTypeMembers", + problemMessageTemplate: + r"""The extension type '#name' can't inherit the member '#name2' from more than one extension type.""", + correctionMessageTemplate: + r"""Try declaring a member '#name2' in '#name' to resolve the conflict.""", + withArguments: _withArgumentsImplementMultipleExtensionTypeMembers, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -6518,24 +7721,30 @@ Message _withArgumentsImplementMultipleExtensionTypeMembers( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeImplementMultipleExtensionTypeMembers, - problemMessage: - """The extension type '${name}' can't inherit the member '${name2}' from more than one extension type.""", - correctionMessage: """Try declaring a member '${name2}' in '${name}' to resolve the conflict.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeImplementMultipleExtensionTypeMembers, + problemMessage: + """The extension type '${name}' can't inherit the member '${name2}' from more than one extension type.""", + correctionMessage: + """Try declaring a member '${name2}' in '${name}' to resolve the conflict.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateImplementNonExtensionTypeAndExtensionTypeMember = const Template( - "ImplementNonExtensionTypeAndExtensionTypeMember", - problemMessageTemplate: - r"""The extension type '#name' can't inherit the member '#name2' as both an extension type member and a non-extension type member.""", - correctionMessageTemplate: - r"""Try declaring a member '#name2' in '#name' to resolve the conflict.""", - withArguments: - _withArgumentsImplementNonExtensionTypeAndExtensionTypeMember); + "ImplementNonExtensionTypeAndExtensionTypeMember", + problemMessageTemplate: + r"""The extension type '#name' can't inherit the member '#name2' as both an extension type member and a non-extension type member.""", + correctionMessageTemplate: + r"""Try declaring a member '#name2' in '#name' to resolve the conflict.""", + withArguments: _withArgumentsImplementNonExtensionTypeAndExtensionTypeMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -6551,11 +7760,17 @@ Message _withArgumentsImplementNonExtensionTypeAndExtensionTypeMember( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeImplementNonExtensionTypeAndExtensionTypeMember, - problemMessage: - """The extension type '${name}' can't inherit the member '${name2}' as both an extension type member and a non-extension type member.""", - correctionMessage: """Try declaring a member '${name2}' in '${name}' to resolve the conflict.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeImplementNonExtensionTypeAndExtensionTypeMember, + problemMessage: + """The extension type '${name}' can't inherit the member '${name2}' as both an extension type member and a non-extension type member.""", + correctionMessage: + """Try declaring a member '${name2}' in '${name}' to resolve the conflict.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -6563,125 +7778,141 @@ const Code codeImplementsBeforeExtends = messageImplementsBeforeExtends; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageImplementsBeforeExtends = const MessageCode( - "ImplementsBeforeExtends", - index: 44, - problemMessage: - r"""The extends clause must be before the implements clause.""", - correctionMessage: - r"""Try moving the extends clause before the implements clause."""); + "ImplementsBeforeExtends", + index: 44, + problemMessage: + r"""The extends clause must be before the implements clause.""", + correctionMessage: + r"""Try moving the extends clause before the implements clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImplementsBeforeOn = messageImplementsBeforeOn; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageImplementsBeforeOn = const MessageCode( - "ImplementsBeforeOn", - index: 43, - problemMessage: r"""The on clause must be before the implements clause.""", - correctionMessage: - r"""Try moving the on clause before the implements clause."""); + "ImplementsBeforeOn", + index: 43, + problemMessage: r"""The on clause must be before the implements clause.""", + correctionMessage: + r"""Try moving the on clause before the implements clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImplementsBeforeWith = messageImplementsBeforeWith; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageImplementsBeforeWith = const MessageCode( - "ImplementsBeforeWith", - index: 42, - problemMessage: - r"""The with clause must be before the implements clause.""", - correctionMessage: - r"""Try moving the with clause before the implements clause."""); + "ImplementsBeforeWith", + index: 42, + problemMessage: r"""The with clause must be before the implements clause.""", + correctionMessage: + r"""Try moving the with clause before the implements clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImplementsFutureOr = messageImplementsFutureOr; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageImplementsFutureOr = const MessageCode( - "ImplementsFutureOr", - problemMessage: - r"""The type 'FutureOr' can't be used in an 'implements' clause."""); + "ImplementsFutureOr", + problemMessage: + r"""The type 'FutureOr' can't be used in an 'implements' clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImplementsNever = messageImplementsNever; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageImplementsNever = const MessageCode("ImplementsNever", - problemMessage: - r"""The type 'Never' can't be used in an 'implements' clause."""); +const MessageCode messageImplementsNever = const MessageCode( + "ImplementsNever", + problemMessage: + r"""The type 'Never' can't be used in an 'implements' clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateImplementsRepeated = const Template( - "ImplementsRepeated", - problemMessageTemplate: r"""'#name' can only be implemented once.""", - correctionMessageTemplate: - r"""Try removing #count of the occurrences.""", - withArguments: _withArgumentsImplementsRepeated); + "ImplementsRepeated", + problemMessageTemplate: r"""'#name' can only be implemented once.""", + correctionMessageTemplate: r"""Try removing #count of the occurrences.""", + withArguments: _withArgumentsImplementsRepeated, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImplementsRepeated = - const Code("ImplementsRepeated", - analyzerCodes: ["IMPLEMENTS_REPEATED"]); + const Code( + "ImplementsRepeated", + analyzerCodes: ["IMPLEMENTS_REPEATED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsImplementsRepeated(String name, int count) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeImplementsRepeated, - problemMessage: """'${name}' can only be implemented once.""", - correctionMessage: """Try removing ${count} of the occurrences.""", - arguments: {'name': name, 'count': count}); + return new Message( + codeImplementsRepeated, + problemMessage: """'${name}' can only be implemented once.""", + correctionMessage: """Try removing ${count} of the occurrences.""", + arguments: { + 'name': name, + 'count': count, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateImplementsSuperClass = const Template< - Message Function(String name)>("ImplementsSuperClass", - problemMessageTemplate: - r"""'#name' can't be used in both 'extends' and 'implements' clauses.""", - correctionMessageTemplate: r"""Try removing one of the occurrences.""", - withArguments: _withArgumentsImplementsSuperClass); +const Template templateImplementsSuperClass = + const Template( + "ImplementsSuperClass", + problemMessageTemplate: + r"""'#name' can't be used in both 'extends' and 'implements' clauses.""", + correctionMessageTemplate: r"""Try removing one of the occurrences.""", + withArguments: _withArgumentsImplementsSuperClass, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImplementsSuperClass = - const Code("ImplementsSuperClass", - analyzerCodes: ["IMPLEMENTS_SUPER_CLASS"]); + const Code( + "ImplementsSuperClass", + analyzerCodes: ["IMPLEMENTS_SUPER_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsImplementsSuperClass(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeImplementsSuperClass, - problemMessage: - """'${name}' can't be used in both 'extends' and 'implements' clauses.""", - correctionMessage: """Try removing one of the occurrences.""", - arguments: {'name': name}); + return new Message( + codeImplementsSuperClass, + problemMessage: + """'${name}' can't be used in both 'extends' and 'implements' clauses.""", + correctionMessage: """Try removing one of the occurrences.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImplementsVoid = messageImplementsVoid; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageImplementsVoid = const MessageCode("ImplementsVoid", - problemMessage: - r"""The type 'void' can't be used in an 'implements' clause."""); +const MessageCode messageImplementsVoid = const MessageCode( + "ImplementsVoid", + problemMessage: + r"""The type 'void' can't be used in an 'implements' clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String name2, - String - name3)> templateImplicitMixinOverride = const Template< - Message Function(String name, String name2, String name3)>( - "ImplicitMixinOverride", - problemMessageTemplate: - r"""Applying the mixin '#name' to '#name2' introduces an erroneous override of '#name3'.""", - withArguments: _withArgumentsImplicitMixinOverride); +const Template + templateImplicitMixinOverride = + const Template( + "ImplicitMixinOverride", + problemMessageTemplate: + r"""Applying the mixin '#name' to '#name2' introduces an erroneous override of '#name3'.""", + withArguments: _withArgumentsImplicitMixinOverride, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -6699,10 +7930,16 @@ Message _withArgumentsImplicitMixinOverride( name2 = demangleMixinApplicationName(name2); if (name3.isEmpty) throw 'No name provided'; name3 = demangleMixinApplicationName(name3); - return new Message(codeImplicitMixinOverride, - problemMessage: - """Applying the mixin '${name}' to '${name2}' introduces an erroneous override of '${name3}'.""", - arguments: {'name': name, 'name2': name2, 'name3': name3}); + return new Message( + codeImplicitMixinOverride, + problemMessage: + """Applying the mixin '${name}' to '${name2}' introduces an erroneous override of '${name3}'.""", + arguments: { + 'name': name, + 'name2': name2, + 'name3': name3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -6711,47 +7948,48 @@ const Code codeImplicitSuperCallOfNonMethod = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageImplicitSuperCallOfNonMethod = const MessageCode( - "ImplicitSuperCallOfNonMethod", - analyzerCodes: ["IMPLICIT_CALL_OF_NON_METHOD"], - problemMessage: - r"""Cannot invoke `super` because it declares 'call' to be something other than a method.""", - correctionMessage: - r"""Try changing 'call' to a method or explicitly invoke 'call'."""); + "ImplicitSuperCallOfNonMethod", + analyzerCodes: ["IMPLICIT_CALL_OF_NON_METHOD"], + problemMessage: + r"""Cannot invoke `super` because it declares 'call' to be something other than a method.""", + correctionMessage: + r"""Try changing 'call' to a method or explicitly invoke 'call'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImportAfterPart = messageImportAfterPart; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageImportAfterPart = const MessageCode("ImportAfterPart", - index: 10, - problemMessage: r"""Import directives must precede part directives.""", - correctionMessage: - r"""Try moving the import directives before the part directives."""); +const MessageCode messageImportAfterPart = const MessageCode( + "ImportAfterPart", + index: 10, + problemMessage: r"""Import directives must precede part directives.""", + correctionMessage: + r"""Try moving the import directives before the part directives.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Uri uri_, - String string, - String - string2)> templateImportChainContext = const Template< - Message Function(Uri uri_, String string, String string2)>( - "ImportChainContext", - problemMessageTemplate: - r"""The unavailable library '#uri' is imported through these packages: +const Template + templateImportChainContext = + const Template( + "ImportChainContext", + problemMessageTemplate: + r"""The unavailable library '#uri' is imported through these packages: #string Detailed import paths for (some of) the these imports: #string2""", - withArguments: _withArgumentsImportChainContext); + withArguments: _withArgumentsImportChainContext, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImportChainContext = const Code( - "ImportChainContext", - severity: Severity.context); + "ImportChainContext", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsImportChainContext( @@ -6759,45 +7997,58 @@ Message _withArgumentsImportChainContext( String? uri = relativizeUri(uri_); if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeImportChainContext, - problemMessage: - """The unavailable library '${uri}' is imported through these packages: + return new Message( + codeImportChainContext, + problemMessage: + """The unavailable library '${uri}' is imported through these packages: ${string} Detailed import paths for (some of) the these imports: ${string2}""", - arguments: {'uri': uri_, 'string': string, 'string2': string2}); + arguments: { + 'uri': uri_, + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateImportChainContextSimple = const Template( - "ImportChainContextSimple", - problemMessageTemplate: - r"""The unavailable library '#uri' is imported through these paths: + "ImportChainContextSimple", + problemMessageTemplate: + r"""The unavailable library '#uri' is imported through these paths: #string""", - withArguments: _withArgumentsImportChainContextSimple); + withArguments: _withArgumentsImportChainContextSimple, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImportChainContextSimple = const Code( - "ImportChainContextSimple", - severity: Severity.context); + "ImportChainContextSimple", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsImportChainContextSimple(Uri uri_, String string) { String? uri = relativizeUri(uri_); if (string.isEmpty) throw 'No string provided'; - return new Message(codeImportChainContextSimple, - problemMessage: - """The unavailable library '${uri}' is imported through these paths: + return new Message( + codeImportChainContextSimple, + problemMessage: + """The unavailable library '${uri}' is imported through these paths: ${string}""", - arguments: {'uri': uri_, 'string': string}); + arguments: { + 'uri': uri_, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -6806,20 +8057,21 @@ const Code codeIncorrectTypeArgumentVariable = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageIncorrectTypeArgumentVariable = const MessageCode( - "IncorrectTypeArgumentVariable", - severity: Severity.context, - problemMessage: - r"""This is the type variable whose bound isn't conformed to."""); + "IncorrectTypeArgumentVariable", + severity: Severity.context, + problemMessage: + r"""This is the type variable whose bound isn't conformed to.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - string)> templateIncrementalCompilerIllegalParameter = const Template< - Message Function(String string)>("IncrementalCompilerIllegalParameter", - problemMessageTemplate: - r"""Illegal parameter name '#string' found during expression compilation.""", - withArguments: _withArgumentsIncrementalCompilerIllegalParameter); +const Template + templateIncrementalCompilerIllegalParameter = + const Template( + "IncrementalCompilerIllegalParameter", + problemMessageTemplate: + r"""Illegal parameter name '#string' found during expression compilation.""", + withArguments: _withArgumentsIncrementalCompilerIllegalParameter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -6831,20 +8083,25 @@ const Code // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIncrementalCompilerIllegalParameter(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeIncrementalCompilerIllegalParameter, - problemMessage: - """Illegal parameter name '${string}' found during expression compilation.""", - arguments: {'string': string}); + return new Message( + codeIncrementalCompilerIllegalParameter, + problemMessage: + """Illegal parameter name '${string}' found during expression compilation.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateIncrementalCompilerIllegalTypeParameter = const Template( - "IncrementalCompilerIllegalTypeParameter", - problemMessageTemplate: - r"""Illegal type parameter name '#string' found during expression compilation.""", - withArguments: _withArgumentsIncrementalCompilerIllegalTypeParameter); + "IncrementalCompilerIllegalTypeParameter", + problemMessageTemplate: + r"""Illegal type parameter name '#string' found during expression compilation.""", + withArguments: _withArgumentsIncrementalCompilerIllegalTypeParameter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -6856,10 +8113,14 @@ const Code // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIncrementalCompilerIllegalTypeParameter(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeIncrementalCompilerIllegalTypeParameter, - problemMessage: - """Illegal type parameter name '${string}' found during expression compilation.""", - arguments: {'string': string}); + return new Message( + codeIncrementalCompilerIllegalTypeParameter, + problemMessage: + """Illegal type parameter name '${string}' found during expression compilation.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -6867,10 +8128,10 @@ const Code codeInheritedMembersConflict = messageInheritedMembersConflict; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInheritedMembersConflict = const MessageCode( - "InheritedMembersConflict", - analyzerCodes: ["CONFLICTS_WITH_INHERITED_MEMBER"], - problemMessage: - r"""Can't inherit members that conflict with each other."""); + "InheritedMembersConflict", + analyzerCodes: ["CONFLICTS_WITH_INHERITED_MEMBER"], + problemMessage: r"""Can't inherit members that conflict with each other.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInheritedMembersConflictCause1 = @@ -6878,9 +8139,10 @@ const Code codeInheritedMembersConflictCause1 = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInheritedMembersConflictCause1 = const MessageCode( - "InheritedMembersConflictCause1", - severity: Severity.context, - problemMessage: r"""This is one inherited member."""); + "InheritedMembersConflictCause1", + severity: Severity.context, + problemMessage: r"""This is one inherited member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInheritedMembersConflictCause2 = @@ -6888,26 +8150,28 @@ const Code codeInheritedMembersConflictCause2 = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInheritedMembersConflictCause2 = const MessageCode( - "InheritedMembersConflictCause2", - severity: Severity.context, - problemMessage: r"""This is the other inherited member."""); + "InheritedMembersConflictCause2", + severity: Severity.context, + problemMessage: r"""This is the other inherited member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInheritedRestrictedMemberOfEnumImplementer = const Template( - "InheritedRestrictedMemberOfEnumImplementer", - problemMessageTemplate: - r"""A concrete instance member named '#name' can't be inherited from '#name2' in a class that implements 'Enum'.""", - withArguments: - _withArgumentsInheritedRestrictedMemberOfEnumImplementer); + "InheritedRestrictedMemberOfEnumImplementer", + problemMessageTemplate: + r"""A concrete instance member named '#name' can't be inherited from '#name2' in a class that implements 'Enum'.""", + withArguments: _withArgumentsInheritedRestrictedMemberOfEnumImplementer, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInheritedRestrictedMemberOfEnumImplementer = const Code( - "InheritedRestrictedMemberOfEnumImplementer", - analyzerCodes: ["ILLEGAL_CONCRETE_ENUM_MEMBER"]); + "InheritedRestrictedMemberOfEnumImplementer", + analyzerCodes: ["ILLEGAL_CONCRETE_ENUM_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInheritedRestrictedMemberOfEnumImplementer( @@ -6916,92 +8180,102 @@ Message _withArgumentsInheritedRestrictedMemberOfEnumImplementer( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeInheritedRestrictedMemberOfEnumImplementer, - problemMessage: - """A concrete instance member named '${name}' can't be inherited from '${name2}' in a class that implements 'Enum'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeInheritedRestrictedMemberOfEnumImplementer, + problemMessage: + """A concrete instance member named '${name}' can't be inherited from '${name2}' in a class that implements 'Enum'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - Uri - uri_)> templateInitializeFromDillNotSelfContained = const Template< - Message Function(String string, Uri uri_)>( - "InitializeFromDillNotSelfContained", - problemMessageTemplate: - r"""Tried to initialize from a previous compilation (#string), but the file was not self-contained. This might be a bug. +const Template + templateInitializeFromDillNotSelfContained = + const Template( + "InitializeFromDillNotSelfContained", + problemMessageTemplate: + r"""Tried to initialize from a previous compilation (#string), but the file was not self-contained. This might be a bug. The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new. If you are comfortable with it, it would improve the chances of fixing any bug if you included the file #uri in your error report, but be aware that this file includes your source code. Either way, you should probably delete the file so it doesn't use unnecessary disk space.""", - withArguments: _withArgumentsInitializeFromDillNotSelfContained); + withArguments: _withArgumentsInitializeFromDillNotSelfContained, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInitializeFromDillNotSelfContained = const Code( - "InitializeFromDillNotSelfContained", - severity: Severity.warning); + "InitializeFromDillNotSelfContained", + severity: Severity.warning, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInitializeFromDillNotSelfContained( String string, Uri uri_) { if (string.isEmpty) throw 'No string provided'; String? uri = relativizeUri(uri_); - return new Message(codeInitializeFromDillNotSelfContained, - problemMessage: - """Tried to initialize from a previous compilation (${string}), but the file was not self-contained. This might be a bug. + return new Message( + codeInitializeFromDillNotSelfContained, + problemMessage: + """Tried to initialize from a previous compilation (${string}), but the file was not self-contained. This might be a bug. The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new. If you are comfortable with it, it would improve the chances of fixing any bug if you included the file ${uri} in your error report, but be aware that this file includes your source code. Either way, you should probably delete the file so it doesn't use unnecessary disk space.""", - arguments: {'string': string, 'uri': uri_}); + arguments: { + 'string': string, + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInitializeFromDillNotSelfContainedNoDump = const Template( - "InitializeFromDillNotSelfContainedNoDump", - problemMessageTemplate: - r"""Tried to initialize from a previous compilation (#string), but the file was not self-contained. This might be a bug. + "InitializeFromDillNotSelfContainedNoDump", + problemMessageTemplate: + r"""Tried to initialize from a previous compilation (#string), but the file was not self-contained. This might be a bug. The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new.""", - withArguments: _withArgumentsInitializeFromDillNotSelfContainedNoDump); + withArguments: _withArgumentsInitializeFromDillNotSelfContainedNoDump, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInitializeFromDillNotSelfContainedNoDump = const Code( - "InitializeFromDillNotSelfContainedNoDump", - severity: Severity.warning); + "InitializeFromDillNotSelfContainedNoDump", + severity: Severity.warning, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInitializeFromDillNotSelfContainedNoDump(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeInitializeFromDillNotSelfContainedNoDump, - problemMessage: - """Tried to initialize from a previous compilation (${string}), but the file was not self-contained. This might be a bug. + return new Message( + codeInitializeFromDillNotSelfContainedNoDump, + problemMessage: + """Tried to initialize from a previous compilation (${string}), but the file was not self-contained. This might be a bug. The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new.""", - arguments: {'string': string}); + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - String string, - String string2, - String string3, - Uri - uri_)> templateInitializeFromDillUnknownProblem = const Template< - Message Function( - String string, String string2, String string3, Uri uri_)>( - "InitializeFromDillUnknownProblem", - problemMessageTemplate: - r"""Tried to initialize from a previous compilation (#string), but couldn't. + Message Function(String string, String string2, String string3, + Uri uri_)> templateInitializeFromDillUnknownProblem = const Template< + Message Function(String string, String string2, String string3, Uri uri_)>( + "InitializeFromDillUnknownProblem", + problemMessageTemplate: + r"""Tried to initialize from a previous compilation (#string), but couldn't. Error message was '#string2'. Stacktrace included '#string3'. This might be a bug. @@ -7009,17 +8283,17 @@ This might be a bug. The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new. If you are comfortable with it, it would improve the chances of fixing any bug if you included the file #uri in your error report, but be aware that this file includes your source code. Either way, you should probably delete the file so it doesn't use unnecessary disk space.""", - withArguments: _withArgumentsInitializeFromDillUnknownProblem); + withArguments: _withArgumentsInitializeFromDillUnknownProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< - Message Function( - String string, String string2, String string3, Uri uri_)> - codeInitializeFromDillUnknownProblem = const Code< - Message Function( - String string, String string2, String string3, Uri uri_)>( - "InitializeFromDillUnknownProblem", - severity: Severity.warning); + Message Function(String string, String string2, String string3, + Uri uri_)> codeInitializeFromDillUnknownProblem = const Code< + Message Function(String string, String string2, String string3, Uri uri_)>( + "InitializeFromDillUnknownProblem", + severity: Severity.warning, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInitializeFromDillUnknownProblem( @@ -7028,9 +8302,10 @@ Message _withArgumentsInitializeFromDillUnknownProblem( if (string2.isEmpty) throw 'No string provided'; if (string3.isEmpty) throw 'No string provided'; String? uri = relativizeUri(uri_); - return new Message(codeInitializeFromDillUnknownProblem, - problemMessage: - """Tried to initialize from a previous compilation (${string}), but couldn't. + return new Message( + codeInitializeFromDillUnknownProblem, + problemMessage: + """Tried to initialize from a previous compilation (${string}), but couldn't. Error message was '${string2}'. Stacktrace included '${string3}'. This might be a bug. @@ -7038,34 +8313,37 @@ This might be a bug. The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new. If you are comfortable with it, it would improve the chances of fixing any bug if you included the file ${uri} in your error report, but be aware that this file includes your source code. Either way, you should probably delete the file so it doesn't use unnecessary disk space.""", - arguments: { - 'string': string, - 'string2': string2, - 'string3': string3, - 'uri': uri_ - }); + arguments: { + 'string': string, + 'string2': string2, + 'string3': string3, + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInitializeFromDillUnknownProblemNoDump = const Template< - Message Function(String string, String string2, String string3)>( - "InitializeFromDillUnknownProblemNoDump", - problemMessageTemplate: - r"""Tried to initialize from a previous compilation (#string), but couldn't. + Message Function(String string, String string2, String string3)>( + "InitializeFromDillUnknownProblemNoDump", + problemMessageTemplate: + r"""Tried to initialize from a previous compilation (#string), but couldn't. Error message was '#string2'. Stacktrace included '#string3'. This might be a bug. The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new.""", - withArguments: _withArgumentsInitializeFromDillUnknownProblemNoDump); + withArguments: _withArgumentsInitializeFromDillUnknownProblemNoDump, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInitializeFromDillUnknownProblemNoDump = const Code( - "InitializeFromDillUnknownProblemNoDump", - severity: Severity.warning); + "InitializeFromDillUnknownProblemNoDump", + severity: Severity.warning, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInitializeFromDillUnknownProblemNoDump( @@ -7073,15 +8351,21 @@ Message _withArgumentsInitializeFromDillUnknownProblemNoDump( if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; if (string3.isEmpty) throw 'No string provided'; - return new Message(codeInitializeFromDillUnknownProblemNoDump, - problemMessage: - """Tried to initialize from a previous compilation (${string}), but couldn't. + return new Message( + codeInitializeFromDillUnknownProblemNoDump, + problemMessage: + """Tried to initialize from a previous compilation (${string}), but couldn't. Error message was '${string2}'. Stacktrace included '${string3}'. This might be a bug. The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new.""", - arguments: {'string': string, 'string2': string2, 'string3': string3}); + arguments: { + 'string': string, + 'string2': string2, + 'string3': string3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -7090,33 +8374,41 @@ const Code codeInitializedVariableInForEach = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInitializedVariableInForEach = const MessageCode( - "InitializedVariableInForEach", - index: 82, - problemMessage: - r"""The loop variable in a for-each loop can't be initialized.""", - correctionMessage: - r"""Try removing the initializer, or using a different kind of loop."""); + "InitializedVariableInForEach", + index: 82, + problemMessage: + r"""The loop variable in a for-each loop can't be initialized.""", + correctionMessage: + r"""Try removing the initializer, or using a different kind of loop.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInitializerForStaticField = - const Template("InitializerForStaticField", - problemMessageTemplate: - r"""'#name' isn't an instance field of this class.""", - withArguments: _withArgumentsInitializerForStaticField); + const Template( + "InitializerForStaticField", + problemMessageTemplate: r"""'#name' isn't an instance field of this class.""", + withArguments: _withArgumentsInitializerForStaticField, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInitializerForStaticField = - const Code("InitializerForStaticField", - analyzerCodes: ["INITIALIZER_FOR_STATIC_FIELD"]); + const Code( + "InitializerForStaticField", + analyzerCodes: ["INITIALIZER_FOR_STATIC_FIELD"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInitializerForStaticField(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInitializerForStaticField, - problemMessage: """'${name}' isn't an instance field of this class.""", - arguments: {'name': name}); + return new Message( + codeInitializerForStaticField, + problemMessage: """'${name}' isn't an instance field of this class.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -7125,15 +8417,19 @@ const Code codeInitializingFormalTypeMismatchField = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInitializingFormalTypeMismatchField = - const MessageCode("InitializingFormalTypeMismatchField", - severity: Severity.context, - problemMessage: r"""The field that corresponds to the parameter."""); + const MessageCode( + "InitializingFormalTypeMismatchField", + severity: Severity.context, + problemMessage: r"""The field that corresponds to the parameter.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInputFileNotFound = - const Template("InputFileNotFound", - problemMessageTemplate: r"""Input file not found: #uri.""", - withArguments: _withArgumentsInputFileNotFound); + const Template( + "InputFileNotFound", + problemMessageTemplate: r"""Input file not found: #uri.""", + withArguments: _withArgumentsInputFileNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInputFileNotFound = @@ -7144,48 +8440,57 @@ const Code codeInputFileNotFound = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInputFileNotFound(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codeInputFileNotFound, - problemMessage: """Input file not found: ${uri}.""", - arguments: {'uri': uri_}); + return new Message( + codeInputFileNotFound, + problemMessage: """Input file not found: ${uri}.""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateInstanceAndSynthesizedStaticConflict = const Template< - Message Function(String name)>("InstanceAndSynthesizedStaticConflict", - problemMessageTemplate: - r"""This instance member conflicts with the synthesized static member called '#name'.""", - withArguments: _withArgumentsInstanceAndSynthesizedStaticConflict); +const Template + templateInstanceAndSynthesizedStaticConflict = + const Template( + "InstanceAndSynthesizedStaticConflict", + problemMessageTemplate: + r"""This instance member conflicts with the synthesized static member called '#name'.""", + withArguments: _withArgumentsInstanceAndSynthesizedStaticConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInstanceAndSynthesizedStaticConflict = const Code( - "InstanceAndSynthesizedStaticConflict", - analyzerCodes: ["CONFLICTING_STATIC_AND_INSTANCE"]); + "InstanceAndSynthesizedStaticConflict", + analyzerCodes: ["CONFLICTING_STATIC_AND_INSTANCE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInstanceAndSynthesizedStaticConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInstanceAndSynthesizedStaticConflict, - problemMessage: - """This instance member conflicts with the synthesized static member called '${name}'.""", - arguments: {'name': name}); + return new Message( + codeInstanceAndSynthesizedStaticConflict, + problemMessage: + """This instance member conflicts with the synthesized static member called '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInstantiationTooFewArguments = const Template( - "InstantiationTooFewArguments", - problemMessageTemplate: - r"""Too few type arguments: #count required, #count2 given.""", - correctionMessageTemplate: - r"""Try adding the missing type arguments.""", - withArguments: _withArgumentsInstantiationTooFewArguments); + "InstantiationTooFewArguments", + problemMessageTemplate: + r"""Too few type arguments: #count required, #count2 given.""", + correctionMessageTemplate: r"""Try adding the missing type arguments.""", + withArguments: _withArgumentsInstantiationTooFewArguments, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -7196,23 +8501,28 @@ const Code // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInstantiationTooFewArguments(int count, int count2) { - return new Message(codeInstantiationTooFewArguments, - problemMessage: - """Too few type arguments: ${count} required, ${count2} given.""", - correctionMessage: """Try adding the missing type arguments.""", - arguments: {'count': count, 'count2': count2}); + return new Message( + codeInstantiationTooFewArguments, + problemMessage: + """Too few type arguments: ${count} required, ${count2} given.""", + correctionMessage: """Try adding the missing type arguments.""", + arguments: { + 'count': count, + 'count2': count2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInstantiationTooManyArguments = const Template( - "InstantiationTooManyArguments", - problemMessageTemplate: - r"""Too many type arguments: #count allowed, but #count2 found.""", - correctionMessageTemplate: - r"""Try removing the extra type arguments.""", - withArguments: _withArgumentsInstantiationTooManyArguments); + "InstantiationTooManyArguments", + problemMessageTemplate: + r"""Too many type arguments: #count allowed, but #count2 found.""", + correctionMessageTemplate: r"""Try removing the extra type arguments.""", + withArguments: _withArgumentsInstantiationTooManyArguments, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -7223,51 +8533,61 @@ const Code // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInstantiationTooManyArguments(int count, int count2) { - return new Message(codeInstantiationTooManyArguments, - problemMessage: - """Too many type arguments: ${count} allowed, but ${count2} found.""", - correctionMessage: """Try removing the extra type arguments.""", - arguments: {'count': count, 'count2': count2}); + return new Message( + codeInstantiationTooManyArguments, + problemMessage: + """Too many type arguments: ${count} allowed, but ${count2} found.""", + correctionMessage: """Try removing the extra type arguments.""", + arguments: { + 'count': count, + 'count2': count2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - string)> templateIntegerLiteralIsOutOfRange = const Template< - Message Function(String string)>("IntegerLiteralIsOutOfRange", - problemMessageTemplate: - r"""The integer literal #string can't be represented in 64 bits.""", - correctionMessageTemplate: - r"""Try using the BigInt class if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""", - withArguments: _withArgumentsIntegerLiteralIsOutOfRange); +const Template + templateIntegerLiteralIsOutOfRange = + const Template( + "IntegerLiteralIsOutOfRange", + problemMessageTemplate: + r"""The integer literal #string can't be represented in 64 bits.""", + correctionMessageTemplate: + r"""Try using the BigInt class if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""", + withArguments: _withArgumentsIntegerLiteralIsOutOfRange, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeIntegerLiteralIsOutOfRange = - const Code("IntegerLiteralIsOutOfRange", - analyzerCodes: ["INTEGER_LITERAL_OUT_OF_RANGE"]); + const Code( + "IntegerLiteralIsOutOfRange", + analyzerCodes: ["INTEGER_LITERAL_OUT_OF_RANGE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIntegerLiteralIsOutOfRange(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeIntegerLiteralIsOutOfRange, - problemMessage: - """The integer literal ${string} can't be represented in 64 bits.""", - correctionMessage: - """Try using the BigInt class if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""", - arguments: {'string': string}); + return new Message( + codeIntegerLiteralIsOutOfRange, + problemMessage: + """The integer literal ${string} can't be represented in 64 bits.""", + correctionMessage: + """Try using the BigInt class if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateInterfaceCheck = const Template< - Message Function(String name, String name2)>("InterfaceCheck", - problemMessageTemplate: - r"""The implementation of '#name' in the non-abstract class '#name2' does not conform to its interface.""", - withArguments: _withArgumentsInterfaceCheck); +const Template + templateInterfaceCheck = + const Template( + "InterfaceCheck", + problemMessageTemplate: + r"""The implementation of '#name' in the non-abstract class '#name2' does not conform to its interface.""", + withArguments: _withArgumentsInterfaceCheck, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInterfaceCheck = @@ -7281,66 +8601,81 @@ Message _withArgumentsInterfaceCheck(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeInterfaceCheck, - problemMessage: - """The implementation of '${name}' in the non-abstract class '${name2}' does not conform to its interface.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeInterfaceCheck, + problemMessage: + """The implementation of '${name}' in the non-abstract class '${name2}' does not conform to its interface.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateInterfaceClassExtendedOutsideOfLibrary = const Template< - Message Function(String name)>("InterfaceClassExtendedOutsideOfLibrary", - problemMessageTemplate: - r"""The class '#name' can't be extended outside of its library because it's an interface class.""", - withArguments: _withArgumentsInterfaceClassExtendedOutsideOfLibrary); +const Template + templateInterfaceClassExtendedOutsideOfLibrary = + const Template( + "InterfaceClassExtendedOutsideOfLibrary", + problemMessageTemplate: + r"""The class '#name' can't be extended outside of its library because it's an interface class.""", + withArguments: _withArgumentsInterfaceClassExtendedOutsideOfLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInterfaceClassExtendedOutsideOfLibrary = const Code( - "InterfaceClassExtendedOutsideOfLibrary", - analyzerCodes: ["INTERFACE_CLASS_EXTENDED_OUTSIDE_OF_LIBRARY"]); + "InterfaceClassExtendedOutsideOfLibrary", + analyzerCodes: ["INTERFACE_CLASS_EXTENDED_OUTSIDE_OF_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInterfaceClassExtendedOutsideOfLibrary(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInterfaceClassExtendedOutsideOfLibrary, - problemMessage: - """The class '${name}' can't be extended outside of its library because it's an interface class.""", - arguments: {'name': name}); + return new Message( + codeInterfaceClassExtendedOutsideOfLibrary, + problemMessage: + """The class '${name}' can't be extended outside of its library because it's an interface class.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInterfaceEnum = messageInterfaceEnum; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageInterfaceEnum = const MessageCode("InterfaceEnum", - index: 157, - problemMessage: r"""Enums can't be declared to be 'interface'.""", - correctionMessage: r"""Try removing the keyword 'interface'."""); +const MessageCode messageInterfaceEnum = const MessageCode( + "InterfaceEnum", + index: 157, + problemMessage: r"""Enums can't be declared to be 'interface'.""", + correctionMessage: r"""Try removing the keyword 'interface'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInterfaceMixin = messageInterfaceMixin; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageInterfaceMixin = const MessageCode("InterfaceMixin", - index: 147, - problemMessage: r"""A mixin can't be declared 'interface'.""", - correctionMessage: r"""Try removing the 'interface' keyword."""); +const MessageCode messageInterfaceMixin = const MessageCode( + "InterfaceMixin", + index: 147, + problemMessage: r"""A mixin can't be declared 'interface'.""", + correctionMessage: r"""Try removing the 'interface' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInterfaceMixinClass = messageInterfaceMixinClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInterfaceMixinClass = const MessageCode( - "InterfaceMixinClass", - index: 143, - problemMessage: r"""A mixin class can't be declared 'interface'.""", - correctionMessage: r"""Try removing the 'interface' keyword."""); + "InterfaceMixinClass", + index: 143, + problemMessage: r"""A mixin class can't be declared 'interface'.""", + correctionMessage: r"""Try removing the 'interface' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemAlreadyInitialized = @@ -7348,10 +8683,11 @@ const Code codeInternalProblemAlreadyInitialized = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInternalProblemAlreadyInitialized = const MessageCode( - "InternalProblemAlreadyInitialized", - severity: Severity.internalProblem, - problemMessage: - r"""Attempt to set initializer on field without initializer."""); + "InternalProblemAlreadyInitialized", + severity: Severity.internalProblem, + problemMessage: + r"""Attempt to set initializer on field without initializer.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemBodyOnAbstractMethod = @@ -7359,24 +8695,28 @@ const Code codeInternalProblemBodyOnAbstractMethod = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInternalProblemBodyOnAbstractMethod = - const MessageCode("InternalProblemBodyOnAbstractMethod", - severity: Severity.internalProblem, - problemMessage: r"""Attempting to set body on abstract method."""); + const MessageCode( + "InternalProblemBodyOnAbstractMethod", + severity: Severity.internalProblem, + problemMessage: r"""Attempting to set body on abstract method.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemConstructorNotFound = const Template( - "InternalProblemConstructorNotFound", - problemMessageTemplate: r"""No constructor named '#name' in '#uri'.""", - withArguments: _withArgumentsInternalProblemConstructorNotFound); + "InternalProblemConstructorNotFound", + problemMessageTemplate: r"""No constructor named '#name' in '#uri'.""", + withArguments: _withArgumentsInternalProblemConstructorNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemConstructorNotFound = const Code( - "InternalProblemConstructorNotFound", - severity: Severity.internalProblem); + "InternalProblemConstructorNotFound", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemConstructorNotFound( @@ -7384,58 +8724,77 @@ Message _withArgumentsInternalProblemConstructorNotFound( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); String? uri = relativizeUri(uri_); - return new Message(codeInternalProblemConstructorNotFound, - problemMessage: """No constructor named '${name}' in '${uri}'.""", - arguments: {'name': name, 'uri': uri_}); + return new Message( + codeInternalProblemConstructorNotFound, + problemMessage: """No constructor named '${name}' in '${uri}'.""", + arguments: { + 'name': name, + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemContextSeverity = const Template( - "InternalProblemContextSeverity", - problemMessageTemplate: - r"""Non-context message has context severity: #string""", - withArguments: _withArgumentsInternalProblemContextSeverity); + "InternalProblemContextSeverity", + problemMessageTemplate: + r"""Non-context message has context severity: #string""", + withArguments: _withArgumentsInternalProblemContextSeverity, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemContextSeverity = const Code( - "InternalProblemContextSeverity", - severity: Severity.internalProblem); + "InternalProblemContextSeverity", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemContextSeverity(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeInternalProblemContextSeverity, - problemMessage: """Non-context message has context severity: ${string}""", - arguments: {'string': string}); + return new Message( + codeInternalProblemContextSeverity, + problemMessage: """Non-context message has context severity: ${string}""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemDebugAbort = const Template( - "InternalProblemDebugAbort", - problemMessageTemplate: r"""Compilation aborted due to fatal '#name' at: + "InternalProblemDebugAbort", + problemMessageTemplate: r"""Compilation aborted due to fatal '#name' at: #string""", - withArguments: _withArgumentsInternalProblemDebugAbort); + withArguments: _withArgumentsInternalProblemDebugAbort, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemDebugAbort = const Code( - "InternalProblemDebugAbort", - severity: Severity.internalProblem); + "InternalProblemDebugAbort", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemDebugAbort(String name, String string) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeInternalProblemDebugAbort, - problemMessage: """Compilation aborted due to fatal '${name}' at: -${string}""", arguments: {'name': name, 'string': string}); + return new Message( + codeInternalProblemDebugAbort, + problemMessage: """Compilation aborted due to fatal '${name}' at: +${string}""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -7444,9 +8803,11 @@ const Code codeInternalProblemExtendingUnmodifiableScope = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInternalProblemExtendingUnmodifiableScope = - const MessageCode("InternalProblemExtendingUnmodifiableScope", - severity: Severity.internalProblem, - problemMessage: r"""Can't extend an unmodifiable scope."""); + const MessageCode( + "InternalProblemExtendingUnmodifiableScope", + severity: Severity.internalProblem, + problemMessage: r"""Can't extend an unmodifiable scope.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemLabelUsageInVariablesDeclaration = @@ -7454,10 +8815,12 @@ const Code codeInternalProblemLabelUsageInVariablesDeclaration = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInternalProblemLabelUsageInVariablesDeclaration = - const MessageCode("InternalProblemLabelUsageInVariablesDeclaration", - severity: Severity.internalProblem, - problemMessage: - r"""Unexpected usage of label inside declaration of variables."""); + const MessageCode( + "InternalProblemLabelUsageInVariablesDeclaration", + severity: Severity.internalProblem, + problemMessage: + r"""Unexpected usage of label inside declaration of variables.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemMissingContext = @@ -7465,46 +8828,57 @@ const Code codeInternalProblemMissingContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInternalProblemMissingContext = const MessageCode( - "InternalProblemMissingContext", - severity: Severity.internalProblem, - problemMessage: r"""Compiler cannot run without a compiler context.""", - correctionMessage: - r"""Are calls to the compiler wrapped in CompilerContext.runInContext?"""); + "InternalProblemMissingContext", + severity: Severity.internalProblem, + problemMessage: r"""Compiler cannot run without a compiler context.""", + correctionMessage: + r"""Are calls to the compiler wrapped in CompilerContext.runInContext?""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemNotFound = - const Template("InternalProblemNotFound", - problemMessageTemplate: r"""Couldn't find '#name'.""", - withArguments: _withArgumentsInternalProblemNotFound); + const Template( + "InternalProblemNotFound", + problemMessageTemplate: r"""Couldn't find '#name'.""", + withArguments: _withArgumentsInternalProblemNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemNotFound = - const Code("InternalProblemNotFound", - severity: Severity.internalProblem); + const Code( + "InternalProblemNotFound", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInternalProblemNotFound, - problemMessage: """Couldn't find '${name}'.""", - arguments: {'name': name}); + return new Message( + codeInternalProblemNotFound, + problemMessage: """Couldn't find '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemNotFoundIn = const Template( - "InternalProblemNotFoundIn", - problemMessageTemplate: r"""Couldn't find '#name' in '#name2'.""", - withArguments: _withArgumentsInternalProblemNotFoundIn); + "InternalProblemNotFoundIn", + problemMessageTemplate: r"""Couldn't find '#name' in '#name2'.""", + withArguments: _withArgumentsInternalProblemNotFoundIn, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemNotFoundIn = const Code( - "InternalProblemNotFoundIn", - severity: Severity.internalProblem); + "InternalProblemNotFoundIn", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemNotFoundIn(String name, String name2) { @@ -7512,9 +8886,14 @@ Message _withArgumentsInternalProblemNotFoundIn(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeInternalProblemNotFoundIn, - problemMessage: """Couldn't find '${name}' in '${name2}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeInternalProblemNotFoundIn, + problemMessage: """Couldn't find '${name}' in '${name2}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -7523,10 +8902,12 @@ const Code codeInternalProblemOmittedTypeNameInConstructorReference = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInternalProblemOmittedTypeNameInConstructorReference = - const MessageCode("InternalProblemOmittedTypeNameInConstructorReference", - severity: Severity.internalProblem, - problemMessage: - r"""Unsupported omission of the type name in a constructor reference outside of an enum element declaration."""); + const MessageCode( + "InternalProblemOmittedTypeNameInConstructorReference", + severity: Severity.internalProblem, + problemMessage: + r"""Unsupported omission of the type name in a constructor reference outside of an enum element declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemPreviousTokenNotFound = @@ -7534,33 +8915,40 @@ const Code codeInternalProblemPreviousTokenNotFound = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInternalProblemPreviousTokenNotFound = - const MessageCode("InternalProblemPreviousTokenNotFound", - severity: Severity.internalProblem, - problemMessage: r"""Couldn't find previous token."""); + const MessageCode( + "InternalProblemPreviousTokenNotFound", + severity: Severity.internalProblem, + problemMessage: r"""Couldn't find previous token.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemPrivateConstructorAccess = const Template( - "InternalProblemPrivateConstructorAccess", - problemMessageTemplate: - r"""Can't access private constructor '#name'.""", - withArguments: _withArgumentsInternalProblemPrivateConstructorAccess); + "InternalProblemPrivateConstructorAccess", + problemMessageTemplate: r"""Can't access private constructor '#name'.""", + withArguments: _withArgumentsInternalProblemPrivateConstructorAccess, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemPrivateConstructorAccess = const Code( - "InternalProblemPrivateConstructorAccess", - severity: Severity.internalProblem); + "InternalProblemPrivateConstructorAccess", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemPrivateConstructorAccess(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInternalProblemPrivateConstructorAccess, - problemMessage: """Can't access private constructor '${name}'.""", - arguments: {'name': name}); + return new Message( + codeInternalProblemPrivateConstructorAccess, + problemMessage: """Can't access private constructor '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -7569,79 +8957,95 @@ const Code codeInternalProblemProvidedBothCompileSdkAndSdkSummary = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInternalProblemProvidedBothCompileSdkAndSdkSummary = - const MessageCode("InternalProblemProvidedBothCompileSdkAndSdkSummary", - severity: Severity.internalProblem, - problemMessage: - r"""The compileSdk and sdkSummary options are mutually exclusive"""); + const MessageCode( + "InternalProblemProvidedBothCompileSdkAndSdkSummary", + severity: Severity.internalProblem, + problemMessage: + r"""The compileSdk and sdkSummary options are mutually exclusive""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemStackNotEmpty = const Template( - "InternalProblemStackNotEmpty", - problemMessageTemplate: r"""#name.stack isn't empty: + "InternalProblemStackNotEmpty", + problemMessageTemplate: r"""#name.stack isn't empty: #string""", - withArguments: _withArgumentsInternalProblemStackNotEmpty); + withArguments: _withArgumentsInternalProblemStackNotEmpty, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemStackNotEmpty = const Code( - "InternalProblemStackNotEmpty", - severity: Severity.internalProblem); + "InternalProblemStackNotEmpty", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemStackNotEmpty(String name, String string) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeInternalProblemStackNotEmpty, - problemMessage: """${name}.stack isn't empty: - ${string}""", arguments: {'name': name, 'string': string}); + return new Message( + codeInternalProblemStackNotEmpty, + problemMessage: """${name}.stack isn't empty: + ${string}""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemUnexpected = const Template( - "InternalProblemUnexpected", - problemMessageTemplate: r"""Expected '#string', but got '#string2'.""", - withArguments: _withArgumentsInternalProblemUnexpected); + "InternalProblemUnexpected", + problemMessageTemplate: r"""Expected '#string', but got '#string2'.""", + withArguments: _withArgumentsInternalProblemUnexpected, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemUnexpected = const Code( - "InternalProblemUnexpected", - severity: Severity.internalProblem); + "InternalProblemUnexpected", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemUnexpected(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeInternalProblemUnexpected, - problemMessage: """Expected '${string}', but got '${string2}'.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeInternalProblemUnexpected, + problemMessage: """Expected '${string}', but got '${string2}'.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - Uri - uri_)> templateInternalProblemUnfinishedTypeVariable = const Template< - Message Function(String name, Uri uri_)>( - "InternalProblemUnfinishedTypeVariable", - problemMessageTemplate: - r"""Unfinished type variable '#name' found in non-source library '#uri'.""", - withArguments: _withArgumentsInternalProblemUnfinishedTypeVariable); +const Template + templateInternalProblemUnfinishedTypeVariable = + const Template( + "InternalProblemUnfinishedTypeVariable", + problemMessageTemplate: + r"""Unfinished type variable '#name' found in non-source library '#uri'.""", + withArguments: _withArgumentsInternalProblemUnfinishedTypeVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemUnfinishedTypeVariable = const Code( - "InternalProblemUnfinishedTypeVariable", - severity: Severity.internalProblem); + "InternalProblemUnfinishedTypeVariable", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemUnfinishedTypeVariable( @@ -7649,122 +9053,162 @@ Message _withArgumentsInternalProblemUnfinishedTypeVariable( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); String? uri = relativizeUri(uri_); - return new Message(codeInternalProblemUnfinishedTypeVariable, - problemMessage: - """Unfinished type variable '${name}' found in non-source library '${uri}'.""", - arguments: {'name': name, 'uri': uri_}); + return new Message( + codeInternalProblemUnfinishedTypeVariable, + problemMessage: + """Unfinished type variable '${name}' found in non-source library '${uri}'.""", + arguments: { + 'name': name, + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemUnhandled = const Template( - "InternalProblemUnhandled", - problemMessageTemplate: r"""Unhandled #string in #string2.""", - withArguments: _withArgumentsInternalProblemUnhandled); + "InternalProblemUnhandled", + problemMessageTemplate: r"""Unhandled #string in #string2.""", + withArguments: _withArgumentsInternalProblemUnhandled, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemUnhandled = const Code( - "InternalProblemUnhandled", - severity: Severity.internalProblem); + "InternalProblemUnhandled", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemUnhandled(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeInternalProblemUnhandled, - problemMessage: """Unhandled ${string} in ${string2}.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeInternalProblemUnhandled, + problemMessage: """Unhandled ${string} in ${string2}.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemUnimplemented = const Template( - "InternalProblemUnimplemented", - problemMessageTemplate: r"""Unimplemented #string.""", - withArguments: _withArgumentsInternalProblemUnimplemented); + "InternalProblemUnimplemented", + problemMessageTemplate: r"""Unimplemented #string.""", + withArguments: _withArgumentsInternalProblemUnimplemented, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemUnimplemented = - const Code("InternalProblemUnimplemented", - severity: Severity.internalProblem); + const Code( + "InternalProblemUnimplemented", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemUnimplemented(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeInternalProblemUnimplemented, - problemMessage: """Unimplemented ${string}.""", - arguments: {'string': string}); + return new Message( + codeInternalProblemUnimplemented, + problemMessage: """Unimplemented ${string}.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemUnsupported = - const Template("InternalProblemUnsupported", - problemMessageTemplate: r"""Unsupported operation: '#name'.""", - withArguments: _withArgumentsInternalProblemUnsupported); + const Template( + "InternalProblemUnsupported", + problemMessageTemplate: r"""Unsupported operation: '#name'.""", + withArguments: _withArgumentsInternalProblemUnsupported, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemUnsupported = - const Code("InternalProblemUnsupported", - severity: Severity.internalProblem); + const Code( + "InternalProblemUnsupported", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemUnsupported(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInternalProblemUnsupported, - problemMessage: """Unsupported operation: '${name}'.""", - arguments: {'name': name}); + return new Message( + codeInternalProblemUnsupported, + problemMessage: """Unsupported operation: '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemUriMissingScheme = const Template( - "InternalProblemUriMissingScheme", - problemMessageTemplate: r"""The URI '#uri' has no scheme.""", - withArguments: _withArgumentsInternalProblemUriMissingScheme); + "InternalProblemUriMissingScheme", + problemMessageTemplate: r"""The URI '#uri' has no scheme.""", + withArguments: _withArgumentsInternalProblemUriMissingScheme, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemUriMissingScheme = - const Code("InternalProblemUriMissingScheme", - severity: Severity.internalProblem); + const Code( + "InternalProblemUriMissingScheme", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemUriMissingScheme(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codeInternalProblemUriMissingScheme, - problemMessage: """The URI '${uri}' has no scheme.""", - arguments: {'uri': uri_}); + return new Message( + codeInternalProblemUriMissingScheme, + problemMessage: """The URI '${uri}' has no scheme.""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInternalProblemVerificationError = const Template( - "InternalProblemVerificationError", - problemMessageTemplate: - r"""Verification of the generated program failed: + "InternalProblemVerificationError", + problemMessageTemplate: r"""Verification of the generated program failed: #string""", - withArguments: _withArgumentsInternalProblemVerificationError); + withArguments: _withArgumentsInternalProblemVerificationError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInternalProblemVerificationError = const Code( - "InternalProblemVerificationError", - severity: Severity.internalProblem); + "InternalProblemVerificationError", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemVerificationError(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeInternalProblemVerificationError, - problemMessage: """Verification of the generated program failed: -${string}""", arguments: {'string': string}); + return new Message( + codeInternalProblemVerificationError, + problemMessage: """Verification of the generated program failed: +${string}""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -7772,35 +9216,41 @@ const Code codeInterpolationInUri = messageInterpolationInUri; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInterpolationInUri = const MessageCode( - "InterpolationInUri", - analyzerCodes: ["INVALID_LITERAL_IN_CONFIGURATION"], - problemMessage: r"""Can't use string interpolation in a URI."""); + "InterpolationInUri", + analyzerCodes: ["INVALID_LITERAL_IN_CONFIGURATION"], + problemMessage: r"""Can't use string interpolation in a URI.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidAugmentSuper = messageInvalidAugmentSuper; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidAugmentSuper = const MessageCode( - "InvalidAugmentSuper", - problemMessage: - r"""'augment super' is only allowed in member augmentations."""); + "InvalidAugmentSuper", + problemMessage: + r"""'augment super' is only allowed in member augmentations.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidAwaitFor = messageInvalidAwaitFor; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageInvalidAwaitFor = const MessageCode("InvalidAwaitFor", - index: 9, - problemMessage: - r"""The keyword 'await' isn't allowed for a normal 'for' statement.""", - correctionMessage: - r"""Try removing the keyword, or use a for-each statement."""); +const MessageCode messageInvalidAwaitFor = const MessageCode( + "InvalidAwaitFor", + index: 9, + problemMessage: + r"""The keyword 'await' isn't allowed for a normal 'for' statement.""", + correctionMessage: + r"""Try removing the keyword, or use a for-each statement.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidBreakTarget = - const Template("InvalidBreakTarget", - problemMessageTemplate: r"""Can't break to '#name'.""", - withArguments: _withArgumentsInvalidBreakTarget); + const Template( + "InvalidBreakTarget", + problemMessageTemplate: r"""Can't break to '#name'.""", + withArguments: _withArgumentsInvalidBreakTarget, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidBreakTarget = @@ -7812,9 +9262,13 @@ const Code codeInvalidBreakTarget = Message _withArgumentsInvalidBreakTarget(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInvalidBreakTarget, - problemMessage: """Can't break to '${name}'.""", - arguments: {'name': name}); + return new Message( + codeInvalidBreakTarget, + problemMessage: """Can't break to '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -7822,46 +9276,54 @@ const Code codeInvalidCatchArguments = messageInvalidCatchArguments; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidCatchArguments = const MessageCode( - "InvalidCatchArguments", - analyzerCodes: ["INVALID_CATCH_ARGUMENTS"], - problemMessage: r"""Invalid catch arguments."""); + "InvalidCatchArguments", + analyzerCodes: ["INVALID_CATCH_ARGUMENTS"], + problemMessage: r"""Invalid catch arguments.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidCodePoint = messageInvalidCodePoint; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidCodePoint = const MessageCode( - "InvalidCodePoint", - analyzerCodes: ["INVALID_CODE_POINT"], - problemMessage: - r"""The escape sequence starting with '\u' isn't a valid code point."""); + "InvalidCodePoint", + analyzerCodes: ["INVALID_CODE_POINT"], + problemMessage: + r"""The escape sequence starting with '\u' isn't a valid code point.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateInvalidConstantPatternBinary = const Template< - Message Function(String name)>("InvalidConstantPatternBinary", - problemMessageTemplate: - r"""The binary operator #name is not supported as a constant pattern.""", - correctionMessageTemplate: - r"""Try wrapping the expression in 'const ( ... )'.""", - withArguments: _withArgumentsInvalidConstantPatternBinary); +const Template + templateInvalidConstantPatternBinary = + const Template( + "InvalidConstantPatternBinary", + problemMessageTemplate: + r"""The binary operator #name is not supported as a constant pattern.""", + correctionMessageTemplate: + r"""Try wrapping the expression in 'const ( ... )'.""", + withArguments: _withArgumentsInvalidConstantPatternBinary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidConstantPatternBinary = - const Code("InvalidConstantPatternBinary", - index: 141); + const Code( + "InvalidConstantPatternBinary", + index: 141, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidConstantPatternBinary(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInvalidConstantPatternBinary, - problemMessage: - """The binary operator ${name} is not supported as a constant pattern.""", - correctionMessage: """Try wrapping the expression in 'const ( ... )'.""", - arguments: {'name': name}); + return new Message( + codeInvalidConstantPatternBinary, + problemMessage: + """The binary operator ${name} is not supported as a constant pattern.""", + correctionMessage: """Try wrapping the expression in 'const ( ... )'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -7870,12 +9332,13 @@ const Code codeInvalidConstantPatternConstPrefix = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidConstantPatternConstPrefix = const MessageCode( - "InvalidConstantPatternConstPrefix", - index: 140, - problemMessage: - r"""The expression can't be prefixed by 'const' to form a constant pattern.""", - correctionMessage: - r"""Try wrapping the expression in 'const ( ... )' instead."""); + "InvalidConstantPatternConstPrefix", + index: 140, + problemMessage: + r"""The expression can't be prefixed by 'const' to form a constant pattern.""", + correctionMessage: + r"""Try wrapping the expression in 'const ( ... )' instead.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidConstantPatternDuplicateConst = @@ -7883,11 +9346,12 @@ const Code codeInvalidConstantPatternDuplicateConst = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidConstantPatternDuplicateConst = - const MessageCode("InvalidConstantPatternDuplicateConst", - index: 137, - problemMessage: - r"""Duplicate 'const' keyword in constant expression.""", - correctionMessage: r"""Try removing one of the 'const' keywords."""); + const MessageCode( + "InvalidConstantPatternDuplicateConst", + index: 137, + problemMessage: r"""Duplicate 'const' keyword in constant expression.""", + correctionMessage: r"""Try removing one of the 'const' keywords.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidConstantPatternEmptyRecordLiteral = @@ -7895,10 +9359,12 @@ const Code codeInvalidConstantPatternEmptyRecordLiteral = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidConstantPatternEmptyRecordLiteral = - const MessageCode("InvalidConstantPatternEmptyRecordLiteral", - index: 138, - problemMessage: - r"""The empty record literal is not supported as a constant pattern."""); + const MessageCode( + "InvalidConstantPatternEmptyRecordLiteral", + index: 138, + problemMessage: + r"""The empty record literal is not supported as a constant pattern.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidConstantPatternGeneric = @@ -7906,11 +9372,12 @@ const Code codeInvalidConstantPatternGeneric = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidConstantPatternGeneric = const MessageCode( - "InvalidConstantPatternGeneric", - index: 139, - problemMessage: - r"""This expression is not supported as a constant pattern.""", - correctionMessage: r"""Try wrapping the expression in 'const ( ... )'."""); + "InvalidConstantPatternGeneric", + index: 139, + problemMessage: + r"""This expression is not supported as a constant pattern.""", + correctionMessage: r"""Try wrapping the expression in 'const ( ... )'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidConstantPatternNegation = @@ -7918,45 +9385,54 @@ const Code codeInvalidConstantPatternNegation = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidConstantPatternNegation = const MessageCode( - "InvalidConstantPatternNegation", - index: 135, - problemMessage: - r"""Only negation of a numeric literal is supported as a constant pattern.""", - correctionMessage: r"""Try wrapping the expression in 'const ( ... )'."""); + "InvalidConstantPatternNegation", + index: 135, + problemMessage: + r"""Only negation of a numeric literal is supported as a constant pattern.""", + correctionMessage: r"""Try wrapping the expression in 'const ( ... )'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateInvalidConstantPatternUnary = const Template< - Message Function(String name)>("InvalidConstantPatternUnary", - problemMessageTemplate: - r"""The unary operator #name is not supported as a constant pattern.""", - correctionMessageTemplate: - r"""Try wrapping the expression in 'const ( ... )'.""", - withArguments: _withArgumentsInvalidConstantPatternUnary); +const Template + templateInvalidConstantPatternUnary = + const Template( + "InvalidConstantPatternUnary", + problemMessageTemplate: + r"""The unary operator #name is not supported as a constant pattern.""", + correctionMessageTemplate: + r"""Try wrapping the expression in 'const ( ... )'.""", + withArguments: _withArgumentsInvalidConstantPatternUnary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidConstantPatternUnary = - const Code("InvalidConstantPatternUnary", - index: 136); + const Code( + "InvalidConstantPatternUnary", + index: 136, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidConstantPatternUnary(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInvalidConstantPatternUnary, - problemMessage: - """The unary operator ${name} is not supported as a constant pattern.""", - correctionMessage: """Try wrapping the expression in 'const ( ... )'.""", - arguments: {'name': name}); + return new Message( + codeInvalidConstantPatternUnary, + problemMessage: + """The unary operator ${name} is not supported as a constant pattern.""", + correctionMessage: """Try wrapping the expression in 'const ( ... )'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidContinueTarget = - const Template("InvalidContinueTarget", - problemMessageTemplate: r"""Can't continue at '#name'.""", - withArguments: _withArgumentsInvalidContinueTarget); + const Template( + "InvalidContinueTarget", + problemMessageTemplate: r"""Can't continue at '#name'.""", + withArguments: _withArgumentsInvalidContinueTarget, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidContinueTarget = @@ -7968,9 +9444,13 @@ const Code codeInvalidContinueTarget = Message _withArgumentsInvalidContinueTarget(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInvalidContinueTarget, - problemMessage: """Can't continue at '${name}'.""", - arguments: {'name': name}); + return new Message( + codeInvalidContinueTarget, + problemMessage: """Can't continue at '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -7978,85 +9458,100 @@ const Code codeInvalidEscapeStarted = messageInvalidEscapeStarted; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidEscapeStarted = const MessageCode( - "InvalidEscapeStarted", - index: 126, - problemMessage: r"""The string '\' can't stand alone.""", - correctionMessage: - r"""Try adding another backslash (\) to escape the '\'."""); + "InvalidEscapeStarted", + index: 126, + problemMessage: r"""The string '\' can't stand alone.""", + correctionMessage: r"""Try adding another backslash (\) to escape the '\'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidGetterSetterTypeFieldContext = const Template( - "InvalidGetterSetterTypeFieldContext", - problemMessageTemplate: - r"""This is the declaration of the field '#name'.""", - withArguments: _withArgumentsInvalidGetterSetterTypeFieldContext); + "InvalidGetterSetterTypeFieldContext", + problemMessageTemplate: r"""This is the declaration of the field '#name'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeFieldContext, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidGetterSetterTypeFieldContext = const Code( - "InvalidGetterSetterTypeFieldContext", - severity: Severity.context); + "InvalidGetterSetterTypeFieldContext", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidGetterSetterTypeFieldContext(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInvalidGetterSetterTypeFieldContext, - problemMessage: """This is the declaration of the field '${name}'.""", - arguments: {'name': name}); + return new Message( + codeInvalidGetterSetterTypeFieldContext, + problemMessage: """This is the declaration of the field '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidGetterSetterTypeGetterContext = const Template( - "InvalidGetterSetterTypeGetterContext", - problemMessageTemplate: - r"""This is the declaration of the getter '#name'.""", - withArguments: _withArgumentsInvalidGetterSetterTypeGetterContext); + "InvalidGetterSetterTypeGetterContext", + problemMessageTemplate: r"""This is the declaration of the getter '#name'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeGetterContext, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidGetterSetterTypeGetterContext = const Code( - "InvalidGetterSetterTypeGetterContext", - severity: Severity.context); + "InvalidGetterSetterTypeGetterContext", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidGetterSetterTypeGetterContext(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInvalidGetterSetterTypeGetterContext, - problemMessage: """This is the declaration of the getter '${name}'.""", - arguments: {'name': name}); + return new Message( + codeInvalidGetterSetterTypeGetterContext, + problemMessage: """This is the declaration of the getter '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidGetterSetterTypeSetterContext = const Template( - "InvalidGetterSetterTypeSetterContext", - problemMessageTemplate: - r"""This is the declaration of the setter '#name'.""", - withArguments: _withArgumentsInvalidGetterSetterTypeSetterContext); + "InvalidGetterSetterTypeSetterContext", + problemMessageTemplate: r"""This is the declaration of the setter '#name'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeSetterContext, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidGetterSetterTypeSetterContext = const Code( - "InvalidGetterSetterTypeSetterContext", - severity: Severity.context); + "InvalidGetterSetterTypeSetterContext", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidGetterSetterTypeSetterContext(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInvalidGetterSetterTypeSetterContext, - problemMessage: """This is the declaration of the setter '${name}'.""", - arguments: {'name': name}); + return new Message( + codeInvalidGetterSetterTypeSetterContext, + problemMessage: """This is the declaration of the setter '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -8064,21 +9559,23 @@ const Code codeInvalidHexEscape = messageInvalidHexEscape; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidHexEscape = const MessageCode( - "InvalidHexEscape", - index: 40, - problemMessage: - r"""An escape sequence starting with '\x' must be followed by 2 hexadecimal digits."""); + "InvalidHexEscape", + index: 40, + problemMessage: + r"""An escape sequence starting with '\x' must be followed by 2 hexadecimal digits.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidInitializer = messageInvalidInitializer; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidInitializer = const MessageCode( - "InvalidInitializer", - index: 90, - problemMessage: r"""Not a valid initializer.""", - correctionMessage: - r"""To initialize a field, use the syntax 'name = value'."""); + "InvalidInitializer", + index: 90, + problemMessage: r"""Not a valid initializer.""", + correctionMessage: + r"""To initialize a field, use the syntax 'name = value'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidInlineFunctionType = @@ -8086,12 +9583,13 @@ const Code codeInvalidInlineFunctionType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidInlineFunctionType = const MessageCode( - "InvalidInlineFunctionType", - analyzerCodes: ["INVALID_INLINE_FUNCTION_TYPE"], - problemMessage: - r"""Inline function types cannot be used for parameters in a generic function type.""", - correctionMessage: - r"""Try changing the inline function type (as in 'int f()') to a prefixed function type using the `Function` keyword (as in 'int Function() f')."""); + "InvalidInlineFunctionType", + analyzerCodes: ["INVALID_INLINE_FUNCTION_TYPE"], + problemMessage: + r"""Inline function types cannot be used for parameters in a generic function type.""", + correctionMessage: + r"""Try changing the inline function type (as in 'int f()') to a prefixed function type using the `Function` keyword (as in 'int Function() f').""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidInsideUnaryPattern = @@ -8099,49 +9597,61 @@ const Code codeInvalidInsideUnaryPattern = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidInsideUnaryPattern = const MessageCode( - "InvalidInsideUnaryPattern", - index: 150, - problemMessage: - r"""This pattern cannot appear inside a unary pattern (cast pattern, null check pattern, or null assert pattern) without parentheses.""", - correctionMessage: - r"""Try combining into a single pattern if possible, or enclose the inner pattern in parentheses."""); + "InvalidInsideUnaryPattern", + index: 150, + problemMessage: + r"""This pattern cannot appear inside a unary pattern (cast pattern, null check pattern, or null assert pattern) without parentheses.""", + correctionMessage: + r"""Try combining into a single pattern if possible, or enclose the inner pattern in parentheses.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidNnbdDillLibrary = messageInvalidNnbdDillLibrary; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidNnbdDillLibrary = const MessageCode( - "InvalidNnbdDillLibrary", - problemMessage: r"""Trying to use library with invalid null safety."""); + "InvalidNnbdDillLibrary", + problemMessage: r"""Trying to use library with invalid null safety.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidOperator = - const Template("InvalidOperator", - problemMessageTemplate: - r"""The string '#lexeme' isn't a user-definable operator.""", - withArguments: _withArgumentsInvalidOperator); + const Template( + "InvalidOperator", + problemMessageTemplate: + r"""The string '#lexeme' isn't a user-definable operator.""", + withArguments: _withArgumentsInvalidOperator, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidOperator = - const Code("InvalidOperator", index: 39); + const Code( + "InvalidOperator", + index: 39, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidOperator(Token token) { String lexeme = token.lexeme; - return new Message(codeInvalidOperator, - problemMessage: - """The string '${lexeme}' isn't a user-definable operator.""", - arguments: {'lexeme': token}); + return new Message( + codeInvalidOperator, + problemMessage: + """The string '${lexeme}' isn't a user-definable operator.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidPackageUri = const Template( - "InvalidPackageUri", - problemMessageTemplate: r"""Invalid package URI '#uri': + "InvalidPackageUri", + problemMessageTemplate: r"""Invalid package URI '#uri': #string.""", - withArguments: _withArgumentsInvalidPackageUri); + withArguments: _withArgumentsInvalidPackageUri, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidPackageUri = @@ -8153,9 +9663,15 @@ const Code codeInvalidPackageUri = Message _withArgumentsInvalidPackageUri(Uri uri_, String string) { String? uri = relativizeUri(uri_); if (string.isEmpty) throw 'No string provided'; - return new Message(codeInvalidPackageUri, - problemMessage: """Invalid package URI '${uri}': - ${string}.""", arguments: {'uri': uri_, 'string': string}); + return new Message( + codeInvalidPackageUri, + problemMessage: """Invalid package URI '${uri}': + ${string}.""", + arguments: { + 'uri': uri_, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -8164,44 +9680,43 @@ const Code codeInvalidSuperInInitializer = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidSuperInInitializer = const MessageCode( - "InvalidSuperInInitializer", - index: 47, - problemMessage: - r"""Can only use 'super' in an initializer for calling the superclass constructor (e.g. 'super()' or 'super.namedConstructor()')"""); + "InvalidSuperInInitializer", + index: 47, + problemMessage: + r"""Can only use 'super' in an initializer for calling the superclass constructor (e.g. 'super()' or 'super.namedConstructor()')""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidSyncModifier = messageInvalidSyncModifier; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidSyncModifier = const MessageCode( - "InvalidSyncModifier", - analyzerCodes: ["MISSING_STAR_AFTER_SYNC"], - problemMessage: r"""Invalid modifier 'sync'.""", - correctionMessage: r"""Try replacing 'sync' with 'sync*'."""); + "InvalidSyncModifier", + analyzerCodes: ["MISSING_STAR_AFTER_SYNC"], + problemMessage: r"""Invalid modifier 'sync'.""", + correctionMessage: r"""Try replacing 'sync' with 'sync*'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidThisInInitializer = messageInvalidThisInInitializer; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidThisInInitializer = const MessageCode( - "InvalidThisInInitializer", - index: 65, - problemMessage: - r"""Can only use 'this' in an initializer for field initialization (e.g. 'this.x = something') and constructor redirection (e.g. 'this()' or 'this.namedConstructor())"""); + "InvalidThisInInitializer", + index: 65, + problemMessage: + r"""Can only use 'this' in an initializer for field initialization (e.g. 'this.x = something') and constructor redirection (e.g. 'this()' or 'this.namedConstructor())""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String string2, - String - name2)> templateInvalidTypeVariableInSupertype = const Template< - Message Function( - String name, String string2, String name2)>( - "InvalidTypeVariableInSupertype", - problemMessageTemplate: - r"""Can't use implicitly 'out' variable '#name' in an '#string2' position in supertype '#name2'.""", - withArguments: _withArgumentsInvalidTypeVariableInSupertype); +const Template + templateInvalidTypeVariableInSupertype = + const Template( + "InvalidTypeVariableInSupertype", + problemMessageTemplate: + r"""Can't use implicitly 'out' variable '#name' in an '#string2' position in supertype '#name2'.""", + withArguments: _withArgumentsInvalidTypeVariableInSupertype, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8218,10 +9733,16 @@ Message _withArgumentsInvalidTypeVariableInSupertype( if (string2.isEmpty) throw 'No string provided'; if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeInvalidTypeVariableInSupertype, - problemMessage: - """Can't use implicitly 'out' variable '${name}' in an '${string2}' position in supertype '${name2}'.""", - arguments: {'name': name, 'string2': string2, 'name2': name2}); + return new Message( + codeInvalidTypeVariableInSupertype, + problemMessage: + """Can't use implicitly 'out' variable '${name}' in an '${string2}' position in supertype '${name2}'.""", + arguments: { + 'name': name, + 'string2': string2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -8229,13 +9750,13 @@ const Template< Message Function( String string, String name, String string2, String name2)> templateInvalidTypeVariableInSupertypeWithVariance = const Template< - Message Function( - String string, String name, String string2, String name2)>( - "InvalidTypeVariableInSupertypeWithVariance", - problemMessageTemplate: - r"""Can't use '#string' type variable '#name' in an '#string2' position in supertype '#name2'.""", - withArguments: - _withArgumentsInvalidTypeVariableInSupertypeWithVariance); + Message Function( + String string, String name, String string2, String name2)>( + "InvalidTypeVariableInSupertypeWithVariance", + problemMessageTemplate: + r"""Can't use '#string' type variable '#name' in an '#string2' position in supertype '#name2'.""", + withArguments: _withArgumentsInvalidTypeVariableInSupertypeWithVariance, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -8256,29 +9777,28 @@ Message _withArgumentsInvalidTypeVariableInSupertypeWithVariance( if (string2.isEmpty) throw 'No string provided'; if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeInvalidTypeVariableInSupertypeWithVariance, - problemMessage: - """Can't use '${string}' type variable '${name}' in an '${string2}' position in supertype '${name2}'.""", - arguments: { - 'string': string, - 'name': name, - 'string2': string2, - 'name2': name2 - }); + return new Message( + codeInvalidTypeVariableInSupertypeWithVariance, + problemMessage: + """Can't use '${string}' type variable '${name}' in an '${string2}' position in supertype '${name2}'.""", + arguments: { + 'string': string, + 'name': name, + 'string2': string2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String name, - String - string2)> templateInvalidTypeVariableVariancePosition = const Template< +const Template + templateInvalidTypeVariableVariancePosition = const Template< Message Function(String string, String name, String string2)>( - "InvalidTypeVariableVariancePosition", - problemMessageTemplate: - r"""Can't use '#string' type variable '#name' in an '#string2' position.""", - withArguments: _withArgumentsInvalidTypeVariableVariancePosition); + "InvalidTypeVariableVariancePosition", + problemMessageTemplate: + r"""Can't use '#string' type variable '#name' in an '#string2' position.""", + withArguments: _withArgumentsInvalidTypeVariableVariancePosition, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8294,21 +9814,27 @@ Message _withArgumentsInvalidTypeVariableVariancePosition( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string2.isEmpty) throw 'No string provided'; - return new Message(codeInvalidTypeVariableVariancePosition, - problemMessage: - """Can't use '${string}' type variable '${name}' in an '${string2}' position.""", - arguments: {'string': string, 'name': name, 'string2': string2}); + return new Message( + codeInvalidTypeVariableVariancePosition, + problemMessage: + """Can't use '${string}' type variable '${name}' in an '${string2}' position.""", + arguments: { + 'string': string, + 'name': name, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidTypeVariableVariancePositionInReturnType = const Template< - Message Function(String string, String name, String string2)>( - "InvalidTypeVariableVariancePositionInReturnType", - problemMessageTemplate: - r"""Can't use '#string' type variable '#name' in an '#string2' position in the return type.""", - withArguments: - _withArgumentsInvalidTypeVariableVariancePositionInReturnType); + Message Function(String string, String name, String string2)>( + "InvalidTypeVariableVariancePositionInReturnType", + problemMessageTemplate: + r"""Can't use '#string' type variable '#name' in an '#string2' position in the return type.""", + withArguments: _withArgumentsInvalidTypeVariableVariancePositionInReturnType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8324,10 +9850,16 @@ Message _withArgumentsInvalidTypeVariableVariancePositionInReturnType( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string2.isEmpty) throw 'No string provided'; - return new Message(codeInvalidTypeVariableVariancePositionInReturnType, - problemMessage: - """Can't use '${string}' type variable '${name}' in an '${string2}' position in the return type.""", - arguments: {'string': string, 'name': name, 'string2': string2}); + return new Message( + codeInvalidTypeVariableVariancePositionInReturnType, + problemMessage: + """Can't use '${string}' type variable '${name}' in an '${string2}' position in the return type.""", + arguments: { + 'string': string, + 'name': name, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -8336,10 +9868,11 @@ const Code codeInvalidUnicodeEscapeUBracket = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidUnicodeEscapeUBracket = const MessageCode( - "InvalidUnicodeEscapeUBracket", - index: 125, - problemMessage: - r"""An escape sequence starting with '\u{' must be followed by 1 to 6 hexadecimal digits followed by a '}'."""); + "InvalidUnicodeEscapeUBracket", + index: 125, + problemMessage: + r"""An escape sequence starting with '\u{' must be followed by 1 to 6 hexadecimal digits followed by a '}'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidUnicodeEscapeUNoBracket = @@ -8347,10 +9880,11 @@ const Code codeInvalidUnicodeEscapeUNoBracket = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidUnicodeEscapeUNoBracket = const MessageCode( - "InvalidUnicodeEscapeUNoBracket", - index: 124, - problemMessage: - r"""An escape sequence starting with '\u' must be followed by 4 hexadecimal digits."""); + "InvalidUnicodeEscapeUNoBracket", + index: 124, + problemMessage: + r"""An escape sequence starting with '\u' must be followed by 4 hexadecimal digits.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidUnicodeEscapeUStarted = @@ -8358,10 +9892,11 @@ const Code codeInvalidUnicodeEscapeUStarted = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidUnicodeEscapeUStarted = const MessageCode( - "InvalidUnicodeEscapeUStarted", - index: 38, - problemMessage: - r"""An escape sequence starting with '\u' must be followed by 4 hexadecimal digits or from 1 to 6 digits between '{' and '}'."""); + "InvalidUnicodeEscapeUStarted", + index: 38, + problemMessage: + r"""An escape sequence starting with '\u' must be followed by 4 hexadecimal digits or from 1 to 6 digits between '{' and '}'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidUseOfNullAwareAccess = @@ -8369,108 +9904,126 @@ const Code codeInvalidUseOfNullAwareAccess = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageInvalidUseOfNullAwareAccess = const MessageCode( - "InvalidUseOfNullAwareAccess", - analyzerCodes: ["INVALID_USE_OF_NULL_AWARE_ACCESS"], - problemMessage: r"""Cannot use '?.' here.""", - correctionMessage: r"""Try using '.'."""); + "InvalidUseOfNullAwareAccess", + analyzerCodes: ["INVALID_USE_OF_NULL_AWARE_ACCESS"], + problemMessage: r"""Cannot use '?.' here.""", + correctionMessage: r"""Try using '.'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidVoid = messageInvalidVoid; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageInvalidVoid = const MessageCode("InvalidVoid", - analyzerCodes: ["EXPECTED_TYPE_NAME"], - problemMessage: r"""Type 'void' can't be used here.""", - correctionMessage: - r"""Try removing 'void' keyword or replace it with 'var', 'final', or a type."""); +const MessageCode messageInvalidVoid = const MessageCode( + "InvalidVoid", + analyzerCodes: ["EXPECTED_TYPE_NAME"], + problemMessage: r"""Type 'void' can't be used here.""", + correctionMessage: + r"""Try removing 'void' keyword or replace it with 'var', 'final', or a type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvokeNonFunction = - const Template("InvokeNonFunction", - problemMessageTemplate: - r"""'#name' isn't a function or method and can't be invoked.""", - withArguments: _withArgumentsInvokeNonFunction); + const Template( + "InvokeNonFunction", + problemMessageTemplate: + r"""'#name' isn't a function or method and can't be invoked.""", + withArguments: _withArgumentsInvokeNonFunction, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvokeNonFunction = - const Code("InvokeNonFunction", - analyzerCodes: ["INVOCATION_OF_NON_FUNCTION"]); + const Code( + "InvokeNonFunction", + analyzerCodes: ["INVOCATION_OF_NON_FUNCTION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvokeNonFunction(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeInvokeNonFunction, - problemMessage: - """'${name}' isn't a function or method and can't be invoked.""", - arguments: {'name': name}); + return new Message( + codeInvokeNonFunction, + problemMessage: + """'${name}' isn't a function or method and can't be invoked.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateJointPatternVariableNotInAll = const Template< - Message Function(String name)>("JointPatternVariableNotInAll", - problemMessageTemplate: - r"""The variable '#name' is available in some, but not all cases that share this body.""", - withArguments: _withArgumentsJointPatternVariableNotInAll); +const Template + templateJointPatternVariableNotInAll = + const Template( + "JointPatternVariableNotInAll", + problemMessageTemplate: + r"""The variable '#name' is available in some, but not all cases that share this body.""", + withArguments: _withArgumentsJointPatternVariableNotInAll, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJointPatternVariableNotInAll = - const Code("JointPatternVariableNotInAll", - analyzerCodes: [ - "INVALID_PATTERN_VARIABLE_IN_SHARED_CASE_SCOPE" - ]); + const Code( + "JointPatternVariableNotInAll", + analyzerCodes: ["INVALID_PATTERN_VARIABLE_IN_SHARED_CASE_SCOPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsJointPatternVariableNotInAll(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJointPatternVariableNotInAll, - problemMessage: - """The variable '${name}' is available in some, but not all cases that share this body.""", - arguments: {'name': name}); + return new Message( + codeJointPatternVariableNotInAll, + problemMessage: + """The variable '${name}' is available in some, but not all cases that share this body.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateJointPatternVariableWithLabelDefault = const Template< - Message Function(String name)>("JointPatternVariableWithLabelDefault", - problemMessageTemplate: - r"""The variable '#name' is not available because there is a label or 'default' case.""", - withArguments: _withArgumentsJointPatternVariableWithLabelDefault); +const Template + templateJointPatternVariableWithLabelDefault = + const Template( + "JointPatternVariableWithLabelDefault", + problemMessageTemplate: + r"""The variable '#name' is not available because there is a label or 'default' case.""", + withArguments: _withArgumentsJointPatternVariableWithLabelDefault, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJointPatternVariableWithLabelDefault = const Code( - "JointPatternVariableWithLabelDefault", - analyzerCodes: [ - "INVALID_PATTERN_VARIABLE_IN_SHARED_CASE_SCOPE" - ]); + "JointPatternVariableWithLabelDefault", + analyzerCodes: ["INVALID_PATTERN_VARIABLE_IN_SHARED_CASE_SCOPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsJointPatternVariableWithLabelDefault(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJointPatternVariableWithLabelDefault, - problemMessage: - """The variable '${name}' is not available because there is a label or 'default' case.""", - arguments: {'name': name}); + return new Message( + codeJointPatternVariableWithLabelDefault, + problemMessage: + """The variable '${name}' is not available because there is a label or 'default' case.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateJointPatternVariablesMismatch = const Template< - Message Function(String name)>("JointPatternVariablesMismatch", - problemMessageTemplate: - r"""Variable pattern '#name' doesn't have the same type or finality in all cases.""", - withArguments: _withArgumentsJointPatternVariablesMismatch); +const Template + templateJointPatternVariablesMismatch = + const Template( + "JointPatternVariablesMismatch", + problemMessageTemplate: + r"""Variable pattern '#name' doesn't have the same type or finality in all cases.""", + withArguments: _withArgumentsJointPatternVariablesMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJointPatternVariablesMismatch = @@ -8482,25 +10035,27 @@ const Code codeJointPatternVariablesMismatch = Message _withArgumentsJointPatternVariablesMismatch(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJointPatternVariablesMismatch, - problemMessage: - """Variable pattern '${name}' doesn't have the same type or finality in all cases.""", - arguments: {'name': name}); + return new Message( + codeJointPatternVariablesMismatch, + problemMessage: + """Variable pattern '${name}' doesn't have the same type or finality in all cases.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateJsInteropDartClassExtendsJSClass = const Template< - Message Function(String name, String name2)>( - "JsInteropDartClassExtendsJSClass", - problemMessageTemplate: - r"""Dart class '#name' cannot extend JS interop class '#name2'.""", - correctionMessageTemplate: - r"""Try adding the JS interop annotation or removing it from the parent class.""", - withArguments: _withArgumentsJsInteropDartClassExtendsJSClass); +const Template + templateJsInteropDartClassExtendsJSClass = + const Template( + "JsInteropDartClassExtendsJSClass", + problemMessageTemplate: + r"""Dart class '#name' cannot extend JS interop class '#name2'.""", + correctionMessageTemplate: + r"""Try adding the JS interop annotation or removing it from the parent class.""", + withArguments: _withArgumentsJsInteropDartClassExtendsJSClass, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8516,12 +10071,17 @@ Message _withArgumentsJsInteropDartClassExtendsJSClass( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeJsInteropDartClassExtendsJSClass, - problemMessage: - """Dart class '${name}' cannot extend JS interop class '${name2}'.""", - correctionMessage: - """Try adding the JS interop annotation or removing it from the parent class.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeJsInteropDartClassExtendsJSClass, + problemMessage: + """Dart class '${name}' cannot extend JS interop class '${name2}'.""", + correctionMessage: + """Try adding the JS interop annotation or removing it from the parent class.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -8530,24 +10090,25 @@ const Code codeJsInteropDartJsInteropAnnotationForStaticInteropOnly = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropDartJsInteropAnnotationForStaticInteropOnly = - const MessageCode("JsInteropDartJsInteropAnnotationForStaticInteropOnly", - problemMessage: - r"""The '@JS' annotation from 'dart:js_interop' can only be used for static interop, either through extension types or '@staticInterop' classes.""", - correctionMessage: - r"""Try making this class an extension type or marking it as '@staticInterop'."""); + const MessageCode( + "JsInteropDartJsInteropAnnotationForStaticInteropOnly", + problemMessage: + r"""The '@JS' annotation from 'dart:js_interop' can only be used for static interop, either through extension types or '@staticInterop' classes.""", + correctionMessage: + r"""Try making this class an extension type or marking it as '@staticInterop'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> +const Template templateJsInteropDisallowedInteropLibraryInDart2Wasm = const Template( - "JsInteropDisallowedInteropLibraryInDart2Wasm", - problemMessageTemplate: - r"""JS interop library '#name' can't be imported when compiling to Wasm.""", - correctionMessageTemplate: - r"""Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.""", - withArguments: - _withArgumentsJsInteropDisallowedInteropLibraryInDart2Wasm); + "JsInteropDisallowedInteropLibraryInDart2Wasm", + problemMessageTemplate: + r"""JS interop library '#name' can't be imported when compiling to Wasm.""", + correctionMessageTemplate: + r"""Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.""", + withArguments: _withArgumentsJsInteropDisallowedInteropLibraryInDart2Wasm, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8561,11 +10122,16 @@ Message _withArgumentsJsInteropDisallowedInteropLibraryInDart2Wasm( String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJsInteropDisallowedInteropLibraryInDart2Wasm, - problemMessage: - """JS interop library '${name}' can't be imported when compiling to Wasm.""", - correctionMessage: """Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.""", - arguments: {'name': name}); + return new Message( + codeJsInteropDisallowedInteropLibraryInDart2Wasm, + problemMessage: + """JS interop library '${name}' can't be imported when compiling to Wasm.""", + correctionMessage: + """Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -8573,12 +10139,13 @@ const Code codeJsInteropEnclosingClassJSAnnotation = messageJsInteropEnclosingClassJSAnnotation; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageJsInteropEnclosingClassJSAnnotation = const MessageCode( - "JsInteropEnclosingClassJSAnnotation", - problemMessage: - r"""Member has a JS interop annotation but the enclosing class does not.""", - correctionMessage: - r"""Try adding the annotation to the enclosing class."""); +const MessageCode messageJsInteropEnclosingClassJSAnnotation = + const MessageCode( + "JsInteropEnclosingClassJSAnnotation", + problemMessage: + r"""Member has a JS interop annotation but the enclosing class does not.""", + correctionMessage: r"""Try adding the annotation to the enclosing class.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropEnclosingClassJSAnnotationContext = @@ -8586,20 +10153,23 @@ const Code codeJsInteropEnclosingClassJSAnnotationContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropEnclosingClassJSAnnotationContext = - const MessageCode("JsInteropEnclosingClassJSAnnotationContext", - severity: Severity.context, - problemMessage: r"""This is the enclosing class."""); + const MessageCode( + "JsInteropEnclosingClassJSAnnotationContext", + severity: Severity.context, + problemMessage: r"""This is the enclosing class.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropExportClassNotMarkedExportable = const Template( - "JsInteropExportClassNotMarkedExportable", - problemMessageTemplate: - r"""Class '#name' does not have a `@JSExport` on it or any of its members.""", - correctionMessageTemplate: - r"""Use the `@JSExport` annotation on this class.""", - withArguments: _withArgumentsJsInteropExportClassNotMarkedExportable); + "JsInteropExportClassNotMarkedExportable", + problemMessageTemplate: + r"""Class '#name' does not have a `@JSExport` on it or any of its members.""", + correctionMessageTemplate: + r"""Use the `@JSExport` annotation on this class.""", + withArguments: _withArgumentsJsInteropExportClassNotMarkedExportable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8612,54 +10182,64 @@ const Code Message _withArgumentsJsInteropExportClassNotMarkedExportable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJsInteropExportClassNotMarkedExportable, - problemMessage: - """Class '${name}' does not have a `@JSExport` on it or any of its members.""", - correctionMessage: """Use the `@JSExport` annotation on this class.""", - arguments: {'name': name}); + return new Message( + codeJsInteropExportClassNotMarkedExportable, + problemMessage: + """Class '${name}' does not have a `@JSExport` on it or any of its members.""", + correctionMessage: """Use the `@JSExport` annotation on this class.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropExportDartInterfaceHasNonEmptyJSExportValue = const Template( - "JsInteropExportDartInterfaceHasNonEmptyJSExportValue", - problemMessageTemplate: - r"""The value in the `@JSExport` annotation on the class or mixin '#name' will be ignored.""", - correctionMessageTemplate: r"""Remove the value in the annotation.""", - withArguments: - _withArgumentsJsInteropExportDartInterfaceHasNonEmptyJSExportValue); + "JsInteropExportDartInterfaceHasNonEmptyJSExportValue", + problemMessageTemplate: + r"""The value in the `@JSExport` annotation on the class or mixin '#name' will be ignored.""", + correctionMessageTemplate: r"""Remove the value in the annotation.""", + withArguments: + _withArgumentsJsInteropExportDartInterfaceHasNonEmptyJSExportValue, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropExportDartInterfaceHasNonEmptyJSExportValue = const Code( - "JsInteropExportDartInterfaceHasNonEmptyJSExportValue", - severity: Severity.warning); + "JsInteropExportDartInterfaceHasNonEmptyJSExportValue", + severity: Severity.warning, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsJsInteropExportDartInterfaceHasNonEmptyJSExportValue( String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJsInteropExportDartInterfaceHasNonEmptyJSExportValue, - problemMessage: - """The value in the `@JSExport` annotation on the class or mixin '${name}' will be ignored.""", - correctionMessage: """Remove the value in the annotation.""", - arguments: {'name': name}); + return new Message( + codeJsInteropExportDartInterfaceHasNonEmptyJSExportValue, + problemMessage: + """The value in the `@JSExport` annotation on the class or mixin '${name}' will be ignored.""", + correctionMessage: """Remove the value in the annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateJsInteropExportDisallowedMember = const Template< - Message Function(String name)>("JsInteropExportDisallowedMember", - problemMessageTemplate: - r"""Member '#name' is not a concrete instance member or declares type parameters, and therefore can't be exported.""", - correctionMessageTemplate: - r"""Remove the `@JSExport` annotation from the member, and use an instance member to call this member instead.""", - withArguments: _withArgumentsJsInteropExportDisallowedMember); +const Template + templateJsInteropExportDisallowedMember = + const Template( + "JsInteropExportDisallowedMember", + problemMessageTemplate: + r"""Member '#name' is not a concrete instance member or declares type parameters, and therefore can't be exported.""", + correctionMessageTemplate: + r"""Remove the `@JSExport` annotation from the member, and use an instance member to call this member instead.""", + withArguments: _withArgumentsJsInteropExportDisallowedMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropExportDisallowedMember = @@ -8671,26 +10251,29 @@ const Code codeJsInteropExportDisallowedMember = Message _withArgumentsJsInteropExportDisallowedMember(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJsInteropExportDisallowedMember, - problemMessage: - """Member '${name}' is not a concrete instance member or declares type parameters, and therefore can't be exported.""", - correctionMessage: """Remove the `@JSExport` annotation from the member, and use an instance member to call this member instead.""", - arguments: {'name': name}); + return new Message( + codeJsInteropExportDisallowedMember, + problemMessage: + """Member '${name}' is not a concrete instance member or declares type parameters, and therefore can't be exported.""", + correctionMessage: + """Remove the `@JSExport` annotation from the member, and use an instance member to call this member instead.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - string)> templateJsInteropExportMemberCollision = const Template< - Message Function(String name, String string)>( - "JsInteropExportMemberCollision", - problemMessageTemplate: - r"""The following class members collide with the same export '#name': #string.""", - correctionMessageTemplate: - r"""Either remove the conflicting members or use a different export name.""", - withArguments: _withArgumentsJsInteropExportMemberCollision); +const Template + templateJsInteropExportMemberCollision = + const Template( + "JsInteropExportMemberCollision", + problemMessageTemplate: + r"""The following class members collide with the same export '#name': #string.""", + correctionMessageTemplate: + r"""Either remove the conflicting members or use a different export name.""", + withArguments: _withArgumentsJsInteropExportMemberCollision, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8705,24 +10288,30 @@ Message _withArgumentsJsInteropExportMemberCollision( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeJsInteropExportMemberCollision, - problemMessage: - """The following class members collide with the same export '${name}': ${string}.""", - correctionMessage: """Either remove the conflicting members or use a different export name.""", - arguments: {'name': name, 'string': string}); + return new Message( + codeJsInteropExportMemberCollision, + problemMessage: + """The following class members collide with the same export '${name}': ${string}.""", + correctionMessage: + """Either remove the conflicting members or use a different export name.""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateJsInteropExportNoExportableMembers = const Template< - Message Function(String name)>("JsInteropExportNoExportableMembers", - problemMessageTemplate: - r"""Class '#name' has no exportable members in the class or the inheritance chain.""", - correctionMessageTemplate: - r"""Using `@JSExport`, annotate at least one instance member with a body or annotate a class that has such a member in the inheritance chain.""", - withArguments: _withArgumentsJsInteropExportNoExportableMembers); +const Template + templateJsInteropExportNoExportableMembers = + const Template( + "JsInteropExportNoExportableMembers", + problemMessageTemplate: + r"""Class '#name' has no exportable members in the class or the inheritance chain.""", + correctionMessageTemplate: + r"""Using `@JSExport`, annotate at least one instance member with a body or annotate a class that has such a member in the inheritance chain.""", + withArguments: _withArgumentsJsInteropExportNoExportableMembers, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8735,11 +10324,16 @@ const Code Message _withArgumentsJsInteropExportNoExportableMembers(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJsInteropExportNoExportableMembers, - problemMessage: - """Class '${name}' has no exportable members in the class or the inheritance chain.""", - correctionMessage: """Using `@JSExport`, annotate at least one instance member with a body or annotate a class that has such a member in the inheritance chain.""", - arguments: {'name': name}); + return new Message( + codeJsInteropExportNoExportableMembers, + problemMessage: + """Class '${name}' has no exportable members in the class or the inheritance chain.""", + correctionMessage: + """Using `@JSExport`, annotate at least one instance member with a body or annotate a class that has such a member in the inheritance chain.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -8747,12 +10341,14 @@ const Code codeJsInteropExtensionTypeMemberNotInterop = messageJsInteropExtensionTypeMemberNotInterop; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageJsInteropExtensionTypeMemberNotInterop = const MessageCode( - "JsInteropExtensionTypeMemberNotInterop", - problemMessage: - r"""Extension type member is marked 'external', but the representation type of its extension type is not a valid JS interop type.""", - correctionMessage: - r"""Try declaring a valid JS interop representation type, which may include 'dart:js_interop' types, '@staticInterop' types, 'dart:html' types, or other interop extension types."""); +const MessageCode messageJsInteropExtensionTypeMemberNotInterop = + const MessageCode( + "JsInteropExtensionTypeMemberNotInterop", + problemMessage: + r"""Extension type member is marked 'external', but the representation type of its extension type is not a valid JS interop type.""", + correctionMessage: + r"""Try declaring a valid JS interop representation type, which may include 'dart:js_interop' types, '@staticInterop' types, 'dart:html' types, or other interop extension types.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropExtensionTypeUsedWithWrongJsAnnotation = @@ -8760,11 +10356,13 @@ const Code codeJsInteropExtensionTypeUsedWithWrongJsAnnotation = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropExtensionTypeUsedWithWrongJsAnnotation = - const MessageCode("JsInteropExtensionTypeUsedWithWrongJsAnnotation", - problemMessage: - r"""Extension types should use the '@JS' annotation from 'dart:js_interop' and not from 'package:js'.""", - correctionMessage: - r"""Try using the '@JS' annotation from 'dart:js_interop' annotation on this extension type instead."""); + const MessageCode( + "JsInteropExtensionTypeUsedWithWrongJsAnnotation", + problemMessage: + r"""Extension types should use the '@JS' annotation from 'dart:js_interop' and not from 'package:js'.""", + correctionMessage: + r"""Try using the '@JS' annotation from 'dart:js_interop' annotation on this extension type instead.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropExternalExtensionMemberOnTypeInvalid = @@ -8772,11 +10370,13 @@ const Code codeJsInteropExternalExtensionMemberOnTypeInvalid = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropExternalExtensionMemberOnTypeInvalid = - const MessageCode("JsInteropExternalExtensionMemberOnTypeInvalid", - problemMessage: - r"""JS interop or Native class required for 'external' extension members.""", - correctionMessage: - r"""Try adding a JS interop annotation to the on type class of the extension."""); + const MessageCode( + "JsInteropExternalExtensionMemberOnTypeInvalid", + problemMessage: + r"""JS interop or Native class required for 'external' extension members.""", + correctionMessage: + r"""Try adding a JS interop annotation to the on type class of the extension.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropExternalExtensionMemberWithStaticDisallowed = @@ -8784,68 +10384,74 @@ const Code codeJsInteropExternalExtensionMemberWithStaticDisallowed = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropExternalExtensionMemberWithStaticDisallowed = - const MessageCode("JsInteropExternalExtensionMemberWithStaticDisallowed", - problemMessage: - r"""External extension members with the keyword 'static' on JS interop and @Native types are disallowed.""", - correctionMessage: - r"""Try putting the member in the on-type instead."""); + const MessageCode( + "JsInteropExternalExtensionMemberWithStaticDisallowed", + problemMessage: + r"""External extension members with the keyword 'static' on JS interop and @Native types are disallowed.""", + correctionMessage: r"""Try putting the member in the on-type instead.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropExternalMemberNotJSAnnotated = messageJsInteropExternalMemberNotJSAnnotated; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageJsInteropExternalMemberNotJSAnnotated = const MessageCode( - "JsInteropExternalMemberNotJSAnnotated", - problemMessage: r"""Only JS interop members may be 'external'.""", - correctionMessage: - r"""Try removing the 'external' keyword or adding a JS interop annotation."""); +const MessageCode messageJsInteropExternalMemberNotJSAnnotated = + const MessageCode( + "JsInteropExternalMemberNotJSAnnotated", + problemMessage: r"""Only JS interop members may be 'external'.""", + correctionMessage: + r"""Try removing the 'external' keyword or adding a JS interop annotation.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropFunctionToJSTypeParameters = messageJsInteropFunctionToJSTypeParameters; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageJsInteropFunctionToJSTypeParameters = const MessageCode( - "JsInteropFunctionToJSTypeParameters", - problemMessage: - r"""Functions converted via `toJS` cannot declare type parameters.""", - correctionMessage: - r"""Remove the declared type parameters from the function."""); +const MessageCode messageJsInteropFunctionToJSTypeParameters = + const MessageCode( + "JsInteropFunctionToJSTypeParameters", + problemMessage: + r"""Functions converted via `toJS` cannot declare type parameters.""", + correctionMessage: + r"""Remove the declared type parameters from the function.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropInvalidStaticClassMemberName = messageJsInteropInvalidStaticClassMemberName; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageJsInteropInvalidStaticClassMemberName = const MessageCode( - "JsInteropInvalidStaticClassMemberName", - problemMessage: - r"""JS interop static class members cannot have '.' in their JS name."""); +const MessageCode messageJsInteropInvalidStaticClassMemberName = + const MessageCode( + "JsInteropInvalidStaticClassMemberName", + problemMessage: + r"""JS interop static class members cannot have '.' in their JS name.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropIsATearoff = messageJsInteropIsATearoff; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropIsATearoff = const MessageCode( - "JsInteropIsATearoff", - problemMessage: r"""'isA' can't be torn off.""", - correctionMessage: - r"""Use a method that calls 'isA' and tear off that method instead."""); + "JsInteropIsATearoff", + problemMessage: r"""'isA' can't be torn off.""", + correctionMessage: + r"""Use a method that calls 'isA' and tear off that method instead.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateJsInteropJSClassExtendsDartClass = const Template< - Message Function(String name, String name2)>( - "JsInteropJSClassExtendsDartClass", - problemMessageTemplate: - r"""JS interop class '#name' cannot extend Dart class '#name2'.""", - correctionMessageTemplate: - r"""Try removing the JS interop annotation or adding it to the parent class.""", - withArguments: _withArgumentsJsInteropJSClassExtendsDartClass); +const Template + templateJsInteropJSClassExtendsDartClass = + const Template( + "JsInteropJSClassExtendsDartClass", + problemMessageTemplate: + r"""JS interop class '#name' cannot extend Dart class '#name2'.""", + correctionMessageTemplate: + r"""Try removing the JS interop annotation or adding it to the parent class.""", + withArguments: _withArgumentsJsInteropJSClassExtendsDartClass, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8861,12 +10467,17 @@ Message _withArgumentsJsInteropJSClassExtendsDartClass( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeJsInteropJSClassExtendsDartClass, - problemMessage: - """JS interop class '${name}' cannot extend Dart class '${name2}'.""", - correctionMessage: - """Try removing the JS interop annotation or adding it to the parent class.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeJsInteropJSClassExtendsDartClass, + problemMessage: + """JS interop class '${name}' cannot extend Dart class '${name2}'.""", + correctionMessage: + """Try removing the JS interop annotation or adding it to the parent class.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -8874,27 +10485,24 @@ const Code codeJsInteropNamedParameters = messageJsInteropNamedParameters; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropNamedParameters = const MessageCode( - "JsInteropNamedParameters", - problemMessage: - r"""Named parameters for JS interop functions are only allowed in object literal constructors or @anonymous factories.""", - correctionMessage: - r"""Try replacing them with normal or optional parameters."""); + "JsInteropNamedParameters", + problemMessage: + r"""Named parameters for JS interop functions are only allowed in object literal constructors or @anonymous factories.""", + correctionMessage: + r"""Try replacing them with normal or optional parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String name2, - String - string3)> templateJsInteropNativeClassInAnnotation = const Template< - Message Function( - String name, String name2, String string3)>( - "JsInteropNativeClassInAnnotation", - problemMessageTemplate: - r"""Non-static JS interop class '#name' conflicts with natively supported class '#name2' in '#string3'.""", - correctionMessageTemplate: - r"""Try replacing it with a static JS interop class using `@staticInterop` with extension methods, or use js_util to interact with the native object of type '#name2'.""", - withArguments: _withArgumentsJsInteropNativeClassInAnnotation); +const Template + templateJsInteropNativeClassInAnnotation = + const Template( + "JsInteropNativeClassInAnnotation", + problemMessageTemplate: + r"""Non-static JS interop class '#name' conflicts with natively supported class '#name2' in '#string3'.""", + correctionMessageTemplate: + r"""Try replacing it with a static JS interop class using `@staticInterop` with extension methods, or use js_util to interact with the native object of type '#name2'.""", + withArguments: _withArgumentsJsInteropNativeClassInAnnotation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8911,11 +10519,18 @@ Message _withArgumentsJsInteropNativeClassInAnnotation( if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); if (string3.isEmpty) throw 'No string provided'; - return new Message(codeJsInteropNativeClassInAnnotation, - problemMessage: - """Non-static JS interop class '${name}' conflicts with natively supported class '${name2}' in '${string3}'.""", - correctionMessage: """Try replacing it with a static JS interop class using `@staticInterop` with extension methods, or use js_util to interact with the native object of type '${name2}'.""", - arguments: {'name': name, 'name2': name2, 'string3': string3}); + return new Message( + codeJsInteropNativeClassInAnnotation, + problemMessage: + """Non-static JS interop class '${name}' conflicts with natively supported class '${name2}' in '${string3}'.""", + correctionMessage: + """Try replacing it with a static JS interop class using `@staticInterop` with extension methods, or use js_util to interact with the native object of type '${name2}'.""", + arguments: { + 'name': name, + 'name2': name2, + 'string3': string3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -8924,10 +10539,11 @@ const Code codeJsInteropNonExternalConstructor = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropNonExternalConstructor = const MessageCode( - "JsInteropNonExternalConstructor", - problemMessage: - r"""JS interop classes do not support non-external constructors.""", - correctionMessage: r"""Try annotating with `external`."""); + "JsInteropNonExternalConstructor", + problemMessage: + r"""JS interop classes do not support non-external constructors.""", + correctionMessage: r"""Try annotating with `external`.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropNonExternalMember = @@ -8935,22 +10551,23 @@ const Code codeJsInteropNonExternalMember = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropNonExternalMember = const MessageCode( - "JsInteropNonExternalMember", - problemMessage: - r"""This JS interop member must be annotated with `external`. Only factories and static methods can be non-external.""", - correctionMessage: r"""Try annotating the member with `external`."""); + "JsInteropNonExternalMember", + problemMessage: + r"""This JS interop member must be annotated with `external`. Only factories and static methods can be non-external.""", + correctionMessage: r"""Try annotating the member with `external`.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropNonStaticWithStaticInteropSupertype = const Template( - "JsInteropNonStaticWithStaticInteropSupertype", - problemMessageTemplate: - r"""Class '#name' does not have an `@staticInterop` annotation, but has supertype '#name2', which does.""", - correctionMessageTemplate: - r"""Try marking '#name' as a `@staticInterop` class, or don't inherit '#name2'.""", - withArguments: - _withArgumentsJsInteropNonStaticWithStaticInteropSupertype); + "JsInteropNonStaticWithStaticInteropSupertype", + problemMessageTemplate: + r"""Class '#name' does not have an `@staticInterop` annotation, but has supertype '#name2', which does.""", + correctionMessageTemplate: + r"""Try marking '#name' as a `@staticInterop` class, or don't inherit '#name2'.""", + withArguments: _withArgumentsJsInteropNonStaticWithStaticInteropSupertype, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8966,24 +10583,31 @@ Message _withArgumentsJsInteropNonStaticWithStaticInteropSupertype( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeJsInteropNonStaticWithStaticInteropSupertype, - problemMessage: - """Class '${name}' does not have an `@staticInterop` annotation, but has supertype '${name2}', which does.""", - correctionMessage: """Try marking '${name}' as a `@staticInterop` class, or don't inherit '${name2}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeJsInteropNonStaticWithStaticInteropSupertype, + problemMessage: + """Class '${name}' does not have an `@staticInterop` annotation, but has supertype '${name2}', which does.""", + correctionMessage: + """Try marking '${name}' as a `@staticInterop` class, or don't inherit '${name2}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropObjectLiteralConstructorPositionalParameters = const Template( - "JsInteropObjectLiteralConstructorPositionalParameters", - problemMessageTemplate: - r"""#string should not contain any positional parameters.""", - correctionMessageTemplate: - r"""Try replacing them with named parameters instead.""", - withArguments: - _withArgumentsJsInteropObjectLiteralConstructorPositionalParameters); + "JsInteropObjectLiteralConstructorPositionalParameters", + problemMessageTemplate: + r"""#string should not contain any positional parameters.""", + correctionMessageTemplate: + r"""Try replacing them with named parameters instead.""", + withArguments: + _withArgumentsJsInteropObjectLiteralConstructorPositionalParameters, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -8996,12 +10620,15 @@ const Code Message _withArgumentsJsInteropObjectLiteralConstructorPositionalParameters( String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeJsInteropObjectLiteralConstructorPositionalParameters, - problemMessage: - """${string} should not contain any positional parameters.""", - correctionMessage: - """Try replacing them with named parameters instead.""", - arguments: {'string': string}); + return new Message( + codeJsInteropObjectLiteralConstructorPositionalParameters, + problemMessage: + """${string} should not contain any positional parameters.""", + correctionMessage: """Try replacing them with named parameters instead.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -9010,11 +10637,12 @@ const Code codeJsInteropOperatorCannotBeRenamed = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropOperatorCannotBeRenamed = const MessageCode( - "JsInteropOperatorCannotBeRenamed", - problemMessage: - r"""JS interop operator methods cannot be renamed using the '@JS' annotation.""", - correctionMessage: - r"""Remove the annotation or remove the value inside the annotation."""); + "JsInteropOperatorCannotBeRenamed", + problemMessage: + r"""JS interop operator methods cannot be renamed using the '@JS' annotation.""", + correctionMessage: + r"""Remove the annotation or remove the value inside the annotation.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropOperatorsNotSupported = @@ -9022,11 +10650,12 @@ const Code codeJsInteropOperatorsNotSupported = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropOperatorsNotSupported = const MessageCode( - "JsInteropOperatorsNotSupported", - problemMessage: - r"""JS interop types do not support overloading external operator methods, with the exception of '[]' and '[]=' using static interop.""", - correctionMessage: - r"""Try making this class a static interop type instead."""); + "JsInteropOperatorsNotSupported", + problemMessage: + r"""JS interop types do not support overloading external operator methods, with the exception of '[]' and '[]=' using static interop.""", + correctionMessage: + r"""Try making this class a static interop type instead.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropStaticInteropGenerativeConstructor = @@ -9034,29 +10663,27 @@ const Code codeJsInteropStaticInteropGenerativeConstructor = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropStaticInteropGenerativeConstructor = - const MessageCode("JsInteropStaticInteropGenerativeConstructor", - problemMessage: - r"""`@staticInterop` classes should not contain any generative constructors.""", - correctionMessage: r"""Use factory constructors instead."""); + const MessageCode( + "JsInteropStaticInteropGenerativeConstructor", + problemMessage: + r"""`@staticInterop` classes should not contain any generative constructors.""", + correctionMessage: r"""Use factory constructors instead.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(String name, String string, String string2, String name2, String string3)> templateJsInteropStaticInteropMockMissingGetterOrSetter = const Template< - Message Function( - String name, - String string, - String string2, - String name2, - String - string3)>("JsInteropStaticInteropMockMissingGetterOrSetter", - problemMessageTemplate: - r"""Dart class '#name' has a #string, but does not have a #string2 to implement any of the following extension member(s) with export name '#name2': #string3.""", - correctionMessageTemplate: - r"""Declare an exportable #string2 that implements one of these extension members.""", - withArguments: - _withArgumentsJsInteropStaticInteropMockMissingGetterOrSetter); + Message Function(String name, String string, String string2, + String name2, String string3)>( + "JsInteropStaticInteropMockMissingGetterOrSetter", + problemMessageTemplate: + r"""Dart class '#name' has a #string, but does not have a #string2 to implement any of the following extension member(s) with export name '#name2': #string3.""", + correctionMessageTemplate: + r"""Declare an exportable #string2 that implements one of these extension members.""", + withArguments: _withArgumentsJsInteropStaticInteropMockMissingGetterOrSetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -9078,31 +10705,33 @@ Message _withArgumentsJsInteropStaticInteropMockMissingGetterOrSetter( if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); if (string3.isEmpty) throw 'No string provided'; - return new Message(codeJsInteropStaticInteropMockMissingGetterOrSetter, - problemMessage: - """Dart class '${name}' has a ${string}, but does not have a ${string2} to implement any of the following extension member(s) with export name '${name2}': ${string3}.""", - correctionMessage: - """Declare an exportable ${string2} that implements one of these extension members.""", - arguments: { - 'name': name, - 'string': string, - 'string2': string2, - 'name2': name2, - 'string3': string3 - }); + return new Message( + codeJsInteropStaticInteropMockMissingGetterOrSetter, + problemMessage: + """Dart class '${name}' has a ${string}, but does not have a ${string2} to implement any of the following extension member(s) with export name '${name2}': ${string3}.""", + correctionMessage: + """Declare an exportable ${string2} that implements one of these extension members.""", + arguments: { + 'name': name, + 'string': string, + 'string2': string2, + 'name2': name2, + 'string3': string3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropStaticInteropMockMissingImplements = const Template( - "JsInteropStaticInteropMockMissingImplements", - problemMessageTemplate: - r"""Dart class '#name' does not have any members that implement any of the following extension member(s) with export name '#name2': #string.""", - correctionMessageTemplate: - r"""Declare an exportable member that implements one of these extension members.""", - withArguments: - _withArgumentsJsInteropStaticInteropMockMissingImplements); + "JsInteropStaticInteropMockMissingImplements", + problemMessageTemplate: + r"""Dart class '#name' does not have any members that implement any of the following extension member(s) with export name '#name2': #string.""", + correctionMessageTemplate: + r"""Declare an exportable member that implements one of these extension members.""", + withArguments: _withArgumentsJsInteropStaticInteropMockMissingImplements, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -9119,23 +10748,30 @@ Message _withArgumentsJsInteropStaticInteropMockMissingImplements( if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); if (string.isEmpty) throw 'No string provided'; - return new Message(codeJsInteropStaticInteropMockMissingImplements, - problemMessage: - """Dart class '${name}' does not have any members that implement any of the following extension member(s) with export name '${name2}': ${string}.""", - correctionMessage: """Declare an exportable member that implements one of these extension members.""", - arguments: {'name': name, 'name2': name2, 'string': string}); + return new Message( + codeJsInteropStaticInteropMockMissingImplements, + problemMessage: + """Dart class '${name}' does not have any members that implement any of the following extension member(s) with export name '${name2}': ${string}.""", + correctionMessage: + """Declare an exportable member that implements one of these extension members.""", + arguments: { + 'name': name, + 'name2': name2, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateJsInteropStaticInteropNoJSAnnotation = const Template< - Message Function(String name)>("JsInteropStaticInteropNoJSAnnotation", - problemMessageTemplate: - r"""`@staticInterop` classes should also have the `@JS` annotation.""", - correctionMessageTemplate: r"""Add `@JS` to class '#name'.""", - withArguments: _withArgumentsJsInteropStaticInteropNoJSAnnotation); +const Template + templateJsInteropStaticInteropNoJSAnnotation = + const Template( + "JsInteropStaticInteropNoJSAnnotation", + problemMessageTemplate: + r"""`@staticInterop` classes should also have the `@JS` annotation.""", + correctionMessageTemplate: r"""Add `@JS` to class '#name'.""", + withArguments: _withArgumentsJsInteropStaticInteropNoJSAnnotation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -9148,11 +10784,15 @@ const Code Message _withArgumentsJsInteropStaticInteropNoJSAnnotation(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJsInteropStaticInteropNoJSAnnotation, - problemMessage: - """`@staticInterop` classes should also have the `@JS` annotation.""", - correctionMessage: """Add `@JS` to class '${name}'.""", - arguments: {'name': name}); + return new Message( + codeJsInteropStaticInteropNoJSAnnotation, + problemMessage: + """`@staticInterop` classes should also have the `@JS` annotation.""", + correctionMessage: """Add `@JS` to class '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -9161,35 +10801,40 @@ const Code codeJsInteropStaticInteropParameterInitializersAreIgnored = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageJsInteropStaticInteropParameterInitializersAreIgnored = - const MessageCode("JsInteropStaticInteropParameterInitializersAreIgnored", - severity: Severity.warning, - problemMessage: - r"""Initializers for parameters are ignored on static interop external functions.""", - correctionMessage: - r"""Declare a forwarding non-external function with this initializer, or remove the initializer."""); + const MessageCode( + "JsInteropStaticInteropParameterInitializersAreIgnored", + severity: Severity.warning, + problemMessage: + r"""Initializers for parameters are ignored on static interop external functions.""", + correctionMessage: + r"""Declare a forwarding non-external function with this initializer, or remove the initializer.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeJsInteropStaticInteropSyntheticConstructor = messageJsInteropStaticInteropSyntheticConstructor; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageJsInteropStaticInteropSyntheticConstructor = const MessageCode( - "JsInteropStaticInteropSyntheticConstructor", - problemMessage: - r"""Synthetic constructors on `@staticInterop` classes can not be used.""", - correctionMessage: - r"""Declare an external factory constructor for this `@staticInterop` class and use that instead."""); +const MessageCode messageJsInteropStaticInteropSyntheticConstructor = + const MessageCode( + "JsInteropStaticInteropSyntheticConstructor", + problemMessage: + r"""Synthetic constructors on `@staticInterop` classes can not be used.""", + correctionMessage: + r"""Declare an external factory constructor for this `@staticInterop` class and use that instead.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropStaticInteropTearOffsDisallowed = const Template( - "JsInteropStaticInteropTearOffsDisallowed", - problemMessageTemplate: - r"""Tear-offs of external #string '#name' are disallowed.""", - correctionMessageTemplate: - r"""Declare a closure that calls this member instead.""", - withArguments: _withArgumentsJsInteropStaticInteropTearOffsDisallowed); + "JsInteropStaticInteropTearOffsDisallowed", + problemMessageTemplate: + r"""Tear-offs of external #string '#name' are disallowed.""", + correctionMessageTemplate: + r"""Declare a closure that calls this member instead.""", + withArguments: _withArgumentsJsInteropStaticInteropTearOffsDisallowed, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -9204,25 +10849,28 @@ Message _withArgumentsJsInteropStaticInteropTearOffsDisallowed( if (string.isEmpty) throw 'No string provided'; if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJsInteropStaticInteropTearOffsDisallowed, - problemMessage: - """Tear-offs of external ${string} '${name}' are disallowed.""", - correctionMessage: - """Declare a closure that calls this member instead.""", - arguments: {'string': string, 'name': name}); + return new Message( + codeJsInteropStaticInteropTearOffsDisallowed, + problemMessage: + """Tear-offs of external ${string} '${name}' are disallowed.""", + correctionMessage: """Declare a closure that calls this member instead.""", + arguments: { + 'string': string, + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropStaticInteropTrustTypesUsageNotAllowed = const Template( - "JsInteropStaticInteropTrustTypesUsageNotAllowed", - problemMessageTemplate: - r"""JS interop class '#name' has an `@trustTypes` annotation, but `@trustTypes` is only supported within the sdk.""", - correctionMessageTemplate: - r"""Try removing the `@trustTypes` annotation.""", - withArguments: - _withArgumentsJsInteropStaticInteropTrustTypesUsageNotAllowed); + "JsInteropStaticInteropTrustTypesUsageNotAllowed", + problemMessageTemplate: + r"""JS interop class '#name' has an `@trustTypes` annotation, but `@trustTypes` is only supported within the sdk.""", + correctionMessageTemplate: r"""Try removing the `@trustTypes` annotation.""", + withArguments: _withArgumentsJsInteropStaticInteropTrustTypesUsageNotAllowed, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -9236,24 +10884,29 @@ Message _withArgumentsJsInteropStaticInteropTrustTypesUsageNotAllowed( String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJsInteropStaticInteropTrustTypesUsageNotAllowed, - problemMessage: - """JS interop class '${name}' has an `@trustTypes` annotation, but `@trustTypes` is only supported within the sdk.""", - correctionMessage: """Try removing the `@trustTypes` annotation.""", - arguments: {'name': name}); + return new Message( + codeJsInteropStaticInteropTrustTypesUsageNotAllowed, + problemMessage: + """JS interop class '${name}' has an `@trustTypes` annotation, but `@trustTypes` is only supported within the sdk.""", + correctionMessage: """Try removing the `@trustTypes` annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropStaticInteropTrustTypesUsedWithoutStaticInterop = const Template( - "JsInteropStaticInteropTrustTypesUsedWithoutStaticInterop", - problemMessageTemplate: - r"""JS interop class '#name' has an `@trustTypes` annotation, but no `@staticInterop` annotation.""", - correctionMessageTemplate: - r"""Try marking the class using `@staticInterop`.""", - withArguments: - _withArgumentsJsInteropStaticInteropTrustTypesUsedWithoutStaticInterop); + "JsInteropStaticInteropTrustTypesUsedWithoutStaticInterop", + problemMessageTemplate: + r"""JS interop class '#name' has an `@trustTypes` annotation, but no `@staticInterop` annotation.""", + correctionMessageTemplate: + r"""Try marking the class using `@staticInterop`.""", + withArguments: + _withArgumentsJsInteropStaticInteropTrustTypesUsedWithoutStaticInterop, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -9268,23 +10921,27 @@ Message _withArgumentsJsInteropStaticInteropTrustTypesUsedWithoutStaticInterop( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); return new Message( - codeJsInteropStaticInteropTrustTypesUsedWithoutStaticInterop, - problemMessage: - """JS interop class '${name}' has an `@trustTypes` annotation, but no `@staticInterop` annotation.""", - correctionMessage: """Try marking the class using `@staticInterop`.""", - arguments: {'name': name}); + codeJsInteropStaticInteropTrustTypesUsedWithoutStaticInterop, + problemMessage: + """JS interop class '${name}' has an `@trustTypes` annotation, but no `@staticInterop` annotation.""", + correctionMessage: """Try marking the class using `@staticInterop`.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropStaticInteropWithInstanceMembers = const Template( - "JsInteropStaticInteropWithInstanceMembers", - problemMessageTemplate: - r"""JS interop class '#name' with `@staticInterop` annotation cannot declare instance members.""", - correctionMessageTemplate: - r"""Try moving the instance member to a static extension.""", - withArguments: _withArgumentsJsInteropStaticInteropWithInstanceMembers); + "JsInteropStaticInteropWithInstanceMembers", + problemMessageTemplate: + r"""JS interop class '#name' with `@staticInterop` annotation cannot declare instance members.""", + correctionMessageTemplate: + r"""Try moving the instance member to a static extension.""", + withArguments: _withArgumentsJsInteropStaticInteropWithInstanceMembers, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -9297,24 +10954,29 @@ const Code Message _withArgumentsJsInteropStaticInteropWithInstanceMembers(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeJsInteropStaticInteropWithInstanceMembers, - problemMessage: - """JS interop class '${name}' with `@staticInterop` annotation cannot declare instance members.""", - correctionMessage: """Try moving the instance member to a static extension.""", - arguments: {'name': name}); + return new Message( + codeJsInteropStaticInteropWithInstanceMembers, + problemMessage: + """JS interop class '${name}' with `@staticInterop` annotation cannot declare instance members.""", + correctionMessage: + """Try moving the instance member to a static extension.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropStaticInteropWithNonStaticSupertype = const Template( - "JsInteropStaticInteropWithNonStaticSupertype", - problemMessageTemplate: - r"""JS interop class '#name' has an `@staticInterop` annotation, but has supertype '#name2', which does not.""", - correctionMessageTemplate: - r"""Try marking the supertype as a static interop class using `@staticInterop`.""", - withArguments: - _withArgumentsJsInteropStaticInteropWithNonStaticSupertype); + "JsInteropStaticInteropWithNonStaticSupertype", + problemMessageTemplate: + r"""JS interop class '#name' has an `@staticInterop` annotation, but has supertype '#name2', which does not.""", + correctionMessageTemplate: + r"""Try marking the supertype as a static interop class using `@staticInterop`.""", + withArguments: _withArgumentsJsInteropStaticInteropWithNonStaticSupertype, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -9330,36 +10992,49 @@ Message _withArgumentsJsInteropStaticInteropWithNonStaticSupertype( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeJsInteropStaticInteropWithNonStaticSupertype, - problemMessage: - """JS interop class '${name}' has an `@staticInterop` annotation, but has supertype '${name2}', which does not.""", - correctionMessage: """Try marking the supertype as a static interop class using `@staticInterop`.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeJsInteropStaticInteropWithNonStaticSupertype, + problemMessage: + """JS interop class '${name}' has an `@staticInterop` annotation, but has supertype '${name2}', which does not.""", + correctionMessage: + """Try marking the supertype as a static interop class using `@staticInterop`.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> templateLabelNotFound = const Template< - Message Function(String name)>("LabelNotFound", - problemMessageTemplate: r"""Can't find label '#name'.""", - correctionMessageTemplate: - r"""Try defining the label, or correcting the name to match an existing label.""", - withArguments: _withArgumentsLabelNotFound); +const Template templateLabelNotFound = + const Template( + "LabelNotFound", + problemMessageTemplate: r"""Can't find label '#name'.""", + correctionMessageTemplate: + r"""Try defining the label, or correcting the name to match an existing label.""", + withArguments: _withArgumentsLabelNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLabelNotFound = - const Code("LabelNotFound", - analyzerCodes: ["LABEL_UNDEFINED"]); + const Code( + "LabelNotFound", + analyzerCodes: ["LABEL_UNDEFINED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsLabelNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeLabelNotFound, - problemMessage: """Can't find label '${name}'.""", - correctionMessage: - """Try defining the label, or correcting the name to match an existing label.""", - arguments: {'name': name}); + return new Message( + codeLabelNotFound, + problemMessage: """Can't find label '${name}'.""", + correctionMessage: + """Try defining the label, or correcting the name to match an existing label.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -9367,10 +11042,12 @@ const Code codeLanguageVersionInvalidInDotPackages = messageLanguageVersionInvalidInDotPackages; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageLanguageVersionInvalidInDotPackages = const MessageCode( - "LanguageVersionInvalidInDotPackages", - problemMessage: - r"""The language version is not specified correctly in the packages file."""); +const MessageCode messageLanguageVersionInvalidInDotPackages = + const MessageCode( + "LanguageVersionInvalidInDotPackages", + problemMessage: + r"""The language version is not specified correctly in the packages file.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLanguageVersionLibraryContext = @@ -9378,9 +11055,10 @@ const Code codeLanguageVersionLibraryContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageLanguageVersionLibraryContext = const MessageCode( - "LanguageVersionLibraryContext", - severity: Severity.context, - problemMessage: r"""This is language version annotation in the library."""); + "LanguageVersionLibraryContext", + severity: Severity.context, + problemMessage: r"""This is language version annotation in the library.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLanguageVersionMismatchInPart = @@ -9388,9 +11066,10 @@ const Code codeLanguageVersionMismatchInPart = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageLanguageVersionMismatchInPart = const MessageCode( - "LanguageVersionMismatchInPart", - problemMessage: - r"""The language version override has to be the same in the library and its part(s)."""); + "LanguageVersionMismatchInPart", + problemMessage: + r"""The language version override has to be the same in the library and its part(s).""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLanguageVersionMismatchInPatch = @@ -9398,9 +11077,10 @@ const Code codeLanguageVersionMismatchInPatch = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageLanguageVersionMismatchInPatch = const MessageCode( - "LanguageVersionMismatchInPatch", - problemMessage: - r"""The language version override has to be the same in the library and its patch(es)."""); + "LanguageVersionMismatchInPatch", + problemMessage: + r"""The language version override has to be the same in the library and its patch(es).""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLanguageVersionPartContext = @@ -9408,9 +11088,10 @@ const Code codeLanguageVersionPartContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageLanguageVersionPartContext = const MessageCode( - "LanguageVersionPartContext", - severity: Severity.context, - problemMessage: r"""This is language version annotation in the part."""); + "LanguageVersionPartContext", + severity: Severity.context, + problemMessage: r"""This is language version annotation in the part.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLanguageVersionPatchContext = @@ -9418,20 +11099,20 @@ const Code codeLanguageVersionPatchContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageLanguageVersionPatchContext = const MessageCode( - "LanguageVersionPatchContext", - severity: Severity.context, - problemMessage: r"""This is language version annotation in the patch."""); + "LanguageVersionPatchContext", + severity: Severity.context, + problemMessage: r"""This is language version annotation in the patch.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - int count, - int - count2)> templateLanguageVersionTooHigh = const Template< - Message Function(int count, int count2)>("LanguageVersionTooHigh", - problemMessageTemplate: - r"""The specified language version is too high. The highest supported language version is #count.#count2.""", - withArguments: _withArgumentsLanguageVersionTooHigh); +const Template + templateLanguageVersionTooHigh = + const Template( + "LanguageVersionTooHigh", + problemMessageTemplate: + r"""The specified language version is too high. The highest supported language version is #count.#count2.""", + withArguments: _withArgumentsLanguageVersionTooHigh, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLanguageVersionTooHigh = @@ -9441,19 +11122,26 @@ const Code codeLanguageVersionTooHigh = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsLanguageVersionTooHigh(int count, int count2) { - return new Message(codeLanguageVersionTooHigh, - problemMessage: - """The specified language version is too high. The highest supported language version is ${count}.${count2}.""", - arguments: {'count': count, 'count2': count2}); + return new Message( + codeLanguageVersionTooHigh, + problemMessage: + """The specified language version is too high. The highest supported language version is ${count}.${count2}.""", + arguments: { + 'count': count, + 'count2': count2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateLateDefinitelyAssignedError = - const Template("LateDefinitelyAssignedError", - problemMessageTemplate: - r"""Late final variable '#name' definitely assigned.""", - withArguments: _withArgumentsLateDefinitelyAssignedError); + const Template( + "LateDefinitelyAssignedError", + problemMessageTemplate: + r"""Late final variable '#name' definitely assigned.""", + withArguments: _withArgumentsLateDefinitelyAssignedError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLateDefinitelyAssignedError = @@ -9465,20 +11153,24 @@ const Code codeLateDefinitelyAssignedError = Message _withArgumentsLateDefinitelyAssignedError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeLateDefinitelyAssignedError, - problemMessage: """Late final variable '${name}' definitely assigned.""", - arguments: {'name': name}); + return new Message( + codeLateDefinitelyAssignedError, + problemMessage: """Late final variable '${name}' definitely assigned.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateLateDefinitelyUnassignedError = const Template< - Message Function(String name)>("LateDefinitelyUnassignedError", - problemMessageTemplate: - r"""Late variable '#name' without initializer is definitely unassigned.""", - withArguments: _withArgumentsLateDefinitelyUnassignedError); +const Template + templateLateDefinitelyUnassignedError = + const Template( + "LateDefinitelyUnassignedError", + problemMessageTemplate: + r"""Late variable '#name' without initializer is definitely unassigned.""", + withArguments: _withArgumentsLateDefinitelyUnassignedError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLateDefinitelyUnassignedError = @@ -9490,10 +11182,14 @@ const Code codeLateDefinitelyUnassignedError = Message _withArgumentsLateDefinitelyUnassignedError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeLateDefinitelyUnassignedError, - problemMessage: - """Late variable '${name}' without initializer is definitely unassigned.""", - arguments: {'name': name}); + return new Message( + codeLateDefinitelyUnassignedError, + problemMessage: + """Late variable '${name}' without initializer is definitely unassigned.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -9502,23 +11198,25 @@ const Code codeLatePatternVariableDeclaration = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageLatePatternVariableDeclaration = const MessageCode( - "LatePatternVariableDeclaration", - index: 151, - problemMessage: - r"""A pattern variable declaration may not use the `late` keyword.""", - correctionMessage: r"""Try removing the keyword `late`."""); + "LatePatternVariableDeclaration", + index: 151, + problemMessage: + r"""A pattern variable declaration may not use the `late` keyword.""", + correctionMessage: r"""Try removing the keyword `late`.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLibraryDirectiveNotFirst = messageLibraryDirectiveNotFirst; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageLibraryDirectiveNotFirst = const MessageCode( - "LibraryDirectiveNotFirst", - index: 37, - problemMessage: - r"""The library directive must appear before all other directives.""", - correctionMessage: - r"""Try moving the library directive before any other directives."""); + "LibraryDirectiveNotFirst", + index: 37, + problemMessage: + r"""The library directive must appear before all other directives.""", + correctionMessage: + r"""Try moving the library directive before any other directives.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeListLiteralTooManyTypeArguments = @@ -9526,9 +11224,10 @@ const Code codeListLiteralTooManyTypeArguments = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageListLiteralTooManyTypeArguments = const MessageCode( - "ListLiteralTooManyTypeArguments", - analyzerCodes: ["EXPECTED_ONE_LIST_TYPE_ARGUMENTS"], - problemMessage: r"""List literal requires exactly one type argument."""); + "ListLiteralTooManyTypeArguments", + analyzerCodes: ["EXPECTED_ONE_LIST_TYPE_ARGUMENTS"], + problemMessage: r"""List literal requires exactly one type argument.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeListPatternTooManyTypeArguments = @@ -9536,73 +11235,89 @@ const Code codeListPatternTooManyTypeArguments = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageListPatternTooManyTypeArguments = const MessageCode( - "ListPatternTooManyTypeArguments", - analyzerCodes: ["EXPECTED_ONE_LIST_PATTERN_TYPE_ARGUMENTS"], - problemMessage: r"""A list pattern requires exactly one type argument."""); + "ListPatternTooManyTypeArguments", + analyzerCodes: ["EXPECTED_ONE_LIST_PATTERN_TYPE_ARGUMENTS"], + problemMessage: r"""A list pattern requires exactly one type argument.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateLiteralWithClass = const Template( - "LiteralWithClass", - problemMessageTemplate: - r"""A #string literal can't be prefixed by '#lexeme'.""", - correctionMessageTemplate: r"""Try removing '#lexeme'""", - withArguments: _withArgumentsLiteralWithClass); + "LiteralWithClass", + problemMessageTemplate: + r"""A #string literal can't be prefixed by '#lexeme'.""", + correctionMessageTemplate: r"""Try removing '#lexeme'""", + withArguments: _withArgumentsLiteralWithClass, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLiteralWithClass = - const Code("LiteralWithClass", - index: 116); + const Code( + "LiteralWithClass", + index: 116, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsLiteralWithClass(String string, Token token) { if (string.isEmpty) throw 'No string provided'; String lexeme = token.lexeme; - return new Message(codeLiteralWithClass, - problemMessage: - """A ${string} literal can't be prefixed by '${lexeme}'.""", - correctionMessage: """Try removing '${lexeme}'""", - arguments: {'string': string, 'lexeme': token}); + return new Message( + codeLiteralWithClass, + problemMessage: """A ${string} literal can't be prefixed by '${lexeme}'.""", + correctionMessage: """Try removing '${lexeme}'""", + arguments: { + 'string': string, + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String string, Token token)> +const Template templateLiteralWithClassAndNew = const Template( - "LiteralWithClassAndNew", - problemMessageTemplate: - r"""A #string literal can't be prefixed by 'new #lexeme'.""", - correctionMessageTemplate: r"""Try removing 'new' and '#lexeme'""", - withArguments: _withArgumentsLiteralWithClassAndNew); + "LiteralWithClassAndNew", + problemMessageTemplate: + r"""A #string literal can't be prefixed by 'new #lexeme'.""", + correctionMessageTemplate: r"""Try removing 'new' and '#lexeme'""", + withArguments: _withArgumentsLiteralWithClassAndNew, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLiteralWithClassAndNew = const Code( - "LiteralWithClassAndNew", - index: 115); + "LiteralWithClassAndNew", + index: 115, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsLiteralWithClassAndNew(String string, Token token) { if (string.isEmpty) throw 'No string provided'; String lexeme = token.lexeme; - return new Message(codeLiteralWithClassAndNew, - problemMessage: - """A ${string} literal can't be prefixed by 'new ${lexeme}'.""", - correctionMessage: """Try removing 'new' and '${lexeme}'""", - arguments: {'string': string, 'lexeme': token}); + return new Message( + codeLiteralWithClassAndNew, + problemMessage: + """A ${string} literal can't be prefixed by 'new ${lexeme}'.""", + correctionMessage: """Try removing 'new' and '${lexeme}'""", + arguments: { + 'string': string, + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLiteralWithNew = messageLiteralWithNew; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageLiteralWithNew = const MessageCode("LiteralWithNew", - index: 117, - problemMessage: r"""A literal can't be prefixed by 'new'.""", - correctionMessage: r"""Try removing 'new'"""); +const MessageCode messageLiteralWithNew = const MessageCode( + "LiteralWithNew", + index: 117, + problemMessage: r"""A literal can't be prefixed by 'new'.""", + correctionMessage: r"""Try removing 'new'""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLoadLibraryTakesNoArguments = @@ -9610,70 +11325,83 @@ const Code codeLoadLibraryTakesNoArguments = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageLoadLibraryTakesNoArguments = const MessageCode( - "LoadLibraryTakesNoArguments", - analyzerCodes: ["LOAD_LIBRARY_TAKES_NO_ARGUMENTS"], - problemMessage: r"""'loadLibrary' takes no arguments."""); + "LoadLibraryTakesNoArguments", + analyzerCodes: ["LOAD_LIBRARY_TAKES_NO_ARGUMENTS"], + problemMessage: r"""'loadLibrary' takes no arguments.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateLocalVariableUsedBeforeDeclared = const Template< - Message Function(String name)>("LocalVariableUsedBeforeDeclared", - problemMessageTemplate: - r"""Local variable '#name' can't be referenced before it is declared.""", - withArguments: _withArgumentsLocalVariableUsedBeforeDeclared); +const Template + templateLocalVariableUsedBeforeDeclared = + const Template( + "LocalVariableUsedBeforeDeclared", + problemMessageTemplate: + r"""Local variable '#name' can't be referenced before it is declared.""", + withArguments: _withArgumentsLocalVariableUsedBeforeDeclared, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLocalVariableUsedBeforeDeclared = - const Code("LocalVariableUsedBeforeDeclared", - analyzerCodes: ["REFERENCED_BEFORE_DECLARATION"]); + const Code( + "LocalVariableUsedBeforeDeclared", + analyzerCodes: ["REFERENCED_BEFORE_DECLARATION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsLocalVariableUsedBeforeDeclared(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeLocalVariableUsedBeforeDeclared, - problemMessage: - """Local variable '${name}' can't be referenced before it is declared.""", - arguments: {'name': name}); + return new Message( + codeLocalVariableUsedBeforeDeclared, + problemMessage: + """Local variable '${name}' can't be referenced before it is declared.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateLocalVariableUsedBeforeDeclaredContext = const Template( - "LocalVariableUsedBeforeDeclaredContext", - problemMessageTemplate: - r"""This is the declaration of the variable '#name'.""", - withArguments: _withArgumentsLocalVariableUsedBeforeDeclaredContext); + "LocalVariableUsedBeforeDeclaredContext", + problemMessageTemplate: + r"""This is the declaration of the variable '#name'.""", + withArguments: _withArgumentsLocalVariableUsedBeforeDeclaredContext, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeLocalVariableUsedBeforeDeclaredContext = const Code( - "LocalVariableUsedBeforeDeclaredContext", - severity: Severity.context); + "LocalVariableUsedBeforeDeclaredContext", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsLocalVariableUsedBeforeDeclaredContext(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeLocalVariableUsedBeforeDeclaredContext, - problemMessage: """This is the declaration of the variable '${name}'.""", - arguments: {'name': name}); + return new Message( + codeLocalVariableUsedBeforeDeclaredContext, + problemMessage: """This is the declaration of the variable '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateMacroClassNotDeclaredMacro = const Template< - Message Function(String name)>("MacroClassNotDeclaredMacro", - problemMessageTemplate: - r"""Non-abstract class '#name' implements 'Macro' but isn't declared as a macro class.""", - correctionMessageTemplate: r"""Try adding the 'macro' class modifier.""", - withArguments: _withArgumentsMacroClassNotDeclaredMacro); +const Template + templateMacroClassNotDeclaredMacro = + const Template( + "MacroClassNotDeclaredMacro", + problemMessageTemplate: + r"""Non-abstract class '#name' implements 'Macro' but isn't declared as a macro class.""", + correctionMessageTemplate: r"""Try adding the 'macro' class modifier.""", + withArguments: _withArgumentsMacroClassNotDeclaredMacro, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMacroClassNotDeclaredMacro = @@ -9685,11 +11413,15 @@ const Code codeMacroClassNotDeclaredMacro = Message _withArgumentsMacroClassNotDeclaredMacro(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeMacroClassNotDeclaredMacro, - problemMessage: - """Non-abstract class '${name}' implements 'Macro' but isn't declared as a macro class.""", - correctionMessage: """Try adding the 'macro' class modifier.""", - arguments: {'name': name}); + return new Message( + codeMacroClassNotDeclaredMacro, + problemMessage: + """Non-abstract class '${name}' implements 'Macro' but isn't declared as a macro class.""", + correctionMessage: """Try adding the 'macro' class modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -9698,9 +11430,9 @@ const Code codeMainNotFunctionDeclaration = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMainNotFunctionDeclaration = const MessageCode( - "MainNotFunctionDeclaration", - problemMessage: - r"""The 'main' declaration must be a function declaration."""); + "MainNotFunctionDeclaration", + problemMessage: r"""The 'main' declaration must be a function declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMainNotFunctionDeclarationExported = @@ -9708,9 +11440,10 @@ const Code codeMainNotFunctionDeclarationExported = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMainNotFunctionDeclarationExported = const MessageCode( - "MainNotFunctionDeclarationExported", - problemMessage: - r"""The exported 'main' declaration must be a function declaration."""); + "MainNotFunctionDeclarationExported", + problemMessage: + r"""The exported 'main' declaration must be a function declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMainRequiredNamedParameters = @@ -9718,19 +11451,22 @@ const Code codeMainRequiredNamedParameters = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMainRequiredNamedParameters = const MessageCode( - "MainRequiredNamedParameters", - problemMessage: - r"""The 'main' method cannot have required named parameters."""); + "MainRequiredNamedParameters", + problemMessage: + r"""The 'main' method cannot have required named parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMainRequiredNamedParametersExported = messageMainRequiredNamedParametersExported; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMainRequiredNamedParametersExported = const MessageCode( - "MainRequiredNamedParametersExported", - problemMessage: - r"""The exported 'main' method cannot have required named parameters."""); +const MessageCode messageMainRequiredNamedParametersExported = + const MessageCode( + "MainRequiredNamedParametersExported", + problemMessage: + r"""The exported 'main' method cannot have required named parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMainTooManyRequiredParameters = @@ -9738,19 +11474,22 @@ const Code codeMainTooManyRequiredParameters = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMainTooManyRequiredParameters = const MessageCode( - "MainTooManyRequiredParameters", - problemMessage: - r"""The 'main' method must have at most 2 required parameters."""); + "MainTooManyRequiredParameters", + problemMessage: + r"""The 'main' method must have at most 2 required parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMainTooManyRequiredParametersExported = messageMainTooManyRequiredParametersExported; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMainTooManyRequiredParametersExported = const MessageCode( - "MainTooManyRequiredParametersExported", - problemMessage: - r"""The exported 'main' method must have at most 2 required parameters."""); +const MessageCode messageMainTooManyRequiredParametersExported = + const MessageCode( + "MainTooManyRequiredParametersExported", + problemMessage: + r"""The exported 'main' method must have at most 2 required parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMapLiteralTypeArgumentMismatch = @@ -9758,9 +11497,10 @@ const Code codeMapLiteralTypeArgumentMismatch = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMapLiteralTypeArgumentMismatch = const MessageCode( - "MapLiteralTypeArgumentMismatch", - analyzerCodes: ["EXPECTED_TWO_MAP_TYPE_ARGUMENTS"], - problemMessage: r"""A map literal requires exactly two type arguments."""); + "MapLiteralTypeArgumentMismatch", + analyzerCodes: ["EXPECTED_TWO_MAP_TYPE_ARGUMENTS"], + problemMessage: r"""A map literal requires exactly two type arguments.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMapPatternTypeArgumentMismatch = @@ -9768,28 +11508,37 @@ const Code codeMapPatternTypeArgumentMismatch = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMapPatternTypeArgumentMismatch = const MessageCode( - "MapPatternTypeArgumentMismatch", - analyzerCodes: ["EXPECTED_TWO_MAP_PATTERN_TYPE_ARGUMENTS"], - problemMessage: r"""A map pattern requires exactly two type arguments."""); + "MapPatternTypeArgumentMismatch", + analyzerCodes: ["EXPECTED_TWO_MAP_PATTERN_TYPE_ARGUMENTS"], + problemMessage: r"""A map pattern requires exactly two type arguments.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateMemberNotFound = - const Template("MemberNotFound", - problemMessageTemplate: r"""Member not found: '#name'.""", - withArguments: _withArgumentsMemberNotFound); + const Template( + "MemberNotFound", + problemMessageTemplate: r"""Member not found: '#name'.""", + withArguments: _withArgumentsMemberNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMemberNotFound = - const Code("MemberNotFound", - analyzerCodes: ["UNDEFINED_GETTER"]); + const Code( + "MemberNotFound", + analyzerCodes: ["UNDEFINED_GETTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMemberNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeMemberNotFound, - problemMessage: """Member not found: '${name}'.""", - arguments: {'name': name}); + return new Message( + codeMemberNotFound, + problemMessage: """Member not found: '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -9798,11 +11547,12 @@ const Code codeMemberWithSameNameAsClass = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMemberWithSameNameAsClass = const MessageCode( - "MemberWithSameNameAsClass", - index: 105, - problemMessage: - r"""A class member can't have the same name as the enclosing class.""", - correctionMessage: r"""Try renaming the member."""); + "MemberWithSameNameAsClass", + index: 105, + problemMessage: + r"""A class member can't have the same name as the enclosing class.""", + correctionMessage: r"""Try renaming the member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMetadataSpaceBeforeParenthesis = @@ -9810,51 +11560,63 @@ const Code codeMetadataSpaceBeforeParenthesis = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMetadataSpaceBeforeParenthesis = const MessageCode( - "MetadataSpaceBeforeParenthesis", - index: 134, - problemMessage: - r"""Annotations can't have spaces or comments before the parenthesis.""", - correctionMessage: - r"""Remove any spaces or comments before the parenthesis."""); + "MetadataSpaceBeforeParenthesis", + index: 134, + problemMessage: + r"""Annotations can't have spaces or comments before the parenthesis.""", + correctionMessage: + r"""Remove any spaces or comments before the parenthesis.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMetadataTypeArguments = messageMetadataTypeArguments; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMetadataTypeArguments = const MessageCode( - "MetadataTypeArguments", - index: 91, - problemMessage: r"""An annotation can't use type arguments."""); + "MetadataTypeArguments", + index: 91, + problemMessage: r"""An annotation can't use type arguments.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMetadataTypeArgumentsUninstantiated = messageMetadataTypeArgumentsUninstantiated; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMetadataTypeArgumentsUninstantiated = const MessageCode( - "MetadataTypeArgumentsUninstantiated", - index: 114, - problemMessage: - r"""An annotation with type arguments must be followed by an argument list."""); +const MessageCode messageMetadataTypeArgumentsUninstantiated = + const MessageCode( + "MetadataTypeArgumentsUninstantiated", + index: 114, + problemMessage: + r"""An annotation with type arguments must be followed by an argument list.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateMethodNotFound = - const Template("MethodNotFound", - problemMessageTemplate: r"""Method not found: '#name'.""", - withArguments: _withArgumentsMethodNotFound); + const Template( + "MethodNotFound", + problemMessageTemplate: r"""Method not found: '#name'.""", + withArguments: _withArgumentsMethodNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMethodNotFound = - const Code("MethodNotFound", - analyzerCodes: ["UNDEFINED_METHOD"]); + const Code( + "MethodNotFound", + analyzerCodes: ["UNDEFINED_METHOD"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMethodNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeMethodNotFound, - problemMessage: """Method not found: '${name}'.""", - arguments: {'name': name}); + return new Message( + codeMethodNotFound, + problemMessage: """Method not found: '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -9862,8 +11624,9 @@ const Code codeMissingArgumentList = messageMissingArgumentList; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingArgumentList = const MessageCode( - "MissingArgumentList", - problemMessage: r"""Constructor invocations must have an argument list."""); + "MissingArgumentList", + problemMessage: r"""Constructor invocations must have an argument list.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingAssignableSelector = @@ -9871,10 +11634,11 @@ const Code codeMissingAssignableSelector = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingAssignableSelector = const MessageCode( - "MissingAssignableSelector", - index: 35, - problemMessage: r"""Missing selector such as '.identifier' or '[0]'.""", - correctionMessage: r"""Try adding a selector."""); + "MissingAssignableSelector", + index: 35, + problemMessage: r"""Missing selector such as '.identifier' or '[0]'.""", + correctionMessage: r"""Try adding a selector.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingAssignmentInInitializer = @@ -9882,11 +11646,12 @@ const Code codeMissingAssignmentInInitializer = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingAssignmentInInitializer = const MessageCode( - "MissingAssignmentInInitializer", - index: 34, - problemMessage: r"""Expected an assignment after the field name.""", - correctionMessage: - r"""To initialize a field, use the syntax 'name = value'."""); + "MissingAssignmentInInitializer", + index: 34, + problemMessage: r"""Expected an assignment after the field name.""", + correctionMessage: + r"""To initialize a field, use the syntax 'name = value'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingConstFinalVarOrType = @@ -9894,44 +11659,49 @@ const Code codeMissingConstFinalVarOrType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingConstFinalVarOrType = const MessageCode( - "MissingConstFinalVarOrType", - index: 33, - problemMessage: - r"""Variables must be declared using the keywords 'const', 'final', 'var' or a type name.""", - correctionMessage: - r"""Try adding the name of the type of the variable or the keyword 'var'."""); + "MissingConstFinalVarOrType", + index: 33, + problemMessage: + r"""Variables must be declared using the keywords 'const', 'final', 'var' or a type name.""", + correctionMessage: + r"""Try adding the name of the type of the variable or the keyword 'var'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingExplicitConst = messageMissingExplicitConst; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingExplicitConst = const MessageCode( - "MissingExplicitConst", - analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], - problemMessage: r"""Constant expression expected.""", - correctionMessage: r"""Try inserting 'const'."""); + "MissingExplicitConst", + analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], + problemMessage: r"""Constant expression expected.""", + correctionMessage: r"""Try inserting 'const'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingExponent = messageMissingExponent; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMissingExponent = const MessageCode("MissingExponent", - analyzerCodes: ["MISSING_DIGIT"], - problemMessage: - r"""Numbers in exponential notation should always contain an exponent (an integer number with an optional sign).""", - correctionMessage: - r"""Make sure there is an exponent, and remove any whitespace before it."""); +const MessageCode messageMissingExponent = const MessageCode( + "MissingExponent", + analyzerCodes: ["MISSING_DIGIT"], + problemMessage: + r"""Numbers in exponential notation should always contain an exponent (an integer number with an optional sign).""", + correctionMessage: + r"""Make sure there is an exponent, and remove any whitespace before it.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingExpressionInThrow = messageMissingExpressionInThrow; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingExpressionInThrow = const MessageCode( - "MissingExpressionInThrow", - index: 32, - problemMessage: r"""Missing expression after 'throw'.""", - correctionMessage: - r"""Add an expression after 'throw' or use 'rethrow' to throw a caught exception"""); + "MissingExpressionInThrow", + index: 32, + problemMessage: r"""Missing expression after 'throw'.""", + correctionMessage: + r"""Add an expression after 'throw' or use 'rethrow' to throw a caught exception""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingFunctionParameters = @@ -9939,59 +11709,67 @@ const Code codeMissingFunctionParameters = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingFunctionParameters = const MessageCode( - "MissingFunctionParameters", - analyzerCodes: ["MISSING_FUNCTION_PARAMETERS"], - problemMessage: - r"""A function declaration needs an explicit list of parameters.""", - correctionMessage: - r"""Try adding a parameter list to the function declaration."""); + "MissingFunctionParameters", + analyzerCodes: ["MISSING_FUNCTION_PARAMETERS"], + problemMessage: + r"""A function declaration needs an explicit list of parameters.""", + correctionMessage: + r"""Try adding a parameter list to the function declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateMissingImplementationCause = - const Template("MissingImplementationCause", - problemMessageTemplate: r"""'#name' is defined here.""", - withArguments: _withArgumentsMissingImplementationCause); + const Template( + "MissingImplementationCause", + problemMessageTemplate: r"""'#name' is defined here.""", + withArguments: _withArgumentsMissingImplementationCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingImplementationCause = - const Code("MissingImplementationCause", - severity: Severity.context); + const Code( + "MissingImplementationCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMissingImplementationCause(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeMissingImplementationCause, - problemMessage: """'${name}' is defined here.""", - arguments: {'name': name}); + return new Message( + codeMissingImplementationCause, + problemMessage: """'${name}' is defined here.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - List - _names)> templateMissingImplementationNotAbstract = const Template< - Message Function(String name, List _names)>( - "MissingImplementationNotAbstract", - problemMessageTemplate: - r"""The non-abstract class '#name' is missing implementations for these members: +const Template _names)> + templateMissingImplementationNotAbstract = + const Template _names)>( + "MissingImplementationNotAbstract", + problemMessageTemplate: + r"""The non-abstract class '#name' is missing implementations for these members: #names""", - correctionMessageTemplate: r"""Try to either + correctionMessageTemplate: r"""Try to either - provide an implementation, - inherit an implementation from a superclass or mixin, - mark the class as abstract, or - provide a 'noSuchMethod' implementation. """, - withArguments: _withArgumentsMissingImplementationNotAbstract); + withArguments: _withArgumentsMissingImplementationNotAbstract, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code _names)> codeMissingImplementationNotAbstract = const Code _names)>( - "MissingImplementationNotAbstract", - analyzerCodes: ["CONCRETE_CLASS_WITH_ABSTRACT_MEMBER"]); + "MissingImplementationNotAbstract", + analyzerCodes: ["CONCRETE_CLASS_WITH_ABSTRACT_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMissingImplementationNotAbstract( @@ -10000,78 +11778,95 @@ Message _withArgumentsMissingImplementationNotAbstract( name = demangleMixinApplicationName(name); if (_names.isEmpty) throw 'No names provided'; String names = itemizeNames(_names); - return new Message(codeMissingImplementationNotAbstract, - problemMessage: - """The non-abstract class '${name}' is missing implementations for these members: + return new Message( + codeMissingImplementationNotAbstract, + problemMessage: + """The non-abstract class '${name}' is missing implementations for these members: ${names}""", - correctionMessage: """Try to either + correctionMessage: """Try to either - provide an implementation, - inherit an implementation from a superclass or mixin, - mark the class as abstract, or - provide a 'noSuchMethod' implementation. """, - arguments: {'name': name, 'names': _names}); + arguments: { + 'name': name, + 'names': _names, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingInput = messageMissingInput; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMissingInput = const MessageCode("MissingInput", - problemMessage: r"""No input file provided to the compiler."""); +const MessageCode messageMissingInput = const MessageCode( + "MissingInput", + problemMessage: r"""No input file provided to the compiler.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingMain = messageMissingMain; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMissingMain = const MessageCode("MissingMain", - problemMessage: r"""No 'main' method found.""", - correctionMessage: - r"""Try adding a method named 'main' to your program."""); +const MessageCode messageMissingMain = const MessageCode( + "MissingMain", + problemMessage: r"""No 'main' method found.""", + correctionMessage: r"""Try adding a method named 'main' to your program.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingMethodParameters = messageMissingMethodParameters; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingMethodParameters = const MessageCode( - "MissingMethodParameters", - analyzerCodes: ["MISSING_METHOD_PARAMETERS"], - problemMessage: - r"""A method declaration needs an explicit list of parameters.""", - correctionMessage: - r"""Try adding a parameter list to the method declaration."""); + "MissingMethodParameters", + analyzerCodes: ["MISSING_METHOD_PARAMETERS"], + problemMessage: + r"""A method declaration needs an explicit list of parameters.""", + correctionMessage: + r"""Try adding a parameter list to the method declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingOperatorKeyword = messageMissingOperatorKeyword; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingOperatorKeyword = const MessageCode( - "MissingOperatorKeyword", - index: 31, - problemMessage: - r"""Operator declarations must be preceded by the keyword 'operator'.""", - correctionMessage: r"""Try adding the keyword 'operator'."""); + "MissingOperatorKeyword", + index: 31, + problemMessage: + r"""Operator declarations must be preceded by the keyword 'operator'.""", + correctionMessage: r"""Try adding the keyword 'operator'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(Uri uri_)> templateMissingPartOf = const Template< - Message Function(Uri uri_)>("MissingPartOf", - problemMessageTemplate: - r"""Can't use '#uri' as a part, because it has no 'part of' declaration.""", - withArguments: _withArgumentsMissingPartOf); +const Template templateMissingPartOf = + const Template( + "MissingPartOf", + problemMessageTemplate: + r"""Can't use '#uri' as a part, because it has no 'part of' declaration.""", + withArguments: _withArgumentsMissingPartOf, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingPartOf = - const Code("MissingPartOf", - analyzerCodes: ["PART_OF_NON_PART"]); + const Code( + "MissingPartOf", + analyzerCodes: ["PART_OF_NON_PART"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMissingPartOf(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codeMissingPartOf, - problemMessage: - """Can't use '${uri}' as a part, because it has no 'part of' declaration.""", - arguments: {'uri': uri_}); + return new Message( + codeMissingPartOf, + problemMessage: + """Can't use '${uri}' as a part, because it has no 'part of' declaration.""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10080,11 +11875,12 @@ const Code codeMissingPrefixInDeferredImport = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingPrefixInDeferredImport = const MessageCode( - "MissingPrefixInDeferredImport", - index: 30, - problemMessage: r"""Deferred imports should have a prefix.""", - correctionMessage: - r"""Try adding a prefix to the import by adding an 'as' clause."""); + "MissingPrefixInDeferredImport", + index: 30, + problemMessage: r"""Deferred imports should have a prefix.""", + correctionMessage: + r"""Try adding a prefix to the import by adding an 'as' clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingPrimaryConstructor = @@ -10092,90 +11888,102 @@ const Code codeMissingPrimaryConstructor = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingPrimaryConstructor = const MessageCode( - "MissingPrimaryConstructor", - index: 162, - problemMessage: - r"""An extension type declaration must have a primary constructor declaration.""", - correctionMessage: - r"""Try adding a primary constructor to the extension type declaration."""); + "MissingPrimaryConstructor", + index: 162, + problemMessage: + r"""An extension type declaration must have a primary constructor declaration.""", + correctionMessage: + r"""Try adding a primary constructor to the extension type declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingPrimaryConstructorParameters = messageMissingPrimaryConstructorParameters; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMissingPrimaryConstructorParameters = const MessageCode( - "MissingPrimaryConstructorParameters", - index: 163, - problemMessage: - r"""A primary constructor declaration must have formal parameters.""", - correctionMessage: - r"""Try adding formal parameters after the primary constructor name."""); +const MessageCode messageMissingPrimaryConstructorParameters = + const MessageCode( + "MissingPrimaryConstructorParameters", + index: 163, + problemMessage: + r"""A primary constructor declaration must have formal parameters.""", + correctionMessage: + r"""Try adding formal parameters after the primary constructor name.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingTypedefParameters = messageMissingTypedefParameters; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMissingTypedefParameters = const MessageCode( - "MissingTypedefParameters", - analyzerCodes: ["MISSING_TYPEDEF_PARAMETERS"], - problemMessage: r"""A typedef needs an explicit list of parameters.""", - correctionMessage: r"""Try adding a parameter list to the typedef."""); + "MissingTypedefParameters", + analyzerCodes: ["MISSING_TYPEDEF_PARAMETERS"], + problemMessage: r"""A typedef needs an explicit list of parameters.""", + correctionMessage: r"""Try adding a parameter list to the typedef.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateMissingVariablePattern = const Template< - Message Function(String name)>("MissingVariablePattern", - problemMessageTemplate: - r"""Variable pattern '#name' is missing in this branch of the logical-or pattern.""", - correctionMessageTemplate: - r"""Try declaring this variable pattern in the branch.""", - withArguments: _withArgumentsMissingVariablePattern); +const Template templateMissingVariablePattern = + const Template( + "MissingVariablePattern", + problemMessageTemplate: + r"""Variable pattern '#name' is missing in this branch of the logical-or pattern.""", + correctionMessageTemplate: + r"""Try declaring this variable pattern in the branch.""", + withArguments: _withArgumentsMissingVariablePattern, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMissingVariablePattern = - const Code("MissingVariablePattern", - analyzerCodes: ["MISSING_VARIABLE_PATTERN"]); + const Code( + "MissingVariablePattern", + analyzerCodes: ["MISSING_VARIABLE_PATTERN"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMissingVariablePattern(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeMissingVariablePattern, - problemMessage: - """Variable pattern '${name}' is missing in this branch of the logical-or pattern.""", - correctionMessage: """Try declaring this variable pattern in the branch.""", - arguments: {'name': name}); + return new Message( + codeMissingVariablePattern, + problemMessage: + """Variable pattern '${name}' is missing in this branch of the logical-or pattern.""", + correctionMessage: """Try declaring this variable pattern in the branch.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateMixinApplicationNoConcreteGetter = const Template< - Message Function(String name)>("MixinApplicationNoConcreteGetter", - problemMessageTemplate: - r"""The class doesn't have a concrete implementation of the super-accessed member '#name'.""", - withArguments: _withArgumentsMixinApplicationNoConcreteGetter); +const Template + templateMixinApplicationNoConcreteGetter = + const Template( + "MixinApplicationNoConcreteGetter", + problemMessageTemplate: + r"""The class doesn't have a concrete implementation of the super-accessed member '#name'.""", + withArguments: _withArgumentsMixinApplicationNoConcreteGetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMixinApplicationNoConcreteGetter = const Code( - "MixinApplicationNoConcreteGetter", - analyzerCodes: [ - "MIXIN_APPLICATION_NO_CONCRETE_SUPER_INVOKED_MEMBER" - ]); + "MixinApplicationNoConcreteGetter", + analyzerCodes: ["MIXIN_APPLICATION_NO_CONCRETE_SUPER_INVOKED_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMixinApplicationNoConcreteGetter(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeMixinApplicationNoConcreteGetter, - problemMessage: - """The class doesn't have a concrete implementation of the super-accessed member '${name}'.""", - arguments: {'name': name}); + return new Message( + codeMixinApplicationNoConcreteGetter, + problemMessage: + """The class doesn't have a concrete implementation of the super-accessed member '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10184,65 +11992,73 @@ const Code codeMixinApplicationNoConcreteMemberContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMixinApplicationNoConcreteMemberContext = - const MessageCode("MixinApplicationNoConcreteMemberContext", - severity: Severity.context, - problemMessage: - r"""This is the super-access that doesn't have a concrete target."""); + const MessageCode( + "MixinApplicationNoConcreteMemberContext", + severity: Severity.context, + problemMessage: + r"""This is the super-access that doesn't have a concrete target.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateMixinApplicationNoConcreteMethod = const Template< - Message Function(String name)>("MixinApplicationNoConcreteMethod", - problemMessageTemplate: - r"""The class doesn't have a concrete implementation of the super-invoked member '#name'.""", - withArguments: _withArgumentsMixinApplicationNoConcreteMethod); +const Template + templateMixinApplicationNoConcreteMethod = + const Template( + "MixinApplicationNoConcreteMethod", + problemMessageTemplate: + r"""The class doesn't have a concrete implementation of the super-invoked member '#name'.""", + withArguments: _withArgumentsMixinApplicationNoConcreteMethod, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMixinApplicationNoConcreteMethod = const Code( - "MixinApplicationNoConcreteMethod", - analyzerCodes: [ - "MIXIN_APPLICATION_NO_CONCRETE_SUPER_INVOKED_MEMBER" - ]); + "MixinApplicationNoConcreteMethod", + analyzerCodes: ["MIXIN_APPLICATION_NO_CONCRETE_SUPER_INVOKED_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMixinApplicationNoConcreteMethod(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeMixinApplicationNoConcreteMethod, - problemMessage: - """The class doesn't have a concrete implementation of the super-invoked member '${name}'.""", - arguments: {'name': name}); + return new Message( + codeMixinApplicationNoConcreteMethod, + problemMessage: + """The class doesn't have a concrete implementation of the super-invoked member '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateMixinApplicationNoConcreteSetter = const Template< - Message Function(String name)>("MixinApplicationNoConcreteSetter", - problemMessageTemplate: - r"""The class doesn't have a concrete implementation of the super-accessed setter '#name'.""", - withArguments: _withArgumentsMixinApplicationNoConcreteSetter); +const Template + templateMixinApplicationNoConcreteSetter = + const Template( + "MixinApplicationNoConcreteSetter", + problemMessageTemplate: + r"""The class doesn't have a concrete implementation of the super-accessed setter '#name'.""", + withArguments: _withArgumentsMixinApplicationNoConcreteSetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMixinApplicationNoConcreteSetter = const Code( - "MixinApplicationNoConcreteSetter", - analyzerCodes: [ - "MIXIN_APPLICATION_NO_CONCRETE_SUPER_INVOKED_MEMBER" - ]); + "MixinApplicationNoConcreteSetter", + analyzerCodes: ["MIXIN_APPLICATION_NO_CONCRETE_SUPER_INVOKED_MEMBER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMixinApplicationNoConcreteSetter(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeMixinApplicationNoConcreteSetter, - problemMessage: - """The class doesn't have a concrete implementation of the super-accessed setter '${name}'.""", - arguments: {'name': name}); + return new Message( + codeMixinApplicationNoConcreteSetter, + problemMessage: + """The class doesn't have a concrete implementation of the super-accessed setter '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10250,64 +12066,71 @@ const Code codeMixinDeclaresConstructor = messageMixinDeclaresConstructor; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMixinDeclaresConstructor = const MessageCode( - "MixinDeclaresConstructor", - index: 95, - problemMessage: r"""Mixins can't declare constructors."""); + "MixinDeclaresConstructor", + index: 95, + problemMessage: r"""Mixins can't declare constructors.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMixinDeferredMixin = messageMixinDeferredMixin; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMixinDeferredMixin = const MessageCode( - "MixinDeferredMixin", - analyzerCodes: ["MIXIN_DEFERRED_CLASS"], - problemMessage: r"""Classes can't mix in deferred mixins.""", - correctionMessage: r"""Try changing the import to not be deferred."""); + "MixinDeferredMixin", + analyzerCodes: ["MIXIN_DEFERRED_CLASS"], + problemMessage: r"""Classes can't mix in deferred mixins.""", + correctionMessage: r"""Try changing the import to not be deferred.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateMixinInheritsFromNotObject = const Template< - Message Function(String name)>("MixinInheritsFromNotObject", - problemMessageTemplate: - r"""The class '#name' can't be used as a mixin because it extends a class other than 'Object'.""", - withArguments: _withArgumentsMixinInheritsFromNotObject); +const Template + templateMixinInheritsFromNotObject = + const Template( + "MixinInheritsFromNotObject", + problemMessageTemplate: + r"""The class '#name' can't be used as a mixin because it extends a class other than 'Object'.""", + withArguments: _withArgumentsMixinInheritsFromNotObject, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMixinInheritsFromNotObject = - const Code("MixinInheritsFromNotObject", - analyzerCodes: ["MIXIN_INHERITS_FROM_NOT_OBJECT"]); + const Code( + "MixinInheritsFromNotObject", + analyzerCodes: ["MIXIN_INHERITS_FROM_NOT_OBJECT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMixinInheritsFromNotObject(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeMixinInheritsFromNotObject, - problemMessage: - """The class '${name}' can't be used as a mixin because it extends a class other than 'Object'.""", - arguments: {'name': name}); + return new Message( + codeMixinInheritsFromNotObject, + problemMessage: + """The class '${name}' can't be used as a mixin because it extends a class other than 'Object'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateMixinSubtypeOfBaseIsNotBase = const Template< - Message Function(String name, String name2)>( - "MixinSubtypeOfBaseIsNotBase", - problemMessageTemplate: - r"""The mixin '#name' must be 'base' because the supertype '#name2' is 'base'.""", - correctionMessageTemplate: r"""Try adding 'base' to the mixin.""", - withArguments: _withArgumentsMixinSubtypeOfBaseIsNotBase); +const Template + templateMixinSubtypeOfBaseIsNotBase = + const Template( + "MixinSubtypeOfBaseIsNotBase", + problemMessageTemplate: + r"""The mixin '#name' must be 'base' because the supertype '#name2' is 'base'.""", + correctionMessageTemplate: r"""Try adding 'base' to the mixin.""", + withArguments: _withArgumentsMixinSubtypeOfBaseIsNotBase, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMixinSubtypeOfBaseIsNotBase = const Code( - "MixinSubtypeOfBaseIsNotBase", - analyzerCodes: ["MIXIN_SUBTYPE_OF_BASE_IS_NOT_BASE"]); + "MixinSubtypeOfBaseIsNotBase", + analyzerCodes: ["MIXIN_SUBTYPE_OF_BASE_IS_NOT_BASE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMixinSubtypeOfBaseIsNotBase(String name, String name2) { @@ -10315,32 +12138,36 @@ Message _withArgumentsMixinSubtypeOfBaseIsNotBase(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeMixinSubtypeOfBaseIsNotBase, - problemMessage: - """The mixin '${name}' must be 'base' because the supertype '${name2}' is 'base'.""", - correctionMessage: """Try adding 'base' to the mixin.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeMixinSubtypeOfBaseIsNotBase, + problemMessage: + """The mixin '${name}' must be 'base' because the supertype '${name2}' is 'base'.""", + correctionMessage: """Try adding 'base' to the mixin.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateMixinSubtypeOfFinalIsNotBase = const Template< - Message Function(String name, String name2)>( - "MixinSubtypeOfFinalIsNotBase", - problemMessageTemplate: - r"""The mixin '#name' must be 'base' because the supertype '#name2' is 'final'.""", - correctionMessageTemplate: r"""Try adding 'base' to the mixin.""", - withArguments: _withArgumentsMixinSubtypeOfFinalIsNotBase); +const Template + templateMixinSubtypeOfFinalIsNotBase = + const Template( + "MixinSubtypeOfFinalIsNotBase", + problemMessageTemplate: + r"""The mixin '#name' must be 'base' because the supertype '#name2' is 'final'.""", + correctionMessageTemplate: r"""Try adding 'base' to the mixin.""", + withArguments: _withArgumentsMixinSubtypeOfFinalIsNotBase, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMixinSubtypeOfFinalIsNotBase = const Code( - "MixinSubtypeOfFinalIsNotBase", - analyzerCodes: ["MIXIN_SUBTYPE_OF_FINAL_IS_NOT_BASE"]); + "MixinSubtypeOfFinalIsNotBase", + analyzerCodes: ["MIXIN_SUBTYPE_OF_FINAL_IS_NOT_BASE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMixinSubtypeOfFinalIsNotBase(String name, String name2) { @@ -10348,11 +12175,16 @@ Message _withArgumentsMixinSubtypeOfFinalIsNotBase(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeMixinSubtypeOfFinalIsNotBase, - problemMessage: - """The mixin '${name}' must be 'base' because the supertype '${name2}' is 'final'.""", - correctionMessage: """Try adding 'base' to the mixin.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeMixinSubtypeOfFinalIsNotBase, + problemMessage: + """The mixin '${name}' must be 'base' because the supertype '${name2}' is 'final'.""", + correctionMessage: """Try adding 'base' to the mixin.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10362,47 +12194,56 @@ const Code codeMixinSuperClassConstraintDeferredClass = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMixinSuperClassConstraintDeferredClass = const MessageCode( - "MixinSuperClassConstraintDeferredClass", - analyzerCodes: ["MIXIN_SUPER_CLASS_CONSTRAINT_DEFERRED_CLASS"], - problemMessage: - r"""Deferred classes can't be used as superclass constraints.""", - correctionMessage: r"""Try changing the import to not be deferred."""); + "MixinSuperClassConstraintDeferredClass", + analyzerCodes: ["MIXIN_SUPER_CLASS_CONSTRAINT_DEFERRED_CLASS"], + problemMessage: + r"""Deferred classes can't be used as superclass constraints.""", + correctionMessage: r"""Try changing the import to not be deferred.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMixinWithClause = messageMixinWithClause; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMixinWithClause = const MessageCode("MixinWithClause", - index: 154, problemMessage: r"""A mixin can't have a with clause."""); +const MessageCode messageMixinWithClause = const MessageCode( + "MixinWithClause", + index: 154, + problemMessage: r"""A mixin can't have a with clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateModifierOutOfOrder = const Template< - Message Function(String string, String string2)>("ModifierOutOfOrder", - problemMessageTemplate: - r"""The modifier '#string' should be before the modifier '#string2'.""", - correctionMessageTemplate: r"""Try re-ordering the modifiers.""", - withArguments: _withArgumentsModifierOutOfOrder); +const Template + templateModifierOutOfOrder = + const Template( + "ModifierOutOfOrder", + problemMessageTemplate: + r"""The modifier '#string' should be before the modifier '#string2'.""", + correctionMessageTemplate: r"""Try re-ordering the modifiers.""", + withArguments: _withArgumentsModifierOutOfOrder, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeModifierOutOfOrder = const Code( - "ModifierOutOfOrder", - index: 56); + "ModifierOutOfOrder", + index: 56, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsModifierOutOfOrder(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeModifierOutOfOrder, - problemMessage: - """The modifier '${string}' should be before the modifier '${string2}'.""", - correctionMessage: """Try re-ordering the modifiers.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeModifierOutOfOrder, + problemMessage: + """The modifier '${string}' should be before the modifier '${string2}'.""", + correctionMessage: """Try re-ordering the modifiers.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10411,63 +12252,73 @@ const Code codeMoreThanOneSuperInitializer = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMoreThanOneSuperInitializer = const MessageCode( - "MoreThanOneSuperInitializer", - analyzerCodes: ["MULTIPLE_SUPER_INITIALIZERS"], - problemMessage: r"""Can't have more than one 'super' initializer."""); + "MoreThanOneSuperInitializer", + analyzerCodes: ["MULTIPLE_SUPER_INITIALIZERS"], + problemMessage: r"""Can't have more than one 'super' initializer.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateMultipleClauses = const Template< - Message Function(String string, String string2)>("MultipleClauses", - problemMessageTemplate: - r"""Each '#string' definition can have at most one '#string2' clause.""", - correctionMessageTemplate: - r"""Try combining all of the '#string2' clauses into a single clause.""", - withArguments: _withArgumentsMultipleClauses); +const Template + templateMultipleClauses = + const Template( + "MultipleClauses", + problemMessageTemplate: + r"""Each '#string' definition can have at most one '#string2' clause.""", + correctionMessageTemplate: + r"""Try combining all of the '#string2' clauses into a single clause.""", + withArguments: _withArgumentsMultipleClauses, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMultipleClauses = const Code( - "MultipleClauses", - index: 121); + "MultipleClauses", + index: 121, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMultipleClauses(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeMultipleClauses, - problemMessage: - """Each '${string}' definition can have at most one '${string2}' clause.""", - correctionMessage: """Try combining all of the '${string2}' clauses into a single clause.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeMultipleClauses, + problemMessage: + """Each '${string}' definition can have at most one '${string2}' clause.""", + correctionMessage: + """Try combining all of the '${string2}' clauses into a single clause.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMultipleExtends = messageMultipleExtends; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMultipleExtends = const MessageCode("MultipleExtends", - index: 28, - problemMessage: - r"""Each class definition can have at most one extends clause.""", - correctionMessage: - r"""Try choosing one superclass and define your class to implement (or mix in) the others."""); +const MessageCode messageMultipleExtends = const MessageCode( + "MultipleExtends", + index: 28, + problemMessage: + r"""Each class definition can have at most one extends clause.""", + correctionMessage: + r"""Try choosing one superclass and define your class to implement (or mix in) the others.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMultipleImplements = messageMultipleImplements; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMultipleImplements = const MessageCode( - "MultipleImplements", - analyzerCodes: ["MULTIPLE_IMPLEMENTS_CLAUSES"], - problemMessage: - r"""Each class definition can have at most one implements clause.""", - correctionMessage: - r"""Try combining all of the implements clauses into a single clause."""); + "MultipleImplements", + analyzerCodes: ["MULTIPLE_IMPLEMENTS_CLAUSES"], + problemMessage: + r"""Each class definition can have at most one implements clause.""", + correctionMessage: + r"""Try combining all of the implements clauses into a single clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMultipleLibraryDirectives = @@ -10475,24 +12326,23 @@ const Code codeMultipleLibraryDirectives = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMultipleLibraryDirectives = const MessageCode( - "MultipleLibraryDirectives", - index: 27, - problemMessage: - r"""Only one library directive may be declared in a file.""", - correctionMessage: - r"""Try removing all but one of the library directives."""); + "MultipleLibraryDirectives", + index: 27, + problemMessage: r"""Only one library directive may be declared in a file.""", + correctionMessage: r"""Try removing all but one of the library directives.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMultipleOnClauses = messageMultipleOnClauses; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMultipleOnClauses = const MessageCode( - "MultipleOnClauses", - index: 26, - problemMessage: - r"""Each mixin definition can have at most one on clause.""", - correctionMessage: - r"""Try combining all of the on clauses into a single clause."""); + "MultipleOnClauses", + index: 26, + problemMessage: r"""Each mixin definition can have at most one on clause.""", + correctionMessage: + r"""Try combining all of the on clauses into a single clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMultipleRepresentationFields = @@ -10500,10 +12350,11 @@ const Code codeMultipleRepresentationFields = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMultipleRepresentationFields = const MessageCode( - "MultipleRepresentationFields", - analyzerCodes: ["MULTIPLE_REPRESENTATION_FIELDS"], - problemMessage: - r"""Each extension type should have exactly one representation field."""); + "MultipleRepresentationFields", + analyzerCodes: ["MULTIPLE_REPRESENTATION_FIELDS"], + problemMessage: + r"""Each extension type should have exactly one representation field.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMultipleVarianceModifiers = @@ -10511,42 +12362,53 @@ const Code codeMultipleVarianceModifiers = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageMultipleVarianceModifiers = const MessageCode( - "MultipleVarianceModifiers", - index: 97, - problemMessage: - r"""Each type parameter can have at most one variance modifier.""", - correctionMessage: - r"""Use at most one of the 'in', 'out', or 'inout' modifiers."""); + "MultipleVarianceModifiers", + index: 97, + problemMessage: + r"""Each type parameter can have at most one variance modifier.""", + correctionMessage: + r"""Use at most one of the 'in', 'out', or 'inout' modifiers.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeMultipleWith = messageMultipleWith; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageMultipleWith = const MessageCode("MultipleWith", - index: 24, - problemMessage: - r"""Each class definition can have at most one with clause.""", - correctionMessage: - r"""Try combining all of the with clauses into a single clause."""); +const MessageCode messageMultipleWith = const MessageCode( + "MultipleWith", + index: 24, + problemMessage: + r"""Each class definition can have at most one with clause.""", + correctionMessage: + r"""Try combining all of the with clauses into a single clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNameNotFound = - const Template("NameNotFound", - problemMessageTemplate: r"""Undefined name '#name'.""", - withArguments: _withArgumentsNameNotFound); + const Template( + "NameNotFound", + problemMessageTemplate: r"""Undefined name '#name'.""", + withArguments: _withArgumentsNameNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNameNotFound = - const Code("NameNotFound", - analyzerCodes: ["UNDEFINED_NAME"]); + const Code( + "NameNotFound", + analyzerCodes: ["UNDEFINED_NAME"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNameNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNameNotFound, - problemMessage: """Undefined name '${name}'.""", - arguments: {'name': name}); + return new Message( + codeNameNotFound, + problemMessage: """Undefined name '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10555,30 +12417,32 @@ const Code codeNamedFieldClashesWithPositionalFieldInRecord = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNamedFieldClashesWithPositionalFieldInRecord = - const MessageCode("NamedFieldClashesWithPositionalFieldInRecord", - analyzerCodes: ["INVALID_FIELD_NAME"], - problemMessage: - r"""Record field names can't be a dollar sign followed by an integer when integer is the index of a positional field."""); + const MessageCode( + "NamedFieldClashesWithPositionalFieldInRecord", + analyzerCodes: ["INVALID_FIELD_NAME"], + problemMessage: + r"""Record field names can't be a dollar sign followed by an integer when integer is the index of a positional field.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNamedFunctionExpression = messageNamedFunctionExpression; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNamedFunctionExpression = const MessageCode( - "NamedFunctionExpression", - analyzerCodes: ["NAMED_FUNCTION_EXPRESSION"], - problemMessage: r"""A function expression can't have a name."""); + "NamedFunctionExpression", + analyzerCodes: ["NAMED_FUNCTION_EXPRESSION"], + problemMessage: r"""A function expression can't have a name.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateNamedMixinOverride = const Template< - Message Function(String name, String name2)>("NamedMixinOverride", - problemMessageTemplate: - r"""The mixin application class '#name' introduces an erroneous override of '#name2'.""", - withArguments: _withArgumentsNamedMixinOverride); +const Template + templateNamedMixinOverride = + const Template( + "NamedMixinOverride", + problemMessageTemplate: + r"""The mixin application class '#name' introduces an erroneous override of '#name2'.""", + withArguments: _withArgumentsNamedMixinOverride, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNamedMixinOverride = @@ -10592,10 +12456,15 @@ Message _withArgumentsNamedMixinOverride(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeNamedMixinOverride, - problemMessage: - """The mixin application class '${name}' introduces an erroneous override of '${name2}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeNamedMixinOverride, + problemMessage: + """The mixin application class '${name}' introduces an erroneous override of '${name2}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10604,9 +12473,11 @@ const Code codeNamedParametersInExtensionTypeDeclaration = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNamedParametersInExtensionTypeDeclaration = - const MessageCode("NamedParametersInExtensionTypeDeclaration", - problemMessage: - r"""Extension type declarations can't have named parameters."""); + const MessageCode( + "NamedParametersInExtensionTypeDeclaration", + problemMessage: + r"""Extension type declarations can't have named parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNativeClauseShouldBeAnnotation = @@ -10614,11 +12485,12 @@ const Code codeNativeClauseShouldBeAnnotation = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNativeClauseShouldBeAnnotation = const MessageCode( - "NativeClauseShouldBeAnnotation", - index: 23, - problemMessage: r"""Native clause in this form is deprecated.""", - correctionMessage: - r"""Try removing this native clause and adding @native() or @native('native-name') before the declaration."""); + "NativeClauseShouldBeAnnotation", + index: 23, + problemMessage: r"""Native clause in this form is deprecated.""", + correctionMessage: + r"""Try removing this native clause and adding @native() or @native('native-name') before the declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNeverReachableSwitchDefaultError = @@ -10626,9 +12498,10 @@ const Code codeNeverReachableSwitchDefaultError = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNeverReachableSwitchDefaultError = const MessageCode( - "NeverReachableSwitchDefaultError", - problemMessage: - r"""`null` encountered as case in a switch expression with a non-nullable enum type."""); + "NeverReachableSwitchDefaultError", + problemMessage: + r"""`null` encountered as case in a switch expression with a non-nullable enum type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNeverReachableSwitchDefaultWarning = @@ -10636,20 +12509,23 @@ const Code codeNeverReachableSwitchDefaultWarning = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNeverReachableSwitchDefaultWarning = const MessageCode( - "NeverReachableSwitchDefaultWarning", - severity: Severity.warning, - problemMessage: - r"""The default case is not reachable with sound null safety because the switch expression is non-nullable."""); + "NeverReachableSwitchDefaultWarning", + severity: Severity.warning, + problemMessage: + r"""The default case is not reachable with sound null safety because the switch expression is non-nullable.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNeverReachableSwitchExpressionError = messageNeverReachableSwitchExpressionError; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageNeverReachableSwitchExpressionError = const MessageCode( - "NeverReachableSwitchExpressionError", - problemMessage: - r"""`null` encountered as case in a switch expression with a non-nullable type."""); +const MessageCode messageNeverReachableSwitchExpressionError = + const MessageCode( + "NeverReachableSwitchExpressionError", + problemMessage: + r"""`null` encountered as case in a switch expression with a non-nullable type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNeverReachableSwitchStatementError = @@ -10657,34 +12533,40 @@ const Code codeNeverReachableSwitchStatementError = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNeverReachableSwitchStatementError = const MessageCode( - "NeverReachableSwitchStatementError", - problemMessage: - r"""`null` encountered as case in a switch statement with a non-nullable type."""); + "NeverReachableSwitchStatementError", + problemMessage: + r"""`null` encountered as case in a switch statement with a non-nullable type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNeverValueError = messageNeverValueError; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageNeverValueError = const MessageCode("NeverValueError", - problemMessage: - r"""`null` encountered as the result from expression with type `Never`."""); +const MessageCode messageNeverValueError = const MessageCode( + "NeverValueError", + problemMessage: + r"""`null` encountered as the result from expression with type `Never`.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNeverValueWarning = messageNeverValueWarning; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNeverValueWarning = const MessageCode( - "NeverValueWarning", - severity: Severity.warning, - problemMessage: - r"""The expression can not result in a value with sound null safety because the expression type is `Never`."""); + "NeverValueWarning", + severity: Severity.warning, + problemMessage: + r"""The expression can not result in a value with sound null safety because the expression type is `Never`.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNewAsSelector = messageNewAsSelector; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageNewAsSelector = const MessageCode("NewAsSelector", - problemMessage: r"""'new' can only be used as a constructor reference."""); +const MessageCode messageNewAsSelector = const MessageCode( + "NewAsSelector", + problemMessage: r"""'new' can only be used as a constructor reference.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNoAugmentSuperInvokeTarget = @@ -10692,16 +12574,18 @@ const Code codeNoAugmentSuperInvokeTarget = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNoAugmentSuperInvokeTarget = const MessageCode( - "NoAugmentSuperInvokeTarget", - problemMessage: r"""Cannot call 'augment super'."""); + "NoAugmentSuperInvokeTarget", + problemMessage: r"""Cannot call 'augment super'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNoAugmentSuperReadTarget = messageNoAugmentSuperReadTarget; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNoAugmentSuperReadTarget = const MessageCode( - "NoAugmentSuperReadTarget", - problemMessage: r"""Cannot read from 'augment super'."""); + "NoAugmentSuperReadTarget", + problemMessage: r"""Cannot read from 'augment super'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNoAugmentSuperWriteTarget = @@ -10709,52 +12593,67 @@ const Code codeNoAugmentSuperWriteTarget = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNoAugmentSuperWriteTarget = const MessageCode( - "NoAugmentSuperWriteTarget", - problemMessage: r"""Cannot write to 'augment super'."""); + "NoAugmentSuperWriteTarget", + problemMessage: r"""Cannot write to 'augment super'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(Token token)> templateNoFormals = const Template< - Message Function(Token token)>("NoFormals", - problemMessageTemplate: r"""A function should have formal parameters.""", - correctionMessageTemplate: - r"""Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to declare a getter.""", - withArguments: _withArgumentsNoFormals); +const Template templateNoFormals = + const Template( + "NoFormals", + problemMessageTemplate: r"""A function should have formal parameters.""", + correctionMessageTemplate: + r"""Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to declare a getter.""", + withArguments: _withArgumentsNoFormals, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNoFormals = - const Code("NoFormals", - analyzerCodes: ["MISSING_FUNCTION_PARAMETERS"]); + const Code( + "NoFormals", + analyzerCodes: ["MISSING_FUNCTION_PARAMETERS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNoFormals(Token token) { String lexeme = token.lexeme; - return new Message(codeNoFormals, - problemMessage: """A function should have formal parameters.""", - correctionMessage: - """Try adding '()' after '${lexeme}', or add 'get' before '${lexeme}' to declare a getter.""", - arguments: {'lexeme': token}); + return new Message( + codeNoFormals, + problemMessage: """A function should have formal parameters.""", + correctionMessage: + """Try adding '()' after '${lexeme}', or add 'get' before '${lexeme}' to declare a getter.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNoSuchNamedParameter = - const Template("NoSuchNamedParameter", - problemMessageTemplate: - r"""No named parameter with the name '#name'.""", - withArguments: _withArgumentsNoSuchNamedParameter); + const Template( + "NoSuchNamedParameter", + problemMessageTemplate: r"""No named parameter with the name '#name'.""", + withArguments: _withArgumentsNoSuchNamedParameter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNoSuchNamedParameter = - const Code("NoSuchNamedParameter", - analyzerCodes: ["UNDEFINED_NAMED_PARAMETER"]); + const Code( + "NoSuchNamedParameter", + analyzerCodes: ["UNDEFINED_NAMED_PARAMETER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNoSuchNamedParameter(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNoSuchNamedParameter, - problemMessage: """No named parameter with the name '${name}'.""", - arguments: {'name': name}); + return new Message( + codeNoSuchNamedParameter, + problemMessage: """No named parameter with the name '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10763,85 +12662,98 @@ const Code codeNoUnnamedConstructorInObject = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNoUnnamedConstructorInObject = const MessageCode( - "NoUnnamedConstructorInObject", - problemMessage: r"""'Object' has no unnamed constructor."""); + "NoUnnamedConstructorInObject", + problemMessage: r"""'Object' has no unnamed constructor.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonAgnosticConstant = messageNonAgnosticConstant; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonAgnosticConstant = const MessageCode( - "NonAgnosticConstant", - problemMessage: r"""Constant value is not strong/weak mode agnostic."""); + "NonAgnosticConstant", + problemMessage: r"""Constant value is not strong/weak mode agnostic.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String character, - int - codePoint)> templateNonAsciiIdentifier = const Template< - Message Function(String character, int codePoint)>("NonAsciiIdentifier", - problemMessageTemplate: - r"""The non-ASCII character '#character' (#unicode) can't be used in identifiers, only in strings and comments.""", - correctionMessageTemplate: - r"""Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a dollar sign).""", - withArguments: _withArgumentsNonAsciiIdentifier); +const Template + templateNonAsciiIdentifier = + const Template( + "NonAsciiIdentifier", + problemMessageTemplate: + r"""The non-ASCII character '#character' (#unicode) can't be used in identifiers, only in strings and comments.""", + correctionMessageTemplate: + r"""Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a dollar sign).""", + withArguments: _withArgumentsNonAsciiIdentifier, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonAsciiIdentifier = const Code( - "NonAsciiIdentifier", - analyzerCodes: ["ILLEGAL_CHARACTER"]); + "NonAsciiIdentifier", + analyzerCodes: ["ILLEGAL_CHARACTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNonAsciiIdentifier(String character, int codePoint) { if (character.runes.length != 1) throw "Not a character '${character}'"; String unicode = "U+${codePoint.toRadixString(16).toUpperCase().padLeft(4, '0')}"; - return new Message(codeNonAsciiIdentifier, - problemMessage: - """The non-ASCII character '${character}' (${unicode}) can't be used in identifiers, only in strings and comments.""", - correctionMessage: """Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$' (a dollar sign).""", - arguments: {'character': character, 'unicode': codePoint}); + return new Message( + codeNonAsciiIdentifier, + problemMessage: + """The non-ASCII character '${character}' (${unicode}) can't be used in identifiers, only in strings and comments.""", + correctionMessage: + """Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$' (a dollar sign).""", + arguments: { + 'character': character, + 'unicode': codePoint, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - int - codePoint)> templateNonAsciiWhitespace = const Template< - Message Function(int codePoint)>("NonAsciiWhitespace", - problemMessageTemplate: - r"""The non-ASCII space character #unicode can only be used in strings and comments.""", - withArguments: _withArgumentsNonAsciiWhitespace); +const Template templateNonAsciiWhitespace = + const Template( + "NonAsciiWhitespace", + problemMessageTemplate: + r"""The non-ASCII space character #unicode can only be used in strings and comments.""", + withArguments: _withArgumentsNonAsciiWhitespace, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonAsciiWhitespace = - const Code("NonAsciiWhitespace", - analyzerCodes: ["ILLEGAL_CHARACTER"]); + const Code( + "NonAsciiWhitespace", + analyzerCodes: ["ILLEGAL_CHARACTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNonAsciiWhitespace(int codePoint) { String unicode = "U+${codePoint.toRadixString(16).toUpperCase().padLeft(4, '0')}"; - return new Message(codeNonAsciiWhitespace, - problemMessage: - """The non-ASCII space character ${unicode} can only be used in strings and comments.""", - arguments: {'unicode': codePoint}); + return new Message( + codeNonAsciiWhitespace, + problemMessage: + """The non-ASCII space character ${unicode} can only be used in strings and comments.""", + arguments: { + 'unicode': codePoint, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonAugmentationClassConflict = const Template< - Message Function(String name)>("NonAugmentationClassConflict", - problemMessageTemplate: - r"""Class '#name' conflicts with an existing class of the same name in the augmented library.""", - correctionMessageTemplate: - r"""Try changing the name of the class or adding an 'augment' modifier.""", - withArguments: _withArgumentsNonAugmentationClassConflict); +const Template + templateNonAugmentationClassConflict = + const Template( + "NonAugmentationClassConflict", + problemMessageTemplate: + r"""Class '#name' conflicts with an existing class of the same name in the augmented library.""", + correctionMessageTemplate: + r"""Try changing the name of the class or adding an 'augment' modifier.""", + withArguments: _withArgumentsNonAugmentationClassConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonAugmentationClassConflict = @@ -10853,11 +12765,16 @@ const Code codeNonAugmentationClassConflict = Message _withArgumentsNonAugmentationClassConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonAugmentationClassConflict, - problemMessage: - """Class '${name}' conflicts with an existing class of the same name in the augmented library.""", - correctionMessage: """Try changing the name of the class or adding an 'augment' modifier.""", - arguments: {'name': name}); + return new Message( + codeNonAugmentationClassConflict, + problemMessage: + """Class '${name}' conflicts with an existing class of the same name in the augmented library.""", + correctionMessage: + """Try changing the name of the class or adding an 'augment' modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10866,21 +12783,22 @@ const Code codeNonAugmentationClassConflictCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonAugmentationClassConflictCause = const MessageCode( - "NonAugmentationClassConflictCause", - severity: Severity.context, - problemMessage: r"""This is the existing class."""); + "NonAugmentationClassConflictCause", + severity: Severity.context, + problemMessage: r"""This is the existing class.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonAugmentationClassMemberConflict = const Template< - Message Function(String name)>("NonAugmentationClassMemberConflict", - problemMessageTemplate: - r"""Member '#name' conflicts with an existing member of the same name in the augmented class.""", - correctionMessageTemplate: - r"""Try changing the name of the member or adding an 'augment' modifier.""", - withArguments: _withArgumentsNonAugmentationClassMemberConflict); +const Template + templateNonAugmentationClassMemberConflict = + const Template( + "NonAugmentationClassMemberConflict", + problemMessageTemplate: + r"""Member '#name' conflicts with an existing member of the same name in the augmented class.""", + correctionMessageTemplate: + r"""Try changing the name of the member or adding an 'augment' modifier.""", + withArguments: _withArgumentsNonAugmentationClassMemberConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -10893,24 +12811,29 @@ const Code Message _withArgumentsNonAugmentationClassMemberConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonAugmentationClassMemberConflict, - problemMessage: - """Member '${name}' conflicts with an existing member of the same name in the augmented class.""", - correctionMessage: """Try changing the name of the member or adding an 'augment' modifier.""", - arguments: {'name': name}); + return new Message( + codeNonAugmentationClassMemberConflict, + problemMessage: + """Member '${name}' conflicts with an existing member of the same name in the augmented class.""", + correctionMessage: + """Try changing the name of the member or adding an 'augment' modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonAugmentationConstructorConflict = const Template< - Message Function(String name)>("NonAugmentationConstructorConflict", - problemMessageTemplate: - r"""Constructor '#name' conflicts with an existing constructor of the same name in the augmented class.""", - correctionMessageTemplate: - r"""Try changing the name of the constructor or adding an 'augment' modifier.""", - withArguments: _withArgumentsNonAugmentationConstructorConflict); +const Template + templateNonAugmentationConstructorConflict = + const Template( + "NonAugmentationConstructorConflict", + problemMessageTemplate: + r"""Constructor '#name' conflicts with an existing constructor of the same name in the augmented class.""", + correctionMessageTemplate: + r"""Try changing the name of the constructor or adding an 'augment' modifier.""", + withArguments: _withArgumentsNonAugmentationConstructorConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -10923,11 +12846,16 @@ const Code Message _withArgumentsNonAugmentationConstructorConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonAugmentationConstructorConflict, - problemMessage: - """Constructor '${name}' conflicts with an existing constructor of the same name in the augmented class.""", - correctionMessage: """Try changing the name of the constructor or adding an 'augment' modifier.""", - arguments: {'name': name}); + return new Message( + codeNonAugmentationConstructorConflict, + problemMessage: + """Constructor '${name}' conflicts with an existing constructor of the same name in the augmented class.""", + correctionMessage: + """Try changing the name of the constructor or adding an 'augment' modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -10936,9 +12864,11 @@ const Code codeNonAugmentationConstructorConflictCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonAugmentationConstructorConflictCause = - const MessageCode("NonAugmentationConstructorConflictCause", - severity: Severity.context, - problemMessage: r"""This is the existing constructor."""); + const MessageCode( + "NonAugmentationConstructorConflictCause", + severity: Severity.context, + problemMessage: r"""This is the existing constructor.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonAugmentationDeclarationConflictCause = @@ -10946,20 +12876,22 @@ const Code codeNonAugmentationDeclarationConflictCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonAugmentationDeclarationConflictCause = - const MessageCode("NonAugmentationDeclarationConflictCause", - severity: Severity.context, - problemMessage: r"""This is the existing declaration."""); + const MessageCode( + "NonAugmentationDeclarationConflictCause", + severity: Severity.context, + problemMessage: r"""This is the existing declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonAugmentationLibraryConflict = const Template< - Message Function(String name)>("NonAugmentationLibraryConflict", - problemMessageTemplate: - r"""Declaration '#name' conflicts with an existing declaration of the same name in the augmented library.""", - correctionMessageTemplate: r"""Try changing the name of the declaration.""", - withArguments: _withArgumentsNonAugmentationLibraryConflict); +const Template + templateNonAugmentationLibraryConflict = + const Template( + "NonAugmentationLibraryConflict", + problemMessageTemplate: + r"""Declaration '#name' conflicts with an existing declaration of the same name in the augmented library.""", + correctionMessageTemplate: r"""Try changing the name of the declaration.""", + withArguments: _withArgumentsNonAugmentationLibraryConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonAugmentationLibraryConflict = @@ -10971,24 +12903,28 @@ const Code codeNonAugmentationLibraryConflict = Message _withArgumentsNonAugmentationLibraryConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonAugmentationLibraryConflict, - problemMessage: - """Declaration '${name}' conflicts with an existing declaration of the same name in the augmented library.""", - correctionMessage: """Try changing the name of the declaration.""", - arguments: {'name': name}); + return new Message( + codeNonAugmentationLibraryConflict, + problemMessage: + """Declaration '${name}' conflicts with an existing declaration of the same name in the augmented library.""", + correctionMessage: """Try changing the name of the declaration.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonAugmentationLibraryMemberConflict = const Template< - Message Function(String name)>("NonAugmentationLibraryMemberConflict", - problemMessageTemplate: - r"""Member '#name' conflicts with an existing member of the same name in the augmented library.""", - correctionMessageTemplate: - r"""Try changing the name of the member or adding an 'augment' modifier.""", - withArguments: _withArgumentsNonAugmentationLibraryMemberConflict); +const Template + templateNonAugmentationLibraryMemberConflict = + const Template( + "NonAugmentationLibraryMemberConflict", + problemMessageTemplate: + r"""Member '#name' conflicts with an existing member of the same name in the augmented library.""", + correctionMessageTemplate: + r"""Try changing the name of the member or adding an 'augment' modifier.""", + withArguments: _withArgumentsNonAugmentationLibraryMemberConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -11001,11 +12937,16 @@ const Code Message _withArgumentsNonAugmentationLibraryMemberConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonAugmentationLibraryMemberConflict, - problemMessage: - """Member '${name}' conflicts with an existing member of the same name in the augmented library.""", - correctionMessage: """Try changing the name of the member or adding an 'augment' modifier.""", - arguments: {'name': name}); + return new Message( + codeNonAugmentationLibraryMemberConflict, + problemMessage: + """Member '${name}' conflicts with an existing member of the same name in the augmented library.""", + correctionMessage: + """Try changing the name of the member or adding an 'augment' modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -11014,42 +12955,45 @@ const Code codeNonAugmentationMemberConflictCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonAugmentationMemberConflictCause = const MessageCode( - "NonAugmentationMemberConflictCause", - severity: Severity.context, - problemMessage: r"""This is the existing member."""); + "NonAugmentationMemberConflictCause", + severity: Severity.context, + problemMessage: r"""This is the existing member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonBoolCondition = messageNonBoolCondition; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonBoolCondition = const MessageCode( - "NonBoolCondition", - analyzerCodes: ["NON_BOOL_CONDITION"], - problemMessage: r"""Conditions must have a static type of 'bool'.""", - correctionMessage: r"""Try changing the condition."""); + "NonBoolCondition", + analyzerCodes: ["NON_BOOL_CONDITION"], + problemMessage: r"""Conditions must have a static type of 'bool'.""", + correctionMessage: r"""Try changing the condition.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonConstConstructor = messageNonConstConstructor; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonConstConstructor = const MessageCode( - "NonConstConstructor", - analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], - problemMessage: - r"""Cannot invoke a non-'const' constructor where a const expression is expected.""", - correctionMessage: - r"""Try using a constructor or factory that is 'const'."""); + "NonConstConstructor", + analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], + problemMessage: + r"""Cannot invoke a non-'const' constructor where a const expression is expected.""", + correctionMessage: r"""Try using a constructor or factory that is 'const'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonConstFactory = messageNonConstFactory; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageNonConstFactory = const MessageCode("NonConstFactory", - analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], - problemMessage: - r"""Cannot invoke a non-'const' factory where a const expression is expected.""", - correctionMessage: - r"""Try using a constructor or factory that is 'const'."""); +const MessageCode messageNonConstFactory = const MessageCode( + "NonConstFactory", + analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], + problemMessage: + r"""Cannot invoke a non-'const' factory where a const expression is expected.""", + correctionMessage: r"""Try using a constructor or factory that is 'const'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonCovariantTypeParameterInRepresentationType = @@ -11057,11 +13001,13 @@ const Code codeNonCovariantTypeParameterInRepresentationType = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonCovariantTypeParameterInRepresentationType = - const MessageCode("NonCovariantTypeParameterInRepresentationType", - problemMessage: - r"""An extension type parameter can't be used non-covariantly in its representation type.""", - correctionMessage: - r"""Try removing the type parameters from function parameter types and type parameter bounds."""); + const MessageCode( + "NonCovariantTypeParameterInRepresentationType", + problemMessage: + r"""An extension type parameter can't be used non-covariantly in its representation type.""", + correctionMessage: + r"""Try removing the type parameters from function parameter types and type parameter bounds.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonExtensionTypeMemberContext = @@ -11069,9 +13015,10 @@ const Code codeNonExtensionTypeMemberContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonExtensionTypeMemberContext = const MessageCode( - "NonExtensionTypeMemberContext", - severity: Severity.context, - problemMessage: r"""This is the inherited non-extension type member."""); + "NonExtensionTypeMemberContext", + severity: Severity.context, + problemMessage: r"""This is the inherited non-extension type member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonExtensionTypeMemberOneOfContext = @@ -11079,20 +13026,21 @@ const Code codeNonExtensionTypeMemberOneOfContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonExtensionTypeMemberOneOfContext = const MessageCode( - "NonExtensionTypeMemberOneOfContext", - severity: Severity.context, - problemMessage: - r"""This is one of the inherited non-extension type members."""); + "NonExtensionTypeMemberOneOfContext", + severity: Severity.context, + problemMessage: + r"""This is one of the inherited non-extension type members.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonNullableNotAssignedError = const Template< - Message Function(String name)>("NonNullableNotAssignedError", - problemMessageTemplate: - r"""Non-nullable variable '#name' must be assigned before it can be used.""", - withArguments: _withArgumentsNonNullableNotAssignedError); +const Template + templateNonNullableNotAssignedError = + const Template( + "NonNullableNotAssignedError", + problemMessageTemplate: + r"""Non-nullable variable '#name' must be assigned before it can be used.""", + withArguments: _withArgumentsNonNullableNotAssignedError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonNullableNotAssignedError = @@ -11104,10 +13052,14 @@ const Code codeNonNullableNotAssignedError = Message _withArgumentsNonNullableNotAssignedError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonNullableNotAssignedError, - problemMessage: - """Non-nullable variable '${name}' must be assigned before it can be used.""", - arguments: {'name': name}); + return new Message( + codeNonNullableNotAssignedError, + problemMessage: + """Non-nullable variable '${name}' must be assigned before it can be used.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -11115,24 +13067,24 @@ const Code codeNonPartOfDirectiveInPart = messageNonPartOfDirectiveInPart; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonPartOfDirectiveInPart = const MessageCode( - "NonPartOfDirectiveInPart", - analyzerCodes: ["NON_PART_OF_DIRECTIVE_IN_PART"], - problemMessage: - r"""The part-of directive must be the only directive in a part.""", - correctionMessage: - r"""Try removing the other directives, or moving them to the library for which this is a part."""); + "NonPartOfDirectiveInPart", + analyzerCodes: ["NON_PART_OF_DIRECTIVE_IN_PART"], + problemMessage: + r"""The part-of directive must be the only directive in a part.""", + correctionMessage: + r"""Try removing the other directives, or moving them to the library for which this is a part.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonPatchClassConflict = const Template< - Message Function(String name)>("NonPatchClassConflict", - problemMessageTemplate: - r"""Class '#name' conflicts with an existing class of the same name in the origin library.""", - correctionMessageTemplate: - r"""Try changing the name of the class or adding an '@patch' annotation.""", - withArguments: _withArgumentsNonPatchClassConflict); +const Template templateNonPatchClassConflict = + const Template( + "NonPatchClassConflict", + problemMessageTemplate: + r"""Class '#name' conflicts with an existing class of the same name in the origin library.""", + correctionMessageTemplate: + r"""Try changing the name of the class or adding an '@patch' annotation.""", + withArguments: _withArgumentsNonPatchClassConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonPatchClassConflict = @@ -11144,24 +13096,29 @@ const Code codeNonPatchClassConflict = Message _withArgumentsNonPatchClassConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonPatchClassConflict, - problemMessage: - """Class '${name}' conflicts with an existing class of the same name in the origin library.""", - correctionMessage: """Try changing the name of the class or adding an '@patch' annotation.""", - arguments: {'name': name}); + return new Message( + codeNonPatchClassConflict, + problemMessage: + """Class '${name}' conflicts with an existing class of the same name in the origin library.""", + correctionMessage: + """Try changing the name of the class or adding an '@patch' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonPatchClassMemberConflict = const Template< - Message Function(String name)>("NonPatchClassMemberConflict", - problemMessageTemplate: - r"""Member '#name' conflicts with an existing member of the same name in the origin class.""", - correctionMessageTemplate: - r"""Try changing the name of the member or adding an '@patch' annotation.""", - withArguments: _withArgumentsNonPatchClassMemberConflict); +const Template + templateNonPatchClassMemberConflict = + const Template( + "NonPatchClassMemberConflict", + problemMessageTemplate: + r"""Member '#name' conflicts with an existing member of the same name in the origin class.""", + correctionMessageTemplate: + r"""Try changing the name of the member or adding an '@patch' annotation.""", + withArguments: _withArgumentsNonPatchClassMemberConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonPatchClassMemberConflict = @@ -11173,24 +13130,29 @@ const Code codeNonPatchClassMemberConflict = Message _withArgumentsNonPatchClassMemberConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonPatchClassMemberConflict, - problemMessage: - """Member '${name}' conflicts with an existing member of the same name in the origin class.""", - correctionMessage: """Try changing the name of the member or adding an '@patch' annotation.""", - arguments: {'name': name}); + return new Message( + codeNonPatchClassMemberConflict, + problemMessage: + """Member '${name}' conflicts with an existing member of the same name in the origin class.""", + correctionMessage: + """Try changing the name of the member or adding an '@patch' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonPatchConstructorConflict = const Template< - Message Function(String name)>("NonPatchConstructorConflict", - problemMessageTemplate: - r"""Constructor '#name' conflicts with an existing constructor of the same name in the origin class.""", - correctionMessageTemplate: - r"""Try changing the name of the constructor or adding an '@patch' annotation.""", - withArguments: _withArgumentsNonPatchConstructorConflict); +const Template + templateNonPatchConstructorConflict = + const Template( + "NonPatchConstructorConflict", + problemMessageTemplate: + r"""Constructor '#name' conflicts with an existing constructor of the same name in the origin class.""", + correctionMessageTemplate: + r"""Try changing the name of the constructor or adding an '@patch' annotation.""", + withArguments: _withArgumentsNonPatchConstructorConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonPatchConstructorConflict = @@ -11202,23 +13164,27 @@ const Code codeNonPatchConstructorConflict = Message _withArgumentsNonPatchConstructorConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonPatchConstructorConflict, - problemMessage: - """Constructor '${name}' conflicts with an existing constructor of the same name in the origin class.""", - correctionMessage: """Try changing the name of the constructor or adding an '@patch' annotation.""", - arguments: {'name': name}); + return new Message( + codeNonPatchConstructorConflict, + problemMessage: + """Constructor '${name}' conflicts with an existing constructor of the same name in the origin class.""", + correctionMessage: + """Try changing the name of the constructor or adding an '@patch' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonPatchLibraryConflict = const Template< - Message Function(String name)>("NonPatchLibraryConflict", - problemMessageTemplate: - r"""Declaration '#name' conflicts with an existing declaration of the same name in the origin library.""", - correctionMessageTemplate: r"""Try changing the name of the declaration.""", - withArguments: _withArgumentsNonPatchLibraryConflict); +const Template templateNonPatchLibraryConflict = + const Template( + "NonPatchLibraryConflict", + problemMessageTemplate: + r"""Declaration '#name' conflicts with an existing declaration of the same name in the origin library.""", + correctionMessageTemplate: r"""Try changing the name of the declaration.""", + withArguments: _withArgumentsNonPatchLibraryConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonPatchLibraryConflict = @@ -11230,24 +13196,28 @@ const Code codeNonPatchLibraryConflict = Message _withArgumentsNonPatchLibraryConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonPatchLibraryConflict, - problemMessage: - """Declaration '${name}' conflicts with an existing declaration of the same name in the origin library.""", - correctionMessage: """Try changing the name of the declaration.""", - arguments: {'name': name}); + return new Message( + codeNonPatchLibraryConflict, + problemMessage: + """Declaration '${name}' conflicts with an existing declaration of the same name in the origin library.""", + correctionMessage: """Try changing the name of the declaration.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonPatchLibraryMemberConflict = const Template< - Message Function(String name)>("NonPatchLibraryMemberConflict", - problemMessageTemplate: - r"""Member '#name' conflicts with an existing member of the same name in the origin library.""", - correctionMessageTemplate: - r"""Try changing the name of the member or adding an '@patch' annotation.""", - withArguments: _withArgumentsNonPatchLibraryMemberConflict); +const Template + templateNonPatchLibraryMemberConflict = + const Template( + "NonPatchLibraryMemberConflict", + problemMessageTemplate: + r"""Member '#name' conflicts with an existing member of the same name in the origin library.""", + correctionMessageTemplate: + r"""Try changing the name of the member or adding an '@patch' annotation.""", + withArguments: _withArgumentsNonPatchLibraryMemberConflict, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonPatchLibraryMemberConflict = @@ -11259,11 +13229,16 @@ const Code codeNonPatchLibraryMemberConflict = Message _withArgumentsNonPatchLibraryMemberConflict(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonPatchLibraryMemberConflict, - problemMessage: - """Member '${name}' conflicts with an existing member of the same name in the origin library.""", - correctionMessage: """Try changing the name of the member or adding an '@patch' annotation.""", - arguments: {'name': name}); + return new Message( + codeNonPatchLibraryMemberConflict, + problemMessage: + """Member '${name}' conflicts with an existing member of the same name in the origin library.""", + correctionMessage: + """Try changing the name of the member or adding an '@patch' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -11272,55 +13247,69 @@ const Code codeNonPositiveArrayDimensions = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonPositiveArrayDimensions = const MessageCode( - "NonPositiveArrayDimensions", - problemMessage: r"""Array dimensions must be positive numbers."""); + "NonPositiveArrayDimensions", + problemMessage: r"""Array dimensions must be positive numbers.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNonSimpleBoundViaReference = - const Template("NonSimpleBoundViaReference", - problemMessageTemplate: - r"""Bound of this variable references raw type '#name'.""", - withArguments: _withArgumentsNonSimpleBoundViaReference); + const Template( + "NonSimpleBoundViaReference", + problemMessageTemplate: + r"""Bound of this variable references raw type '#name'.""", + withArguments: _withArgumentsNonSimpleBoundViaReference, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonSimpleBoundViaReference = - const Code("NonSimpleBoundViaReference", - severity: Severity.context); + const Code( + "NonSimpleBoundViaReference", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNonSimpleBoundViaReference(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonSimpleBoundViaReference, - problemMessage: - """Bound of this variable references raw type '${name}'.""", - arguments: {'name': name}); + return new Message( + codeNonSimpleBoundViaReference, + problemMessage: """Bound of this variable references raw type '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateNonSimpleBoundViaVariable = const Template< - Message Function(String name)>("NonSimpleBoundViaVariable", - problemMessageTemplate: - r"""Bound of this variable references variable '#name' from the same declaration.""", - withArguments: _withArgumentsNonSimpleBoundViaVariable); +const Template + templateNonSimpleBoundViaVariable = + const Template( + "NonSimpleBoundViaVariable", + problemMessageTemplate: + r"""Bound of this variable references variable '#name' from the same declaration.""", + withArguments: _withArgumentsNonSimpleBoundViaVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonSimpleBoundViaVariable = - const Code("NonSimpleBoundViaVariable", - severity: Severity.context); + const Code( + "NonSimpleBoundViaVariable", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNonSimpleBoundViaVariable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNonSimpleBoundViaVariable, - problemMessage: - """Bound of this variable references variable '${name}' from the same declaration.""", - arguments: {'name': name}); + return new Message( + codeNonSimpleBoundViaVariable, + problemMessage: + """Bound of this variable references variable '${name}' from the same declaration.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -11328,50 +13317,52 @@ const Code codeNonVoidReturnOperator = messageNonVoidReturnOperator; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonVoidReturnOperator = const MessageCode( - "NonVoidReturnOperator", - analyzerCodes: ["NON_VOID_RETURN_FOR_OPERATOR"], - problemMessage: r"""The return type of the operator []= must be 'void'.""", - correctionMessage: r"""Try changing the return type to 'void'."""); + "NonVoidReturnOperator", + analyzerCodes: ["NON_VOID_RETURN_FOR_OPERATOR"], + problemMessage: r"""The return type of the operator []= must be 'void'.""", + correctionMessage: r"""Try changing the return type to 'void'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNonVoidReturnSetter = messageNonVoidReturnSetter; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNonVoidReturnSetter = const MessageCode( - "NonVoidReturnSetter", - analyzerCodes: ["NON_VOID_RETURN_FOR_SETTER"], - problemMessage: - r"""The return type of the setter must be 'void' or absent.""", - correctionMessage: - r"""Try removing the return type, or define a method rather than a setter."""); + "NonVoidReturnSetter", + analyzerCodes: ["NON_VOID_RETURN_FOR_SETTER"], + problemMessage: + r"""The return type of the setter must be 'void' or absent.""", + correctionMessage: + r"""Try removing the return type, or define a method rather than a setter.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNotAConstantExpression = messageNotAConstantExpression; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNotAConstantExpression = const MessageCode( - "NotAConstantExpression", - analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], - problemMessage: r"""Not a constant expression."""); + "NotAConstantExpression", + analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], + problemMessage: r"""Not a constant expression.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateNotAPrefixInTypeAnnotation = const Template< - Message Function(String name, String name2)>( - "NotAPrefixInTypeAnnotation", - problemMessageTemplate: - r"""'#name.#name2' can't be used as a type because '#name' doesn't refer to an import prefix.""", - withArguments: _withArgumentsNotAPrefixInTypeAnnotation); +const Template + templateNotAPrefixInTypeAnnotation = + const Template( + "NotAPrefixInTypeAnnotation", + problemMessageTemplate: + r"""'#name.#name2' can't be used as a type because '#name' doesn't refer to an import prefix.""", + withArguments: _withArgumentsNotAPrefixInTypeAnnotation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNotAPrefixInTypeAnnotation = const Code( - "NotAPrefixInTypeAnnotation", - analyzerCodes: ["NOT_A_TYPE"]); + "NotAPrefixInTypeAnnotation", + analyzerCodes: ["NOT_A_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNotAPrefixInTypeAnnotation(String name, String name2) { @@ -11379,51 +13370,72 @@ Message _withArgumentsNotAPrefixInTypeAnnotation(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeNotAPrefixInTypeAnnotation, - problemMessage: - """'${name}.${name2}' can't be used as a type because '${name}' doesn't refer to an import prefix.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeNotAPrefixInTypeAnnotation, + problemMessage: + """'${name}.${name2}' can't be used as a type because '${name}' doesn't refer to an import prefix.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNotAType = - const Template("NotAType", - problemMessageTemplate: r"""'#name' isn't a type.""", - withArguments: _withArgumentsNotAType); + const Template( + "NotAType", + problemMessageTemplate: r"""'#name' isn't a type.""", + withArguments: _withArgumentsNotAType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNotAType = - const Code("NotAType", - analyzerCodes: ["NOT_A_TYPE"]); + const Code( + "NotAType", + analyzerCodes: ["NOT_A_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNotAType(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNotAType, - problemMessage: """'${name}' isn't a type.""", arguments: {'name': name}); + return new Message( + codeNotAType, + problemMessage: """'${name}' isn't a type.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNotATypeContext = messageNotATypeContext; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageNotATypeContext = const MessageCode("NotATypeContext", - severity: Severity.context, problemMessage: r"""This isn't a type."""); +const MessageCode messageNotATypeContext = const MessageCode( + "NotATypeContext", + severity: Severity.context, + problemMessage: r"""This isn't a type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNotAnLvalue = messageNotAnLvalue; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageNotAnLvalue = const MessageCode("NotAnLvalue", - analyzerCodes: ["NOT_AN_LVALUE"], - problemMessage: r"""Can't assign to this."""); +const MessageCode messageNotAnLvalue = const MessageCode( + "NotAnLvalue", + analyzerCodes: ["NOT_AN_LVALUE"], + problemMessage: r"""Can't assign to this.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNotBinaryOperator = - const Template("NotBinaryOperator", - problemMessageTemplate: r"""'#lexeme' isn't a binary operator.""", - withArguments: _withArgumentsNotBinaryOperator); + const Template( + "NotBinaryOperator", + problemMessageTemplate: r"""'#lexeme' isn't a binary operator.""", + withArguments: _withArgumentsNotBinaryOperator, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNotBinaryOperator = @@ -11434,28 +13446,40 @@ const Code codeNotBinaryOperator = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNotBinaryOperator(Token token) { String lexeme = token.lexeme; - return new Message(codeNotBinaryOperator, - problemMessage: """'${lexeme}' isn't a binary operator.""", - arguments: {'lexeme': token}); + return new Message( + codeNotBinaryOperator, + problemMessage: """'${lexeme}' isn't a binary operator.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNotConstantExpression = - const Template("NotConstantExpression", - problemMessageTemplate: r"""#string is not a constant expression.""", - withArguments: _withArgumentsNotConstantExpression); + const Template( + "NotConstantExpression", + problemMessageTemplate: r"""#string is not a constant expression.""", + withArguments: _withArgumentsNotConstantExpression, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNotConstantExpression = - const Code("NotConstantExpression", - analyzerCodes: ["NOT_CONSTANT_EXPRESSION"]); + const Code( + "NotConstantExpression", + analyzerCodes: ["NOT_CONSTANT_EXPRESSION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNotConstantExpression(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeNotConstantExpression, - problemMessage: """${string} is not a constant expression.""", - arguments: {'string': string}); + return new Message( + codeNotConstantExpression, + problemMessage: """${string} is not a constant expression.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -11464,36 +13488,43 @@ const Code codeNullAwareCascadeOutOfOrder = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNullAwareCascadeOutOfOrder = const MessageCode( - "NullAwareCascadeOutOfOrder", - index: 96, - problemMessage: - r"""The '?..' cascade operator must be first in the cascade sequence.""", - correctionMessage: - r"""Try moving the '?..' operator to be the first cascade operator in the sequence."""); + "NullAwareCascadeOutOfOrder", + index: 96, + problemMessage: + r"""The '?..' cascade operator must be first in the cascade sequence.""", + correctionMessage: + r"""Try moving the '?..' operator to be the first cascade operator in the sequence.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNullSafetyDisabledInvalidLanguageVersion = const Template( - "NullSafetyDisabledInvalidLanguageVersion", - problemMessageTemplate: - r"""This requires null safety, which requires language version of #string2 or higher.""", - withArguments: _withArgumentsNullSafetyDisabledInvalidLanguageVersion); + "NullSafetyDisabledInvalidLanguageVersion", + problemMessageTemplate: + r"""This requires null safety, which requires language version of #string2 or higher.""", + withArguments: _withArgumentsNullSafetyDisabledInvalidLanguageVersion, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNullSafetyDisabledInvalidLanguageVersion = const Code( - "NullSafetyDisabledInvalidLanguageVersion", - analyzerCodes: ["ParserErrorCode.EXPERIMENT_NOT_ENABLED"]); + "NullSafetyDisabledInvalidLanguageVersion", + analyzerCodes: ["ParserErrorCode.EXPERIMENT_NOT_ENABLED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNullSafetyDisabledInvalidLanguageVersion(String string2) { if (string2.isEmpty) throw 'No string provided'; - return new Message(codeNullSafetyDisabledInvalidLanguageVersion, - problemMessage: - """This requires null safety, which requires language version of ${string2} or higher.""", - arguments: {'string2': string2}); + return new Message( + codeNullSafetyDisabledInvalidLanguageVersion, + problemMessage: + """This requires null safety, which requires language version of ${string2} or higher.""", + arguments: { + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -11501,21 +13532,22 @@ const Code codeNullSafetyOptOutComment = messageNullSafetyOptOutComment; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNullSafetyOptOutComment = const MessageCode( - "NullSafetyOptOutComment", - severity: Severity.context, - problemMessage: - r"""This is the annotation that opts out this library from null safety features."""); + "NullSafetyOptOutComment", + severity: Severity.context, + problemMessage: + r"""This is the annotation that opts out this library from null safety features.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - string)> templateNullSafetyOptOutExplicit = const Template< - Message Function(String string)>("NullSafetyOptOutExplicit", - problemMessageTemplate: r"""Null safety is disabled for this library.""", - correctionMessageTemplate: - r"""Try removing the `@dart=` annotation or setting the language version to #string or higher.""", - withArguments: _withArgumentsNullSafetyOptOutExplicit); +const Template + templateNullSafetyOptOutExplicit = + const Template( + "NullSafetyOptOutExplicit", + problemMessageTemplate: r"""Null safety is disabled for this library.""", + correctionMessageTemplate: + r"""Try removing the `@dart=` annotation or setting the language version to #string or higher.""", + withArguments: _withArgumentsNullSafetyOptOutExplicit, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNullSafetyOptOutExplicit = @@ -11526,23 +13558,27 @@ const Code codeNullSafetyOptOutExplicit = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNullSafetyOptOutExplicit(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeNullSafetyOptOutExplicit, - problemMessage: """Null safety is disabled for this library.""", - correctionMessage: - """Try removing the `@dart=` annotation or setting the language version to ${string} or higher.""", - arguments: {'string': string}); + return new Message( + codeNullSafetyOptOutExplicit, + problemMessage: """Null safety is disabled for this library.""", + correctionMessage: + """Try removing the `@dart=` annotation or setting the language version to ${string} or higher.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - string)> templateNullSafetyOptOutImplicit = const Template< - Message Function(String string)>("NullSafetyOptOutImplicit", - problemMessageTemplate: r"""Null safety is disabled for this library.""", - correctionMessageTemplate: - r"""Try removing the package language version or setting the language version to #string or higher.""", - withArguments: _withArgumentsNullSafetyOptOutImplicit); +const Template + templateNullSafetyOptOutImplicit = + const Template( + "NullSafetyOptOutImplicit", + problemMessageTemplate: r"""Null safety is disabled for this library.""", + correctionMessageTemplate: + r"""Try removing the package language version or setting the language version to #string or higher.""", + withArguments: _withArgumentsNullSafetyOptOutImplicit, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNullSafetyOptOutImplicit = @@ -11553,19 +13589,25 @@ const Code codeNullSafetyOptOutImplicit = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNullSafetyOptOutImplicit(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeNullSafetyOptOutImplicit, - problemMessage: """Null safety is disabled for this library.""", - correctionMessage: - """Try removing the package language version or setting the language version to ${string} or higher.""", - arguments: {'string': string}); + return new Message( + codeNullSafetyOptOutImplicit, + problemMessage: """Null safety is disabled for this library.""", + correctionMessage: + """Try removing the package language version or setting the language version to ${string} or higher.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNullableInterfaceError = - const Template("NullableInterfaceError", - problemMessageTemplate: - r"""Can't implement '#name' because it's marked with '?'.""", - withArguments: _withArgumentsNullableInterfaceError); + const Template( + "NullableInterfaceError", + problemMessageTemplate: + r"""Can't implement '#name' because it's marked with '?'.""", + withArguments: _withArgumentsNullableInterfaceError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNullableInterfaceError = @@ -11577,18 +13619,24 @@ const Code codeNullableInterfaceError = Message _withArgumentsNullableInterfaceError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNullableInterfaceError, - problemMessage: - """Can't implement '${name}' because it's marked with '?'.""", - arguments: {'name': name}); + return new Message( + codeNullableInterfaceError, + problemMessage: + """Can't implement '${name}' because it's marked with '?'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNullableMixinError = - const Template("NullableMixinError", - problemMessageTemplate: - r"""Can't mix '#name' in because it's marked with '?'.""", - withArguments: _withArgumentsNullableMixinError); + const Template( + "NullableMixinError", + problemMessageTemplate: + r"""Can't mix '#name' in because it's marked with '?'.""", + withArguments: _withArgumentsNullableMixinError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNullableMixinError = @@ -11600,10 +13648,13 @@ const Code codeNullableMixinError = Message _withArgumentsNullableMixinError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNullableMixinError, - problemMessage: - """Can't mix '${name}' in because it's marked with '?'.""", - arguments: {'name': name}); + return new Message( + codeNullableMixinError, + problemMessage: """Can't mix '${name}' in because it's marked with '?'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -11611,16 +13662,19 @@ const Code codeNullableSpreadError = messageNullableSpreadError; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageNullableSpreadError = const MessageCode( - "NullableSpreadError", - problemMessage: - r"""An expression whose value can be 'null' must be null-checked before it can be dereferenced."""); + "NullableSpreadError", + problemMessage: + r"""An expression whose value can be 'null' must be null-checked before it can be dereferenced.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNullableSuperclassError = - const Template("NullableSuperclassError", - problemMessageTemplate: - r"""Can't extend '#name' because it's marked with '?'.""", - withArguments: _withArgumentsNullableSuperclassError); + const Template( + "NullableSuperclassError", + problemMessageTemplate: + r"""Can't extend '#name' because it's marked with '?'.""", + withArguments: _withArgumentsNullableSuperclassError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNullableSuperclassError = @@ -11632,18 +13686,23 @@ const Code codeNullableSuperclassError = Message _withArgumentsNullableSuperclassError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNullableSuperclassError, - problemMessage: - """Can't extend '${name}' because it's marked with '?'.""", - arguments: {'name': name}); + return new Message( + codeNullableSuperclassError, + problemMessage: """Can't extend '${name}' because it's marked with '?'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNullableTearoffError = - const Template("NullableTearoffError", - problemMessageTemplate: - r"""Can't tear off method '#name' from a potentially null value.""", - withArguments: _withArgumentsNullableTearoffError); + const Template( + "NullableTearoffError", + problemMessageTemplate: + r"""Can't tear off method '#name' from a potentially null value.""", + withArguments: _withArgumentsNullableTearoffError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeNullableTearoffError = @@ -11655,26 +13714,33 @@ const Code codeNullableTearoffError = Message _withArgumentsNullableTearoffError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeNullableTearoffError, - problemMessage: - """Can't tear off method '${name}' from a potentially null value.""", - arguments: {'name': name}); + return new Message( + codeNullableTearoffError, + problemMessage: + """Can't tear off method '${name}' from a potentially null value.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeObjectExtends = messageObjectExtends; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageObjectExtends = const MessageCode("ObjectExtends", - problemMessage: r"""The class 'Object' can't have a superclass."""); +const MessageCode messageObjectExtends = const MessageCode( + "ObjectExtends", + problemMessage: r"""The class 'Object' can't have a superclass.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeObjectImplements = messageObjectImplements; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageObjectImplements = const MessageCode( - "ObjectImplements", - problemMessage: r"""The class 'Object' can't implement anything."""); + "ObjectImplements", + problemMessage: r"""The class 'Object' can't implement anything.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeObjectMemberNameUsedForRecordField = @@ -11682,16 +13748,19 @@ const Code codeObjectMemberNameUsedForRecordField = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageObjectMemberNameUsedForRecordField = const MessageCode( - "ObjectMemberNameUsedForRecordField", - problemMessage: - r"""Record field names can't be the same as a member from 'Object'."""); + "ObjectMemberNameUsedForRecordField", + problemMessage: + r"""Record field names can't be the same as a member from 'Object'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeObjectMixesIn = messageObjectMixesIn; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageObjectMixesIn = const MessageCode("ObjectMixesIn", - problemMessage: r"""The class 'Object' can't use mixins."""); +const MessageCode messageObjectMixesIn = const MessageCode( + "ObjectMixesIn", + problemMessage: r"""The class 'Object' can't use mixins.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeObsoleteColonForDefaultValue = @@ -11699,60 +13768,68 @@ const Code codeObsoleteColonForDefaultValue = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageObsoleteColonForDefaultValue = const MessageCode( - "ObsoleteColonForDefaultValue", - problemMessage: - r"""Using a colon as a separator before a default value is no longer supported.""", - correctionMessage: r"""Try replacing the colon with an equal sign."""); + "ObsoleteColonForDefaultValue", + problemMessage: + r"""Using a colon as a separator before a default value is no longer supported.""", + correctionMessage: r"""Try replacing the colon with an equal sign.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOnlyTry = messageOnlyTry; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageOnlyTry = const MessageCode("OnlyTry", - index: 20, - problemMessage: - r"""A try block must be followed by an 'on', 'catch', or 'finally' clause.""", - correctionMessage: - r"""Try adding either a catch or finally clause, or remove the try statement."""); +const MessageCode messageOnlyTry = const MessageCode( + "OnlyTry", + index: 20, + problemMessage: + r"""A try block must be followed by an 'on', 'catch', or 'finally' clause.""", + correctionMessage: + r"""Try adding either a catch or finally clause, or remove the try statement.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateOperatorMinusParameterMismatch = const Template< - Message Function(String name)>("OperatorMinusParameterMismatch", - problemMessageTemplate: - r"""Operator '#name' should have zero or one parameter.""", - correctionMessageTemplate: - r"""With zero parameters, it has the syntactic form '-a', formally known as 'unary-'. With one parameter, it has the syntactic form 'a - b', formally known as '-'.""", - withArguments: _withArgumentsOperatorMinusParameterMismatch); +const Template + templateOperatorMinusParameterMismatch = + const Template( + "OperatorMinusParameterMismatch", + problemMessageTemplate: + r"""Operator '#name' should have zero or one parameter.""", + correctionMessageTemplate: + r"""With zero parameters, it has the syntactic form '-a', formally known as 'unary-'. With one parameter, it has the syntactic form 'a - b', formally known as '-'.""", + withArguments: _withArgumentsOperatorMinusParameterMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOperatorMinusParameterMismatch = - const Code("OperatorMinusParameterMismatch", - analyzerCodes: [ - "WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS" - ]); + const Code( + "OperatorMinusParameterMismatch", + analyzerCodes: ["WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOperatorMinusParameterMismatch(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeOperatorMinusParameterMismatch, - problemMessage: - """Operator '${name}' should have zero or one parameter.""", - correctionMessage: - """With zero parameters, it has the syntactic form '-a', formally known as 'unary-'. With one parameter, it has the syntactic form 'a - b', formally known as '-'.""", - arguments: {'name': name}); + return new Message( + codeOperatorMinusParameterMismatch, + problemMessage: """Operator '${name}' should have zero or one parameter.""", + correctionMessage: + """With zero parameters, it has the syntactic form '-a', formally known as 'unary-'. With one parameter, it has the syntactic form 'a - b', formally known as '-'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateOperatorParameterMismatch0 = - const Template("OperatorParameterMismatch0", - problemMessageTemplate: - r"""Operator '#name' shouldn't have any parameters.""", - withArguments: _withArgumentsOperatorParameterMismatch0); + const Template( + "OperatorParameterMismatch0", + problemMessageTemplate: + r"""Operator '#name' shouldn't have any parameters.""", + withArguments: _withArgumentsOperatorParameterMismatch0, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOperatorParameterMismatch0 = @@ -11764,55 +13841,74 @@ const Code codeOperatorParameterMismatch0 = Message _withArgumentsOperatorParameterMismatch0(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeOperatorParameterMismatch0, - problemMessage: """Operator '${name}' shouldn't have any parameters.""", - arguments: {'name': name}); + return new Message( + codeOperatorParameterMismatch0, + problemMessage: """Operator '${name}' shouldn't have any parameters.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateOperatorParameterMismatch1 = - const Template("OperatorParameterMismatch1", - problemMessageTemplate: - r"""Operator '#name' should have exactly one parameter.""", - withArguments: _withArgumentsOperatorParameterMismatch1); + const Template( + "OperatorParameterMismatch1", + problemMessageTemplate: + r"""Operator '#name' should have exactly one parameter.""", + withArguments: _withArgumentsOperatorParameterMismatch1, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOperatorParameterMismatch1 = - const Code("OperatorParameterMismatch1", - analyzerCodes: ["WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR"]); + const Code( + "OperatorParameterMismatch1", + analyzerCodes: ["WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOperatorParameterMismatch1(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeOperatorParameterMismatch1, - problemMessage: - """Operator '${name}' should have exactly one parameter.""", - arguments: {'name': name}); + return new Message( + codeOperatorParameterMismatch1, + problemMessage: """Operator '${name}' should have exactly one parameter.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateOperatorParameterMismatch2 = - const Template("OperatorParameterMismatch2", - problemMessageTemplate: - r"""Operator '#name' should have exactly two parameters.""", - withArguments: _withArgumentsOperatorParameterMismatch2); + const Template( + "OperatorParameterMismatch2", + problemMessageTemplate: + r"""Operator '#name' should have exactly two parameters.""", + withArguments: _withArgumentsOperatorParameterMismatch2, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOperatorParameterMismatch2 = - const Code("OperatorParameterMismatch2", - analyzerCodes: ["WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR"]); + const Code( + "OperatorParameterMismatch2", + analyzerCodes: ["WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOperatorParameterMismatch2(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeOperatorParameterMismatch2, - problemMessage: - """Operator '${name}' should have exactly two parameters.""", - arguments: {'name': name}); + return new Message( + codeOperatorParameterMismatch2, + problemMessage: + """Operator '${name}' should have exactly two parameters.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -11821,8 +13917,9 @@ const Code codeOperatorWithOptionalFormals = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageOperatorWithOptionalFormals = const MessageCode( - "OperatorWithOptionalFormals", - problemMessage: r"""An operator can't have optional parameters."""); + "OperatorWithOptionalFormals", + problemMessage: r"""An operator can't have optional parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOperatorWithTypeParameters = @@ -11830,11 +13927,12 @@ const Code codeOperatorWithTypeParameters = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageOperatorWithTypeParameters = const MessageCode( - "OperatorWithTypeParameters", - index: 120, - problemMessage: - r"""Types parameters aren't allowed when defining an operator.""", - correctionMessage: r"""Try removing the type parameters."""); + "OperatorWithTypeParameters", + index: 120, + problemMessage: + r"""Types parameters aren't allowed when defining an operator.""", + correctionMessage: r"""Try removing the type parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOptionalParametersInExtensionTypeDeclaration = @@ -11842,79 +13940,94 @@ const Code codeOptionalParametersInExtensionTypeDeclaration = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageOptionalParametersInExtensionTypeDeclaration = - const MessageCode("OptionalParametersInExtensionTypeDeclaration", - problemMessage: - r"""Extension type declarations can't have optional parameters."""); + const MessageCode( + "OptionalParametersInExtensionTypeDeclaration", + problemMessage: + r"""Extension type declarations can't have optional parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateOutOfOrderClauses = const Template< - Message Function(String string, String string2)>("OutOfOrderClauses", - problemMessageTemplate: - r"""The '#string' clause must come before the '#string2' clause.""", - correctionMessageTemplate: - r"""Try moving the '#string' clause before the '#string2' clause.""", - withArguments: _withArgumentsOutOfOrderClauses); +const Template + templateOutOfOrderClauses = + const Template( + "OutOfOrderClauses", + problemMessageTemplate: + r"""The '#string' clause must come before the '#string2' clause.""", + correctionMessageTemplate: + r"""Try moving the '#string' clause before the '#string2' clause.""", + withArguments: _withArgumentsOutOfOrderClauses, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOutOfOrderClauses = const Code( - "OutOfOrderClauses", - index: 122); + "OutOfOrderClauses", + index: 122, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOutOfOrderClauses(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeOutOfOrderClauses, - problemMessage: - """The '${string}' clause must come before the '${string2}' clause.""", - correctionMessage: """Try moving the '${string}' clause before the '${string2}' clause.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeOutOfOrderClauses, + problemMessage: + """The '${string}' clause must come before the '${string2}' clause.""", + correctionMessage: + """Try moving the '${string}' clause before the '${string2}' clause.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateOverriddenMethodCause = - const Template("OverriddenMethodCause", - problemMessageTemplate: r"""This is the overridden method ('#name').""", - withArguments: _withArgumentsOverriddenMethodCause); + const Template( + "OverriddenMethodCause", + problemMessageTemplate: r"""This is the overridden method ('#name').""", + withArguments: _withArgumentsOverriddenMethodCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOverriddenMethodCause = - const Code("OverriddenMethodCause", - severity: Severity.context); + const Code( + "OverriddenMethodCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOverriddenMethodCause(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeOverriddenMethodCause, - problemMessage: """This is the overridden method ('${name}').""", - arguments: {'name': name}); + return new Message( + codeOverriddenMethodCause, + problemMessage: """This is the overridden method ('${name}').""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateOverrideFewerNamedArguments = const Template< - Message Function(String name, String name2)>( - "OverrideFewerNamedArguments", - problemMessageTemplate: - r"""The method '#name' has fewer named arguments than those of overridden method '#name2'.""", - withArguments: _withArgumentsOverrideFewerNamedArguments); +const Template + templateOverrideFewerNamedArguments = + const Template( + "OverrideFewerNamedArguments", + problemMessageTemplate: + r"""The method '#name' has fewer named arguments than those of overridden method '#name2'.""", + withArguments: _withArgumentsOverrideFewerNamedArguments, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOverrideFewerNamedArguments = const Code( - "OverrideFewerNamedArguments", - analyzerCodes: ["INVALID_OVERRIDE_NAMED"]); + "OverrideFewerNamedArguments", + analyzerCodes: ["INVALID_OVERRIDE_NAMED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOverrideFewerNamedArguments(String name, String name2) { @@ -11922,30 +14035,34 @@ Message _withArgumentsOverrideFewerNamedArguments(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeOverrideFewerNamedArguments, - problemMessage: - """The method '${name}' has fewer named arguments than those of overridden method '${name2}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeOverrideFewerNamedArguments, + problemMessage: + """The method '${name}' has fewer named arguments than those of overridden method '${name2}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateOverrideFewerPositionalArguments = const Template< - Message Function(String name, String name2)>( - "OverrideFewerPositionalArguments", - problemMessageTemplate: - r"""The method '#name' has fewer positional arguments than those of overridden method '#name2'.""", - withArguments: _withArgumentsOverrideFewerPositionalArguments); +const Template + templateOverrideFewerPositionalArguments = + const Template( + "OverrideFewerPositionalArguments", + problemMessageTemplate: + r"""The method '#name' has fewer positional arguments than those of overridden method '#name2'.""", + withArguments: _withArgumentsOverrideFewerPositionalArguments, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOverrideFewerPositionalArguments = const Code( - "OverrideFewerPositionalArguments", - analyzerCodes: ["INVALID_OVERRIDE_POSITIONAL"]); + "OverrideFewerPositionalArguments", + analyzerCodes: ["INVALID_OVERRIDE_POSITIONAL"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOverrideFewerPositionalArguments( @@ -11954,31 +14071,34 @@ Message _withArgumentsOverrideFewerPositionalArguments( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeOverrideFewerPositionalArguments, - problemMessage: - """The method '${name}' has fewer positional arguments than those of overridden method '${name2}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeOverrideFewerPositionalArguments, + problemMessage: + """The method '${name}' has fewer positional arguments than those of overridden method '${name2}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String name2, - String - name3)> templateOverrideMismatchNamedParameter = const Template< - Message Function(String name, String name2, String name3)>( - "OverrideMismatchNamedParameter", - problemMessageTemplate: - r"""The method '#name' doesn't have the named parameter '#name2' of overridden method '#name3'.""", - withArguments: _withArgumentsOverrideMismatchNamedParameter); +const Template + templateOverrideMismatchNamedParameter = + const Template( + "OverrideMismatchNamedParameter", + problemMessageTemplate: + r"""The method '#name' doesn't have the named parameter '#name2' of overridden method '#name3'.""", + withArguments: _withArgumentsOverrideMismatchNamedParameter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOverrideMismatchNamedParameter = const Code( - "OverrideMismatchNamedParameter", - analyzerCodes: ["INVALID_OVERRIDE_NAMED"]); + "OverrideMismatchNamedParameter", + analyzerCodes: ["INVALID_OVERRIDE_NAMED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOverrideMismatchNamedParameter( @@ -11989,20 +14109,27 @@ Message _withArgumentsOverrideMismatchNamedParameter( name2 = demangleMixinApplicationName(name2); if (name3.isEmpty) throw 'No name provided'; name3 = demangleMixinApplicationName(name3); - return new Message(codeOverrideMismatchNamedParameter, - problemMessage: - """The method '${name}' doesn't have the named parameter '${name2}' of overridden method '${name3}'.""", - arguments: {'name': name, 'name2': name2, 'name3': name3}); + return new Message( + codeOverrideMismatchNamedParameter, + problemMessage: + """The method '${name}' doesn't have the named parameter '${name2}' of overridden method '${name3}'.""", + arguments: { + 'name': name, + 'name2': name2, + 'name3': name3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateOverrideMismatchRequiredNamedParameter = const Template( - "OverrideMismatchRequiredNamedParameter", - problemMessageTemplate: - r"""The required named parameter '#name' in method '#name2' is not required in overridden method '#name3'.""", - withArguments: _withArgumentsOverrideMismatchRequiredNamedParameter); + "OverrideMismatchRequiredNamedParameter", + problemMessageTemplate: + r"""The required named parameter '#name' in method '#name2' is not required in overridden method '#name3'.""", + withArguments: _withArgumentsOverrideMismatchRequiredNamedParameter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -12020,30 +14147,35 @@ Message _withArgumentsOverrideMismatchRequiredNamedParameter( name2 = demangleMixinApplicationName(name2); if (name3.isEmpty) throw 'No name provided'; name3 = demangleMixinApplicationName(name3); - return new Message(codeOverrideMismatchRequiredNamedParameter, - problemMessage: - """The required named parameter '${name}' in method '${name2}' is not required in overridden method '${name3}'.""", - arguments: {'name': name, 'name2': name2, 'name3': name3}); + return new Message( + codeOverrideMismatchRequiredNamedParameter, + problemMessage: + """The required named parameter '${name}' in method '${name2}' is not required in overridden method '${name3}'.""", + arguments: { + 'name': name, + 'name2': name2, + 'name3': name3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateOverrideMoreRequiredArguments = const Template< - Message Function(String name, String name2)>( - "OverrideMoreRequiredArguments", - problemMessageTemplate: - r"""The method '#name' has more required arguments than those of overridden method '#name2'.""", - withArguments: _withArgumentsOverrideMoreRequiredArguments); +const Template + templateOverrideMoreRequiredArguments = + const Template( + "OverrideMoreRequiredArguments", + problemMessageTemplate: + r"""The method '#name' has more required arguments than those of overridden method '#name2'.""", + withArguments: _withArgumentsOverrideMoreRequiredArguments, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOverrideMoreRequiredArguments = const Code( - "OverrideMoreRequiredArguments", - analyzerCodes: ["INVALID_OVERRIDE_REQUIRED"]); + "OverrideMoreRequiredArguments", + analyzerCodes: ["INVALID_OVERRIDE_REQUIRED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOverrideMoreRequiredArguments(String name, String name2) { @@ -12051,30 +14183,34 @@ Message _withArgumentsOverrideMoreRequiredArguments(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeOverrideMoreRequiredArguments, - problemMessage: - """The method '${name}' has more required arguments than those of overridden method '${name2}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeOverrideMoreRequiredArguments, + problemMessage: + """The method '${name}' has more required arguments than those of overridden method '${name2}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateOverrideTypeVariablesMismatch = const Template< - Message Function(String name, String name2)>( - "OverrideTypeVariablesMismatch", - problemMessageTemplate: - r"""Declared type variables of '#name' doesn't match those on overridden method '#name2'.""", - withArguments: _withArgumentsOverrideTypeVariablesMismatch); +const Template + templateOverrideTypeVariablesMismatch = + const Template( + "OverrideTypeVariablesMismatch", + problemMessageTemplate: + r"""Declared type variables of '#name' doesn't match those on overridden method '#name2'.""", + withArguments: _withArgumentsOverrideTypeVariablesMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeOverrideTypeVariablesMismatch = const Code( - "OverrideTypeVariablesMismatch", - analyzerCodes: ["INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS"]); + "OverrideTypeVariablesMismatch", + analyzerCodes: ["INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOverrideTypeVariablesMismatch(String name, String name2) { @@ -12082,19 +14218,26 @@ Message _withArgumentsOverrideTypeVariablesMismatch(String name, String name2) { name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeOverrideTypeVariablesMismatch, - problemMessage: - """Declared type variables of '${name}' doesn't match those on overridden method '${name2}'.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeOverrideTypeVariablesMismatch, + problemMessage: + """Declared type variables of '${name}' doesn't match those on overridden method '${name2}'.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templatePackageNotFound = - const Template("PackageNotFound", - problemMessageTemplate: - r"""Couldn't resolve the package '#name' in '#uri'.""", - withArguments: _withArgumentsPackageNotFound); + const Template( + "PackageNotFound", + problemMessageTemplate: + r"""Couldn't resolve the package '#name' in '#uri'.""", + withArguments: _withArgumentsPackageNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePackageNotFound = @@ -12107,17 +14250,24 @@ Message _withArgumentsPackageNotFound(String name, Uri uri_) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); String? uri = relativizeUri(uri_); - return new Message(codePackageNotFound, - problemMessage: """Couldn't resolve the package '${name}' in '${uri}'.""", - arguments: {'name': name, 'uri': uri_}); + return new Message( + codePackageNotFound, + problemMessage: """Couldn't resolve the package '${name}' in '${uri}'.""", + arguments: { + 'name': name, + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templatePackagesFileFormat = - const Template("PackagesFileFormat", - problemMessageTemplate: - r"""Problem in packages configuration file: #string""", - withArguments: _withArgumentsPackagesFileFormat); + const Template( + "PackagesFileFormat", + problemMessageTemplate: + r"""Problem in packages configuration file: #string""", + withArguments: _withArgumentsPackagesFileFormat, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePackagesFileFormat = @@ -12128,94 +14278,109 @@ const Code codePackagesFileFormat = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsPackagesFileFormat(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codePackagesFileFormat, - problemMessage: """Problem in packages configuration file: ${string}""", - arguments: {'string': string}); + return new Message( + codePackagesFileFormat, + problemMessage: """Problem in packages configuration file: ${string}""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartExport = messagePartExport; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messagePartExport = const MessageCode("PartExport", - analyzerCodes: ["EXPORT_OF_NON_LIBRARY"], - problemMessage: - r"""Can't export this file because it contains a 'part of' declaration."""); +const MessageCode messagePartExport = const MessageCode( + "PartExport", + analyzerCodes: ["EXPORT_OF_NON_LIBRARY"], + problemMessage: + r"""Can't export this file because it contains a 'part of' declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartExportContext = messagePartExportContext; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePartExportContext = const MessageCode( - "PartExportContext", - severity: Severity.context, - problemMessage: r"""This is the file that can't be exported."""); + "PartExportContext", + severity: Severity.context, + problemMessage: r"""This is the file that can't be exported.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartInPart = messagePartInPart; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messagePartInPart = const MessageCode("PartInPart", - analyzerCodes: ["NON_PART_OF_DIRECTIVE_IN_PART"], - problemMessage: - r"""A file that's a part of a library can't have parts itself.""", - correctionMessage: - r"""Try moving the 'part' declaration to the containing library."""); +const MessageCode messagePartInPart = const MessageCode( + "PartInPart", + analyzerCodes: ["NON_PART_OF_DIRECTIVE_IN_PART"], + problemMessage: + r"""A file that's a part of a library can't have parts itself.""", + correctionMessage: + r"""Try moving the 'part' declaration to the containing library.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartInPartLibraryContext = messagePartInPartLibraryContext; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePartInPartLibraryContext = const MessageCode( - "PartInPartLibraryContext", - severity: Severity.context, - problemMessage: r"""This is the containing library."""); + "PartInPartLibraryContext", + severity: Severity.context, + problemMessage: r"""This is the containing library.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(Uri uri_)> templatePartOfInLibrary = const Template< - Message Function(Uri uri_)>("PartOfInLibrary", - problemMessageTemplate: - r"""Can't import '#uri', because it has a 'part of' declaration.""", - correctionMessageTemplate: - r"""Try removing the 'part of' declaration, or using '#uri' as a part.""", - withArguments: _withArgumentsPartOfInLibrary); +const Template templatePartOfInLibrary = + const Template( + "PartOfInLibrary", + problemMessageTemplate: + r"""Can't import '#uri', because it has a 'part of' declaration.""", + correctionMessageTemplate: + r"""Try removing the 'part of' declaration, or using '#uri' as a part.""", + withArguments: _withArgumentsPartOfInLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartOfInLibrary = - const Code("PartOfInLibrary", - analyzerCodes: ["IMPORT_OF_NON_LIBRARY"]); + const Code( + "PartOfInLibrary", + analyzerCodes: ["IMPORT_OF_NON_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsPartOfInLibrary(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codePartOfInLibrary, - problemMessage: - """Can't import '${uri}', because it has a 'part of' declaration.""", - correctionMessage: - """Try removing the 'part of' declaration, or using '${uri}' as a part.""", - arguments: {'uri': uri_}); + return new Message( + codePartOfInLibrary, + problemMessage: + """Can't import '${uri}', because it has a 'part of' declaration.""", + correctionMessage: + """Try removing the 'part of' declaration, or using '${uri}' as a part.""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Uri uri_, - String name, - String - name2)> templatePartOfLibraryNameMismatch = const Template< - Message Function(Uri uri_, String name, String name2)>( - "PartOfLibraryNameMismatch", - problemMessageTemplate: - r"""Using '#uri' as part of '#name' but its 'part of' declaration says '#name2'.""", - withArguments: _withArgumentsPartOfLibraryNameMismatch); +const Template + templatePartOfLibraryNameMismatch = + const Template( + "PartOfLibraryNameMismatch", + problemMessageTemplate: + r"""Using '#uri' as part of '#name' but its 'part of' declaration says '#name2'.""", + withArguments: _withArgumentsPartOfLibraryNameMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartOfLibraryNameMismatch = const Code( - "PartOfLibraryNameMismatch", - analyzerCodes: ["PART_OF_DIFFERENT_LIBRARY"]); + "PartOfLibraryNameMismatch", + analyzerCodes: ["PART_OF_DIFFERENT_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsPartOfLibraryNameMismatch( @@ -12225,41 +14390,50 @@ Message _withArgumentsPartOfLibraryNameMismatch( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codePartOfLibraryNameMismatch, - problemMessage: - """Using '${uri}' as part of '${name}' but its 'part of' declaration says '${name2}'.""", - arguments: {'uri': uri_, 'name': name, 'name2': name2}); + return new Message( + codePartOfLibraryNameMismatch, + problemMessage: + """Using '${uri}' as part of '${name}' but its 'part of' declaration says '${name2}'.""", + arguments: { + 'uri': uri_, + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartOfSelf = messagePartOfSelf; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messagePartOfSelf = const MessageCode("PartOfSelf", - analyzerCodes: ["PART_OF_NON_PART"], - problemMessage: r"""A file can't be a part of itself."""); +const MessageCode messagePartOfSelf = const MessageCode( + "PartOfSelf", + analyzerCodes: ["PART_OF_NON_PART"], + problemMessage: r"""A file can't be a part of itself.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartOfTwice = messagePartOfTwice; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messagePartOfTwice = const MessageCode("PartOfTwice", - index: 25, - problemMessage: - r"""Only one part-of directive may be declared in a file.""", - correctionMessage: - r"""Try removing all but one of the part-of directives."""); +const MessageCode messagePartOfTwice = const MessageCode( + "PartOfTwice", + index: 25, + problemMessage: r"""Only one part-of directive may be declared in a file.""", + correctionMessage: r"""Try removing all but one of the part-of directives.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartOfTwoLibraries = messagePartOfTwoLibraries; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePartOfTwoLibraries = const MessageCode( - "PartOfTwoLibraries", - analyzerCodes: ["PART_OF_DIFFERENT_LIBRARY"], - problemMessage: r"""A file can't be part of more than one library.""", - correctionMessage: - r"""Try moving the shared declarations into the libraries, or into a new library."""); + "PartOfTwoLibraries", + analyzerCodes: ["PART_OF_DIFFERENT_LIBRARY"], + problemMessage: r"""A file can't be part of more than one library.""", + correctionMessage: + r"""Try moving the shared declarations into the libraries, or into a new library.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartOfTwoLibrariesContext = @@ -12267,60 +14441,65 @@ const Code codePartOfTwoLibrariesContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePartOfTwoLibrariesContext = const MessageCode( - "PartOfTwoLibrariesContext", - severity: Severity.context, - problemMessage: r"""Used as a part in this library."""); + "PartOfTwoLibrariesContext", + severity: Severity.context, + problemMessage: r"""Used as a part in this library.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Uri uri_, - Uri uri2_, - Uri - uri3_)> templatePartOfUriMismatch = const Template< - Message Function(Uri uri_, Uri uri2_, Uri uri3_)>("PartOfUriMismatch", - problemMessageTemplate: - r"""Using '#uri' as part of '#uri2' but its 'part of' declaration says '#uri3'.""", - withArguments: _withArgumentsPartOfUriMismatch); +const Template + templatePartOfUriMismatch = + const Template( + "PartOfUriMismatch", + problemMessageTemplate: + r"""Using '#uri' as part of '#uri2' but its 'part of' declaration says '#uri3'.""", + withArguments: _withArgumentsPartOfUriMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartOfUriMismatch = const Code( - "PartOfUriMismatch", - analyzerCodes: ["PART_OF_DIFFERENT_LIBRARY"]); + "PartOfUriMismatch", + analyzerCodes: ["PART_OF_DIFFERENT_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsPartOfUriMismatch(Uri uri_, Uri uri2_, Uri uri3_) { String? uri = relativizeUri(uri_); String? uri2 = relativizeUri(uri2_); String? uri3 = relativizeUri(uri3_); - return new Message(codePartOfUriMismatch, - problemMessage: - """Using '${uri}' as part of '${uri2}' but its 'part of' declaration says '${uri3}'.""", - arguments: {'uri': uri_, 'uri2': uri2_, 'uri3': uri3_}); + return new Message( + codePartOfUriMismatch, + problemMessage: + """Using '${uri}' as part of '${uri2}' but its 'part of' declaration says '${uri3}'.""", + arguments: { + 'uri': uri_, + 'uri2': uri2_, + 'uri3': uri3_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Uri uri_, - Uri uri2_, - String - name)> templatePartOfUseUri = const Template< - Message Function(Uri uri_, Uri uri2_, String name)>("PartOfUseUri", - problemMessageTemplate: - r"""Using '#uri' as part of '#uri2' but its 'part of' declaration says '#name'.""", - correctionMessageTemplate: - r"""Try changing the 'part of' declaration to use a relative file name.""", - withArguments: _withArgumentsPartOfUseUri); +const Template + templatePartOfUseUri = + const Template( + "PartOfUseUri", + problemMessageTemplate: + r"""Using '#uri' as part of '#uri2' but its 'part of' declaration says '#name'.""", + correctionMessageTemplate: + r"""Try changing the 'part of' declaration to use a relative file name.""", + withArguments: _withArgumentsPartOfUseUri, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartOfUseUri = const Code( - "PartOfUseUri", - analyzerCodes: ["PART_OF_UNNAMED_LIBRARY"]); + "PartOfUseUri", + analyzerCodes: ["PART_OF_UNNAMED_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsPartOfUseUri(Uri uri_, Uri uri2_, String name) { @@ -12328,39 +14507,55 @@ Message _withArgumentsPartOfUseUri(Uri uri_, Uri uri2_, String name) { String? uri2 = relativizeUri(uri2_); if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codePartOfUseUri, - problemMessage: - """Using '${uri}' as part of '${uri2}' but its 'part of' declaration says '${name}'.""", - correctionMessage: """Try changing the 'part of' declaration to use a relative file name.""", - arguments: {'uri': uri_, 'uri2': uri2_, 'name': name}); + return new Message( + codePartOfUseUri, + problemMessage: + """Using '${uri}' as part of '${uri2}' but its 'part of' declaration says '${name}'.""", + correctionMessage: + """Try changing the 'part of' declaration to use a relative file name.""", + arguments: { + 'uri': uri_, + 'uri2': uri2_, + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartOrphan = messagePartOrphan; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messagePartOrphan = const MessageCode("PartOrphan", - problemMessage: r"""This part doesn't have a containing library.""", - correctionMessage: r"""Try removing the 'part of' declaration."""); +const MessageCode messagePartOrphan = const MessageCode( + "PartOrphan", + problemMessage: r"""This part doesn't have a containing library.""", + correctionMessage: r"""Try removing the 'part of' declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templatePartTwice = - const Template("PartTwice", - problemMessageTemplate: - r"""Can't use '#uri' as a part more than once.""", - withArguments: _withArgumentsPartTwice); + const Template( + "PartTwice", + problemMessageTemplate: r"""Can't use '#uri' as a part more than once.""", + withArguments: _withArgumentsPartTwice, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePartTwice = - const Code("PartTwice", - analyzerCodes: ["DUPLICATE_PART"]); + const Code( + "PartTwice", + analyzerCodes: ["DUPLICATE_PART"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsPartTwice(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codePartTwice, - problemMessage: """Can't use '${uri}' as a part more than once.""", - arguments: {'uri': uri_}); + return new Message( + codePartTwice, + problemMessage: """Can't use '${uri}' as a part more than once.""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -12368,9 +14563,10 @@ const Code codePatchClassOrigin = messagePatchClassOrigin; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePatchClassOrigin = const MessageCode( - "PatchClassOrigin", - severity: Severity.context, - problemMessage: r"""This is the origin class."""); + "PatchClassOrigin", + severity: Severity.context, + problemMessage: r"""This is the origin class.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePatchClassTypeVariablesMismatch = @@ -12378,38 +14574,40 @@ const Code codePatchClassTypeVariablesMismatch = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePatchClassTypeVariablesMismatch = const MessageCode( - "PatchClassTypeVariablesMismatch", - problemMessage: - r"""A patch class must have the same number of type variables as its origin class."""); + "PatchClassTypeVariablesMismatch", + problemMessage: + r"""A patch class must have the same number of type variables as its origin class.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePatchDeclarationMismatch = messagePatchDeclarationMismatch; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePatchDeclarationMismatch = const MessageCode( - "PatchDeclarationMismatch", - problemMessage: r"""This patch doesn't match origin declaration."""); + "PatchDeclarationMismatch", + problemMessage: r"""This patch doesn't match origin declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePatchDeclarationOrigin = messagePatchDeclarationOrigin; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePatchDeclarationOrigin = const MessageCode( - "PatchDeclarationOrigin", - severity: Severity.context, - problemMessage: r"""This is the origin declaration."""); + "PatchDeclarationOrigin", + severity: Severity.context, + problemMessage: r"""This is the origin declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - Uri - uri_)> templatePatchInjectionFailed = const Template< - Message Function(String name, Uri uri_)>("PatchInjectionFailed", - problemMessageTemplate: r"""Can't inject public '#name' into '#uri'.""", - correctionMessageTemplate: - r"""Make '#name' private, or make sure injected library has "dart" scheme and is private (e.g. "dart:_internal").""", - withArguments: _withArgumentsPatchInjectionFailed); +const Template + templatePatchInjectionFailed = + const Template( + "PatchInjectionFailed", + problemMessageTemplate: r"""Can't inject public '#name' into '#uri'.""", + correctionMessageTemplate: + r"""Make '#name' private, or make sure injected library has "dart" scheme and is private (e.g. "dart:_internal").""", + withArguments: _withArgumentsPatchInjectionFailed, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePatchInjectionFailed = @@ -12422,11 +14620,16 @@ Message _withArgumentsPatchInjectionFailed(String name, Uri uri_) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); String? uri = relativizeUri(uri_); - return new Message(codePatchInjectionFailed, - problemMessage: """Can't inject public '${name}' into '${uri}'.""", - correctionMessage: - """Make '${name}' private, or make sure injected library has "dart" scheme and is private (e.g. "dart:_internal").""", - arguments: {'name': name, 'uri': uri_}); + return new Message( + codePatchInjectionFailed, + problemMessage: """Can't inject public '${name}' into '${uri}'.""", + correctionMessage: + """Make '${name}' private, or make sure injected library has "dart" scheme and is private (e.g. "dart:_internal").""", + arguments: { + 'name': name, + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -12434,40 +14637,46 @@ const Code codePatchNonExternal = messagePatchNonExternal; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePatchNonExternal = const MessageCode( - "PatchNonExternal", - problemMessage: - r"""Can't apply this patch as its origin declaration isn't external.""", - correctionMessage: r"""Try adding 'external' to the origin declaration."""); + "PatchNonExternal", + problemMessage: + r"""Can't apply this patch as its origin declaration isn't external.""", + correctionMessage: r"""Try adding 'external' to the origin declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templatePatternAssignmentDeclaresVariable = const Template< - Message Function(String name)>("PatternAssignmentDeclaresVariable", - problemMessageTemplate: - r"""Variable '#name' can't be declared in a pattern assignment.""", - correctionMessageTemplate: - r"""Try using a preexisting variable or changing the assignment to a pattern variable declaration.""", - withArguments: _withArgumentsPatternAssignmentDeclaresVariable); +const Template + templatePatternAssignmentDeclaresVariable = + const Template( + "PatternAssignmentDeclaresVariable", + problemMessageTemplate: + r"""Variable '#name' can't be declared in a pattern assignment.""", + correctionMessageTemplate: + r"""Try using a preexisting variable or changing the assignment to a pattern variable declaration.""", + withArguments: _withArgumentsPatternAssignmentDeclaresVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePatternAssignmentDeclaresVariable = const Code( - "PatternAssignmentDeclaresVariable", - index: 145); + "PatternAssignmentDeclaresVariable", + index: 145, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsPatternAssignmentDeclaresVariable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codePatternAssignmentDeclaresVariable, - problemMessage: - """Variable '${name}' can't be declared in a pattern assignment.""", - correctionMessage: - """Try using a preexisting variable or changing the assignment to a pattern variable declaration.""", - arguments: {'name': name}); + return new Message( + codePatternAssignmentDeclaresVariable, + problemMessage: + """Variable '${name}' can't be declared in a pattern assignment.""", + correctionMessage: + """Try using a preexisting variable or changing the assignment to a pattern variable declaration.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -12476,31 +14685,35 @@ const Code codePatternAssignmentNotLocalVariable = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePatternAssignmentNotLocalVariable = const MessageCode( - "PatternAssignmentNotLocalVariable", - analyzerCodes: ["PATTERN_ASSIGNMENT_NOT_LOCAL_VARIABLE"], - problemMessage: - r"""Only local variables or formal parameters can be used in pattern assignments.""", - correctionMessage: r"""Try assigning to a local variable."""); + "PatternAssignmentNotLocalVariable", + analyzerCodes: ["PATTERN_ASSIGNMENT_NOT_LOCAL_VARIABLE"], + problemMessage: + r"""Only local variables or formal parameters can be used in pattern assignments.""", + correctionMessage: r"""Try assigning to a local variable.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePatternMatchingError = messagePatternMatchingError; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePatternMatchingError = const MessageCode( - "PatternMatchingError", - problemMessage: r"""Pattern matching error"""); + "PatternMatchingError", + problemMessage: r"""Pattern matching error""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePatternVariableAssignmentInsideGuard = messagePatternVariableAssignmentInsideGuard; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messagePatternVariableAssignmentInsideGuard = const MessageCode( - "PatternVariableAssignmentInsideGuard", - analyzerCodes: ["PATTERN_VARIABLE_ASSIGNMENT_INSIDE_GUARD"], - problemMessage: - r"""Pattern variables can't be assigned inside the guard of the enclosing guarded pattern.""", - correctionMessage: r"""Try assigning to a different variable."""); +const MessageCode messagePatternVariableAssignmentInsideGuard = + const MessageCode( + "PatternVariableAssignmentInsideGuard", + analyzerCodes: ["PATTERN_VARIABLE_ASSIGNMENT_INSIDE_GUARD"], + problemMessage: + r"""Pattern variables can't be assigned inside the guard of the enclosing guarded pattern.""", + correctionMessage: r"""Try assigning to a different variable.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePatternVariableDeclarationOutsideFunctionOrMethod = @@ -12508,12 +14721,14 @@ const Code codePatternVariableDeclarationOutsideFunctionOrMethod = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePatternVariableDeclarationOutsideFunctionOrMethod = - const MessageCode("PatternVariableDeclarationOutsideFunctionOrMethod", - index: 152, - problemMessage: - r"""A pattern variable declaration may not appear outside a function or method.""", - correctionMessage: - r"""Try declaring ordinary variables and assigning from within a function or method."""); + const MessageCode( + "PatternVariableDeclarationOutsideFunctionOrMethod", + index: 152, + problemMessage: + r"""A pattern variable declaration may not appear outside a function or method.""", + correctionMessage: + r"""Try declaring ordinary variables and assigning from within a function or method.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePlatformPrivateLibraryAccess = @@ -12521,9 +14736,10 @@ const Code codePlatformPrivateLibraryAccess = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePlatformPrivateLibraryAccess = const MessageCode( - "PlatformPrivateLibraryAccess", - analyzerCodes: ["IMPORT_INTERNAL_LIBRARY"], - problemMessage: r"""Can't access platform private library."""); + "PlatformPrivateLibraryAccess", + analyzerCodes: ["IMPORT_INTERNAL_LIBRARY"], + problemMessage: r"""Can't access platform private library.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePositionalAfterNamedArgument = @@ -12531,11 +14747,12 @@ const Code codePositionalAfterNamedArgument = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePositionalAfterNamedArgument = const MessageCode( - "PositionalAfterNamedArgument", - analyzerCodes: ["POSITIONAL_AFTER_NAMED_ARGUMENT"], - problemMessage: r"""Place positional arguments before named arguments.""", - correctionMessage: - r"""Try moving the positional argument before the named arguments, or add a name to the argument."""); + "PositionalAfterNamedArgument", + analyzerCodes: ["POSITIONAL_AFTER_NAMED_ARGUMENT"], + problemMessage: r"""Place positional arguments before named arguments.""", + correctionMessage: + r"""Try moving the positional argument before the named arguments, or add a name to the argument.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePositionalParameterWithEquals = @@ -12543,42 +14760,47 @@ const Code codePositionalParameterWithEquals = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePositionalParameterWithEquals = const MessageCode( - "PositionalParameterWithEquals", - analyzerCodes: ["WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER"], - problemMessage: - r"""Positional optional parameters can't use ':' to specify a default value.""", - correctionMessage: r"""Try replacing ':' with '='."""); + "PositionalParameterWithEquals", + analyzerCodes: ["WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER"], + problemMessage: + r"""Positional optional parameters can't use ':' to specify a default value.""", + correctionMessage: r"""Try replacing ':' with '='.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePositionalSuperParametersAndArguments = messagePositionalSuperParametersAndArguments; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messagePositionalSuperParametersAndArguments = const MessageCode( - "PositionalSuperParametersAndArguments", - problemMessage: - r"""Positional super-initializer parameters cannot be used when the super initializer has positional arguments."""); +const MessageCode messagePositionalSuperParametersAndArguments = + const MessageCode( + "PositionalSuperParametersAndArguments", + problemMessage: + r"""Positional super-initializer parameters cannot be used when the super initializer has positional arguments.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePrefixAfterCombinator = messagePrefixAfterCombinator; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePrefixAfterCombinator = const MessageCode( - "PrefixAfterCombinator", - index: 6, - problemMessage: - r"""The prefix ('as' clause) should come before any show/hide combinators.""", - correctionMessage: r"""Try moving the prefix before the combinators."""); + "PrefixAfterCombinator", + index: 6, + problemMessage: + r"""The prefix ('as' clause) should come before any show/hide combinators.""", + correctionMessage: r"""Try moving the prefix before the combinators.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codePrivateNamedParameter = messagePrivateNamedParameter; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messagePrivateNamedParameter = const MessageCode( - "PrivateNamedParameter", - analyzerCodes: ["PRIVATE_OPTIONAL_PARAMETER"], - problemMessage: - r"""A named parameter can't start with an underscore ('_')."""); + "PrivateNamedParameter", + analyzerCodes: ["PRIVATE_OPTIONAL_PARAMETER"], + problemMessage: + r"""A named parameter can't start with an underscore ('_').""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRecordFieldsCantBePrivate = @@ -12586,9 +14808,10 @@ const Code codeRecordFieldsCantBePrivate = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRecordFieldsCantBePrivate = const MessageCode( - "RecordFieldsCantBePrivate", - analyzerCodes: ["INVALID_FIELD_NAME"], - problemMessage: r"""Record field names can't be private."""); + "RecordFieldsCantBePrivate", + analyzerCodes: ["INVALID_FIELD_NAME"], + problemMessage: r"""Record field names can't be private.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRecordLiteralOnePositionalFieldNoTrailingComma = @@ -12596,11 +14819,13 @@ const Code codeRecordLiteralOnePositionalFieldNoTrailingComma = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRecordLiteralOnePositionalFieldNoTrailingComma = - const MessageCode("RecordLiteralOnePositionalFieldNoTrailingComma", - index: 127, - problemMessage: - r"""A record literal with exactly one positional field requires a trailing comma.""", - correctionMessage: r"""Try adding a trailing comma."""); + const MessageCode( + "RecordLiteralOnePositionalFieldNoTrailingComma", + index: 127, + problemMessage: + r"""A record literal with exactly one positional field requires a trailing comma.""", + correctionMessage: r"""Try adding a trailing comma.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRecordLiteralZeroFieldsWithTrailingComma = @@ -12608,11 +14833,13 @@ const Code codeRecordLiteralZeroFieldsWithTrailingComma = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRecordLiteralZeroFieldsWithTrailingComma = - const MessageCode("RecordLiteralZeroFieldsWithTrailingComma", - index: 128, - problemMessage: - r"""A record literal without fields can't have a trailing comma.""", - correctionMessage: r"""Try removing the trailing comma."""); + const MessageCode( + "RecordLiteralZeroFieldsWithTrailingComma", + index: 128, + problemMessage: + r"""A record literal without fields can't have a trailing comma.""", + correctionMessage: r"""Try removing the trailing comma.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRecordTypeOnePositionalFieldNoTrailingComma = @@ -12620,11 +14847,13 @@ const Code codeRecordTypeOnePositionalFieldNoTrailingComma = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRecordTypeOnePositionalFieldNoTrailingComma = - const MessageCode("RecordTypeOnePositionalFieldNoTrailingComma", - index: 131, - problemMessage: - r"""A record type with exactly one positional field requires a trailing comma.""", - correctionMessage: r"""Try adding a trailing comma."""); + const MessageCode( + "RecordTypeOnePositionalFieldNoTrailingComma", + index: 131, + problemMessage: + r"""A record type with exactly one positional field requires a trailing comma.""", + correctionMessage: r"""Try adding a trailing comma.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRecordTypeZeroFieldsButTrailingComma = @@ -12632,20 +14861,23 @@ const Code codeRecordTypeZeroFieldsButTrailingComma = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRecordTypeZeroFieldsButTrailingComma = - const MessageCode("RecordTypeZeroFieldsButTrailingComma", - index: 130, - problemMessage: - r"""A record type without fields can't have a trailing comma.""", - correctionMessage: r"""Try removing the trailing comma."""); + const MessageCode( + "RecordTypeZeroFieldsButTrailingComma", + index: 130, + problemMessage: + r"""A record type without fields can't have a trailing comma.""", + correctionMessage: r"""Try removing the trailing comma.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRecordUsedAsCallable = messageRecordUsedAsCallable; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRecordUsedAsCallable = const MessageCode( - "RecordUsedAsCallable", - problemMessage: - r"""The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`"""); + "RecordUsedAsCallable", + problemMessage: + r"""The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRedirectingConstructorWithAnotherInitializer = @@ -12653,10 +14885,12 @@ const Code codeRedirectingConstructorWithAnotherInitializer = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRedirectingConstructorWithAnotherInitializer = - const MessageCode("RedirectingConstructorWithAnotherInitializer", - analyzerCodes: ["FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR"], - problemMessage: - r"""A redirecting constructor can't have other initializers."""); + const MessageCode( + "RedirectingConstructorWithAnotherInitializer", + analyzerCodes: ["FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR"], + problemMessage: + r"""A redirecting constructor can't have other initializers.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRedirectingConstructorWithBody = @@ -12664,11 +14898,12 @@ const Code codeRedirectingConstructorWithBody = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRedirectingConstructorWithBody = const MessageCode( - "RedirectingConstructorWithBody", - index: 22, - problemMessage: r"""Redirecting constructors can't have a body.""", - correctionMessage: - r"""Try removing the body, or not making this a redirecting constructor."""); + "RedirectingConstructorWithBody", + index: 22, + problemMessage: r"""Redirecting constructors can't have a body.""", + correctionMessage: + r"""Try removing the body, or not making this a redirecting constructor.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRedirectingConstructorWithMultipleRedirectInitializers = @@ -12677,10 +14912,12 @@ const Code codeRedirectingConstructorWithMultipleRedirectInitializers = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRedirectingConstructorWithMultipleRedirectInitializers = - const MessageCode("RedirectingConstructorWithMultipleRedirectInitializers", - analyzerCodes: ["MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS"], - problemMessage: - r"""A redirecting constructor can't have more than one redirection."""); + const MessageCode( + "RedirectingConstructorWithMultipleRedirectInitializers", + analyzerCodes: ["MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS"], + problemMessage: + r"""A redirecting constructor can't have more than one redirection.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRedirectingConstructorWithSuperInitializer = @@ -12688,43 +14925,53 @@ const Code codeRedirectingConstructorWithSuperInitializer = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRedirectingConstructorWithSuperInitializer = - const MessageCode("RedirectingConstructorWithSuperInitializer", - analyzerCodes: ["SUPER_IN_REDIRECTING_CONSTRUCTOR"], - problemMessage: - r"""A redirecting constructor can't have a 'super' initializer."""); + const MessageCode( + "RedirectingConstructorWithSuperInitializer", + analyzerCodes: ["SUPER_IN_REDIRECTING_CONSTRUCTOR"], + problemMessage: + r"""A redirecting constructor can't have a 'super' initializer.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRedirectionInNonFactory = messageRedirectionInNonFactory; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRedirectionInNonFactory = const MessageCode( - "RedirectionInNonFactory", - index: 21, - problemMessage: - r"""Only factory constructor can specify '=' redirection.""", - correctionMessage: - r"""Try making this a factory constructor, or remove the redirection."""); + "RedirectionInNonFactory", + index: 21, + problemMessage: r"""Only factory constructor can specify '=' redirection.""", + correctionMessage: + r"""Try making this a factory constructor, or remove the redirection.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateRedirectionTargetNotFound = - const Template("RedirectionTargetNotFound", - problemMessageTemplate: - r"""Redirection constructor target not found: '#name'""", - withArguments: _withArgumentsRedirectionTargetNotFound); + const Template( + "RedirectionTargetNotFound", + problemMessageTemplate: + r"""Redirection constructor target not found: '#name'""", + withArguments: _withArgumentsRedirectionTargetNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRedirectionTargetNotFound = - const Code("RedirectionTargetNotFound", - analyzerCodes: ["REDIRECT_TO_MISSING_CONSTRUCTOR"]); + const Code( + "RedirectionTargetNotFound", + analyzerCodes: ["REDIRECT_TO_MISSING_CONSTRUCTOR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsRedirectionTargetNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeRedirectionTargetNotFound, - problemMessage: """Redirection constructor target not found: '${name}'""", - arguments: {'name': name}); + return new Message( + codeRedirectionTargetNotFound, + problemMessage: """Redirection constructor target not found: '${name}'""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -12732,13 +14979,15 @@ const Code codeRefutablePatternInIrrefutableContext = messageRefutablePatternInIrrefutableContext; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageRefutablePatternInIrrefutableContext = const MessageCode( - "RefutablePatternInIrrefutableContext", - analyzerCodes: ["REFUTABLE_PATTERN_IN_IRREFUTABLE_CONTEXT"], - problemMessage: - r"""Refutable patterns can't be used in an irrefutable context.""", - correctionMessage: - r"""Try using an if-case, a 'switch' statement, or a 'switch' expression instead."""); +const MessageCode messageRefutablePatternInIrrefutableContext = + const MessageCode( + "RefutablePatternInIrrefutableContext", + analyzerCodes: ["REFUTABLE_PATTERN_IN_IRREFUTABLE_CONTEXT"], + problemMessage: + r"""Refutable patterns can't be used in an irrefutable context.""", + correctionMessage: + r"""Try using an if-case, a 'switch' statement, or a 'switch' expression instead.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRepresentationFieldModifier = @@ -12746,9 +14995,10 @@ const Code codeRepresentationFieldModifier = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRepresentationFieldModifier = const MessageCode( - "RepresentationFieldModifier", - analyzerCodes: ["REPRESENTATION_FIELD_MODIFIER"], - problemMessage: r"""Representation fields can't have modifiers."""); + "RepresentationFieldModifier", + analyzerCodes: ["REPRESENTATION_FIELD_MODIFIER"], + problemMessage: r"""Representation fields can't have modifiers.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRepresentationFieldTrailingComma = @@ -12756,20 +15006,20 @@ const Code codeRepresentationFieldTrailingComma = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRepresentationFieldTrailingComma = const MessageCode( - "RepresentationFieldTrailingComma", - analyzerCodes: ["REPRESENTATION_FIELD_TRAILING_COMMA"], - problemMessage: - r"""The representation field can't have a trailing comma."""); + "RepresentationFieldTrailingComma", + analyzerCodes: ["REPRESENTATION_FIELD_TRAILING_COMMA"], + problemMessage: r"""The representation field can't have a trailing comma.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateRequiredNamedParameterHasDefaultValueError = const Template( - "RequiredNamedParameterHasDefaultValueError", - problemMessageTemplate: - r"""Named parameter '#name' is required and can't have a default value.""", - withArguments: - _withArgumentsRequiredNamedParameterHasDefaultValueError); + "RequiredNamedParameterHasDefaultValueError", + problemMessageTemplate: + r"""Named parameter '#name' is required and can't have a default value.""", + withArguments: _withArgumentsRequiredNamedParameterHasDefaultValueError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -12782,10 +15032,14 @@ const Code Message _withArgumentsRequiredNamedParameterHasDefaultValueError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeRequiredNamedParameterHasDefaultValueError, - problemMessage: - """Named parameter '${name}' is required and can't have a default value.""", - arguments: {'name': name}); + return new Message( + codeRequiredNamedParameterHasDefaultValueError, + problemMessage: + """Named parameter '${name}' is required and can't have a default value.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -12794,11 +15048,12 @@ const Code codeRequiredParameterWithDefault = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRequiredParameterWithDefault = const MessageCode( - "RequiredParameterWithDefault", - analyzerCodes: ["NAMED_PARAMETER_OUTSIDE_GROUP"], - problemMessage: r"""Non-optional parameters can't have a default value.""", - correctionMessage: - r"""Try removing the default value or making the parameter optional."""); + "RequiredParameterWithDefault", + analyzerCodes: ["NAMED_PARAMETER_OUTSIDE_GROUP"], + problemMessage: r"""Non-optional parameters can't have a default value.""", + correctionMessage: + r"""Try removing the default value or making the parameter optional.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeResourceIdentifiersMultiple = @@ -12806,9 +15061,10 @@ const Code codeResourceIdentifiersMultiple = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageResourceIdentifiersMultiple = const MessageCode( - "ResourceIdentifiersMultiple", - problemMessage: - r"""Only one resource identifier pragma can be used at a time."""); + "ResourceIdentifiersMultiple", + problemMessage: + r"""Only one resource identifier pragma can be used at a time.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeResourceIdentifiersNotStatic = @@ -12816,34 +15072,39 @@ const Code codeResourceIdentifiersNotStatic = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageResourceIdentifiersNotStatic = const MessageCode( - "ResourceIdentifiersNotStatic", - problemMessage: - r"""Resource identifier pragma can be used on a static method only."""); + "ResourceIdentifiersNotStatic", + problemMessage: + r"""Resource identifier pragma can be used on a static method only.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRestPatternInMapPattern = messageRestPatternInMapPattern; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageRestPatternInMapPattern = const MessageCode( - "RestPatternInMapPattern", - problemMessage: r"""The '...' pattern can't appear in map patterns."""); + "RestPatternInMapPattern", + problemMessage: r"""The '...' pattern can't appear in map patterns.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeRethrowNotCatch = messageRethrowNotCatch; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageRethrowNotCatch = const MessageCode("RethrowNotCatch", - analyzerCodes: ["RETHROW_OUTSIDE_CATCH"], - problemMessage: r"""'rethrow' can only be used in catch clauses."""); +const MessageCode messageRethrowNotCatch = const MessageCode( + "RethrowNotCatch", + analyzerCodes: ["RETHROW_OUTSIDE_CATCH"], + problemMessage: r"""'rethrow' can only be used in catch clauses.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeReturnFromVoidFunction = messageReturnFromVoidFunction; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageReturnFromVoidFunction = const MessageCode( - "ReturnFromVoidFunction", - analyzerCodes: ["RETURN_OF_INVALID_TYPE"], - problemMessage: r"""Can't return a value from a void function."""); + "ReturnFromVoidFunction", + analyzerCodes: ["RETURN_OF_INVALID_TYPE"], + problemMessage: r"""Can't return a value from a void function.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeReturnTypeFunctionExpression = @@ -12851,19 +15112,21 @@ const Code codeReturnTypeFunctionExpression = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageReturnTypeFunctionExpression = const MessageCode( - "ReturnTypeFunctionExpression", - problemMessage: r"""A function expression can't have a return type."""); + "ReturnTypeFunctionExpression", + problemMessage: r"""A function expression can't have a return type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeReturnWithoutExpression = messageReturnWithoutExpression; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageReturnWithoutExpression = const MessageCode( - "ReturnWithoutExpression", - analyzerCodes: ["RETURN_WITHOUT_VALUE"], - severity: Severity.warning, - problemMessage: - r"""Must explicitly return a value from a non-void function."""); + "ReturnWithoutExpression", + analyzerCodes: ["RETURN_WITHOUT_VALUE"], + severity: Severity.warning, + problemMessage: + r"""Must explicitly return a value from a non-void function.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeReturnWithoutExpressionAsync = @@ -12871,9 +15134,10 @@ const Code codeReturnWithoutExpressionAsync = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageReturnWithoutExpressionAsync = const MessageCode( - "ReturnWithoutExpressionAsync", - problemMessage: - r"""A value must be explicitly returned from a non-void async function."""); + "ReturnWithoutExpressionAsync", + problemMessage: + r"""A value must be explicitly returned from a non-void async function.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeReturnWithoutExpressionSync = @@ -12881,25 +15145,29 @@ const Code codeReturnWithoutExpressionSync = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageReturnWithoutExpressionSync = const MessageCode( - "ReturnWithoutExpressionSync", - problemMessage: - r"""A value must be explicitly returned from a non-void function."""); + "ReturnWithoutExpressionSync", + problemMessage: + r"""A value must be explicitly returned from a non-void function.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeScriptTagInPartFile = messageScriptTagInPartFile; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageScriptTagInPartFile = const MessageCode( - "ScriptTagInPartFile", - problemMessage: r"""A part file cannot have script tag.""", - correctionMessage: - r"""Try removing the script tag or the 'part of' directive."""); + "ScriptTagInPartFile", + problemMessage: r"""A part file cannot have script tag.""", + correctionMessage: + r"""Try removing the script tag or the 'part of' directive.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSdkRootNotFound = - const Template("SdkRootNotFound", - problemMessageTemplate: r"""SDK root directory not found: #uri.""", - withArguments: _withArgumentsSdkRootNotFound); + const Template( + "SdkRootNotFound", + problemMessageTemplate: r"""SDK root directory not found: #uri.""", + withArguments: _withArgumentsSdkRootNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSdkRootNotFound = @@ -12910,21 +15178,24 @@ const Code codeSdkRootNotFound = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSdkRootNotFound(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codeSdkRootNotFound, - problemMessage: """SDK root directory not found: ${uri}.""", - arguments: {'uri': uri_}); + return new Message( + codeSdkRootNotFound, + problemMessage: """SDK root directory not found: ${uri}.""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Uri - uri_)> templateSdkSpecificationNotFound = const Template< - Message Function(Uri uri_)>("SdkSpecificationNotFound", - problemMessageTemplate: r"""SDK libraries specification not found: #uri.""", - correctionMessageTemplate: - r"""Normally, the specification is a file named 'libraries.json' in the Dart SDK install location.""", - withArguments: _withArgumentsSdkSpecificationNotFound); +const Template templateSdkSpecificationNotFound = + const Template( + "SdkSpecificationNotFound", + problemMessageTemplate: r"""SDK libraries specification not found: #uri.""", + correctionMessageTemplate: + r"""Normally, the specification is a file named 'libraries.json' in the Dart SDK install location.""", + withArguments: _withArgumentsSdkSpecificationNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSdkSpecificationNotFound = @@ -12935,18 +15206,24 @@ const Code codeSdkSpecificationNotFound = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSdkSpecificationNotFound(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codeSdkSpecificationNotFound, - problemMessage: """SDK libraries specification not found: ${uri}.""", - correctionMessage: - """Normally, the specification is a file named 'libraries.json' in the Dart SDK install location.""", - arguments: {'uri': uri_}); + return new Message( + codeSdkSpecificationNotFound, + problemMessage: """SDK libraries specification not found: ${uri}.""", + correctionMessage: + """Normally, the specification is a file named 'libraries.json' in the Dart SDK install location.""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSdkSummaryNotFound = - const Template("SdkSummaryNotFound", - problemMessageTemplate: r"""SDK summary not found: #uri.""", - withArguments: _withArgumentsSdkSummaryNotFound); + const Template( + "SdkSummaryNotFound", + problemMessageTemplate: r"""SDK summary not found: #uri.""", + withArguments: _withArgumentsSdkSummaryNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSdkSummaryNotFound = @@ -12957,65 +15234,79 @@ const Code codeSdkSummaryNotFound = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSdkSummaryNotFound(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codeSdkSummaryNotFound, - problemMessage: """SDK summary not found: ${uri}.""", - arguments: {'uri': uri_}); + return new Message( + codeSdkSummaryNotFound, + problemMessage: """SDK summary not found: ${uri}.""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateSealedClassSubtypeOutsideOfLibrary = const Template< - Message Function(String name)>("SealedClassSubtypeOutsideOfLibrary", - problemMessageTemplate: - r"""The class '#name' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.""", - withArguments: _withArgumentsSealedClassSubtypeOutsideOfLibrary); +const Template + templateSealedClassSubtypeOutsideOfLibrary = + const Template( + "SealedClassSubtypeOutsideOfLibrary", + problemMessageTemplate: + r"""The class '#name' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.""", + withArguments: _withArgumentsSealedClassSubtypeOutsideOfLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSealedClassSubtypeOutsideOfLibrary = const Code( - "SealedClassSubtypeOutsideOfLibrary", - analyzerCodes: ["SEALED_CLASS_SUBTYPE_OUTSIDE_OF_LIBRARY"]); + "SealedClassSubtypeOutsideOfLibrary", + analyzerCodes: ["SEALED_CLASS_SUBTYPE_OUTSIDE_OF_LIBRARY"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSealedClassSubtypeOutsideOfLibrary(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSealedClassSubtypeOutsideOfLibrary, - problemMessage: - """The class '${name}' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.""", - arguments: {'name': name}); + return new Message( + codeSealedClassSubtypeOutsideOfLibrary, + problemMessage: + """The class '${name}' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSealedEnum = messageSealedEnum; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageSealedEnum = const MessageCode("SealedEnum", - index: 158, - problemMessage: r"""Enums can't be declared to be 'sealed'.""", - correctionMessage: r"""Try removing the keyword 'sealed'."""); +const MessageCode messageSealedEnum = const MessageCode( + "SealedEnum", + index: 158, + problemMessage: r"""Enums can't be declared to be 'sealed'.""", + correctionMessage: r"""Try removing the keyword 'sealed'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSealedMixin = messageSealedMixin; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageSealedMixin = const MessageCode("SealedMixin", - index: 148, - problemMessage: r"""A mixin can't be declared 'sealed'.""", - correctionMessage: r"""Try removing the 'sealed' keyword."""); +const MessageCode messageSealedMixin = const MessageCode( + "SealedMixin", + index: 148, + problemMessage: r"""A mixin can't be declared 'sealed'.""", + correctionMessage: r"""Try removing the 'sealed' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSealedMixinClass = messageSealedMixinClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSealedMixinClass = const MessageCode( - "SealedMixinClass", - index: 144, - problemMessage: r"""A mixin class can't be declared 'sealed'.""", - correctionMessage: r"""Try removing the 'sealed' keyword."""); + "SealedMixinClass", + index: 144, + problemMessage: r"""A mixin class can't be declared 'sealed'.""", + correctionMessage: r"""Try removing the 'sealed' keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSetLiteralTooManyTypeArguments = @@ -13023,56 +15314,70 @@ const Code codeSetLiteralTooManyTypeArguments = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSetLiteralTooManyTypeArguments = const MessageCode( - "SetLiteralTooManyTypeArguments", - problemMessage: r"""A set literal requires exactly one type argument."""); + "SetLiteralTooManyTypeArguments", + problemMessage: r"""A set literal requires exactly one type argument.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSetOrMapLiteralTooManyTypeArguments = messageSetOrMapLiteralTooManyTypeArguments; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageSetOrMapLiteralTooManyTypeArguments = const MessageCode( - "SetOrMapLiteralTooManyTypeArguments", - problemMessage: - r"""A set or map literal requires exactly one or two type arguments, respectively."""); +const MessageCode messageSetOrMapLiteralTooManyTypeArguments = + const MessageCode( + "SetOrMapLiteralTooManyTypeArguments", + problemMessage: + r"""A set or map literal requires exactly one or two type arguments, respectively.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSetterConstructor = messageSetterConstructor; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSetterConstructor = const MessageCode( - "SetterConstructor", - index: 104, - problemMessage: r"""Constructors can't be a setter.""", - correctionMessage: r"""Try removing 'set'."""); + "SetterConstructor", + index: 104, + problemMessage: r"""Constructors can't be a setter.""", + correctionMessage: r"""Try removing 'set'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSetterNotFound = - const Template("SetterNotFound", - problemMessageTemplate: r"""Setter not found: '#name'.""", - withArguments: _withArgumentsSetterNotFound); + const Template( + "SetterNotFound", + problemMessageTemplate: r"""Setter not found: '#name'.""", + withArguments: _withArgumentsSetterNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSetterNotFound = - const Code("SetterNotFound", - analyzerCodes: ["UNDEFINED_SETTER"]); + const Code( + "SetterNotFound", + analyzerCodes: ["UNDEFINED_SETTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSetterNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSetterNotFound, - problemMessage: """Setter not found: '${name}'.""", - arguments: {'name': name}); + return new Message( + codeSetterNotFound, + problemMessage: """Setter not found: '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSetterNotSync = messageSetterNotSync; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageSetterNotSync = const MessageCode("SetterNotSync", - analyzerCodes: ["INVALID_MODIFIER_ON_SETTER"], - problemMessage: r"""Setters can't use 'async', 'async*', or 'sync*'."""); +const MessageCode messageSetterNotSync = const MessageCode( + "SetterNotSync", + analyzerCodes: ["INVALID_MODIFIER_ON_SETTER"], + problemMessage: r"""Setters can't use 'async', 'async*', or 'sync*'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSetterWithWrongNumberOfFormals = @@ -13080,27 +15385,23 @@ const Code codeSetterWithWrongNumberOfFormals = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSetterWithWrongNumberOfFormals = const MessageCode( - "SetterWithWrongNumberOfFormals", - analyzerCodes: ["WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER"], - problemMessage: r"""A setter should have exactly one formal parameter."""); + "SetterWithWrongNumberOfFormals", + analyzerCodes: ["WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER"], + problemMessage: r"""A setter should have exactly one formal parameter.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - int count, - int count2, - num _num1, - num _num2, - num - _num3)> templateSourceBodySummary = const Template< - Message Function( - int count, int count2, num _num1, num _num2, num _num3)>( - "SourceBodySummary", - problemMessageTemplate: - r"""Built bodies for #count compilation units (#count2 bytes) in #num1%.3ms, that is, + Message Function(int count, int count2, num _num1, num _num2, + num _num3)> templateSourceBodySummary = const Template< + Message Function(int count, int count2, num _num1, num _num2, num _num3)>( + "SourceBodySummary", + problemMessageTemplate: + r"""Built bodies for #count compilation units (#count2 bytes) in #num1%.3ms, that is, #num2%12.3 bytes/ms, and #num3%12.3 ms/compilation unit.""", - withArguments: _withArgumentsSourceBodySummary); + withArguments: _withArgumentsSourceBodySummary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -13116,37 +15417,34 @@ Message _withArgumentsSourceBodySummary( String num1 = _num1.toStringAsFixed(3); String num2 = _num2.toStringAsFixed(3).padLeft(12); String num3 = _num3.toStringAsFixed(3).padLeft(12); - return new Message(codeSourceBodySummary, - problemMessage: - """Built bodies for ${count} compilation units (${count2} bytes) in ${num1}ms, that is, + return new Message( + codeSourceBodySummary, + problemMessage: + """Built bodies for ${count} compilation units (${count2} bytes) in ${num1}ms, that is, ${num2} bytes/ms, and ${num3} ms/compilation unit.""", - arguments: { - 'count': count, - 'count2': count2, - 'num1': _num1, - 'num2': _num2, - 'num3': _num3 - }); + arguments: { + 'count': count, + 'count2': count2, + 'num1': _num1, + 'num2': _num2, + 'num3': _num3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - int count, - int count2, - num _num1, - num _num2, - num - _num3)> templateSourceOutlineSummary = const Template< - Message Function( - int count, int count2, num _num1, num _num2, num _num3)>( - "SourceOutlineSummary", - problemMessageTemplate: - r"""Built outlines for #count compilation units (#count2 bytes) in #num1%.3ms, that is, + Message Function(int count, int count2, num _num1, num _num2, + num _num3)> templateSourceOutlineSummary = const Template< + Message Function(int count, int count2, num _num1, num _num2, num _num3)>( + "SourceOutlineSummary", + problemMessageTemplate: + r"""Built outlines for #count compilation units (#count2 bytes) in #num1%.3ms, that is, #num2%12.3 bytes/ms, and #num3%12.3 ms/compilation unit.""", - withArguments: _withArgumentsSourceOutlineSummary); + withArguments: _withArgumentsSourceOutlineSummary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -13162,45 +15460,53 @@ Message _withArgumentsSourceOutlineSummary( String num1 = _num1.toStringAsFixed(3); String num2 = _num2.toStringAsFixed(3).padLeft(12); String num3 = _num3.toStringAsFixed(3).padLeft(12); - return new Message(codeSourceOutlineSummary, - problemMessage: - """Built outlines for ${count} compilation units (${count2} bytes) in ${num1}ms, that is, + return new Message( + codeSourceOutlineSummary, + problemMessage: + """Built outlines for ${count} compilation units (${count2} bytes) in ${num1}ms, that is, ${num2} bytes/ms, and ${num3} ms/compilation unit.""", - arguments: { - 'count': count, - 'count2': count2, - 'num1': _num1, - 'num2': _num2, - 'num3': _num3 - }); + arguments: { + 'count': count, + 'count2': count2, + 'num1': _num1, + 'num2': _num2, + 'num3': _num3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSpreadElement = messageSpreadElement; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageSpreadElement = const MessageCode("SpreadElement", - severity: Severity.context, problemMessage: r"""Iterable spread."""); +const MessageCode messageSpreadElement = const MessageCode( + "SpreadElement", + severity: Severity.context, + problemMessage: r"""Iterable spread.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSpreadMapElement = messageSpreadMapElement; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSpreadMapElement = const MessageCode( - "SpreadMapElement", - severity: Severity.context, - problemMessage: r"""Map spread."""); + "SpreadMapElement", + severity: Severity.context, + problemMessage: r"""Map spread.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeStackOverflow = messageStackOverflow; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageStackOverflow = const MessageCode("StackOverflow", - index: 19, - problemMessage: - r"""The file has too many nested expressions or statements.""", - correctionMessage: r"""Try simplifying the code."""); +const MessageCode messageStackOverflow = const MessageCode( + "StackOverflow", + index: 19, + problemMessage: + r"""The file has too many nested expressions or statements.""", + correctionMessage: r"""Try simplifying the code.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeStaticAndInstanceConflict = @@ -13208,10 +15514,10 @@ const Code codeStaticAndInstanceConflict = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageStaticAndInstanceConflict = const MessageCode( - "StaticAndInstanceConflict", - analyzerCodes: ["CONFLICTING_STATIC_AND_INSTANCE"], - problemMessage: - r"""This static member conflicts with an instance member."""); + "StaticAndInstanceConflict", + analyzerCodes: ["CONFLICTING_STATIC_AND_INSTANCE"], + problemMessage: r"""This static member conflicts with an instance member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeStaticAndInstanceConflictCause = @@ -13219,28 +15525,32 @@ const Code codeStaticAndInstanceConflictCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageStaticAndInstanceConflictCause = const MessageCode( - "StaticAndInstanceConflictCause", - severity: Severity.context, - problemMessage: r"""This is the instance member."""); + "StaticAndInstanceConflictCause", + severity: Severity.context, + problemMessage: r"""This is the instance member.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeStaticConstructor = messageStaticConstructor; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageStaticConstructor = const MessageCode( - "StaticConstructor", - index: 4, - problemMessage: r"""Constructors can't be static.""", - correctionMessage: r"""Try removing the keyword 'static'."""); + "StaticConstructor", + index: 4, + problemMessage: r"""Constructors can't be static.""", + correctionMessage: r"""Try removing the keyword 'static'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeStaticOperator = messageStaticOperator; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageStaticOperator = const MessageCode("StaticOperator", - index: 17, - problemMessage: r"""Operators can't be static.""", - correctionMessage: r"""Try removing the keyword 'static'."""); +const MessageCode messageStaticOperator = const MessageCode( + "StaticOperator", + index: 17, + problemMessage: r"""Operators can't be static.""", + correctionMessage: r"""Try removing the keyword 'static'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeStaticTearOffFromInstantiatedClass = @@ -13248,32 +15558,35 @@ const Code codeStaticTearOffFromInstantiatedClass = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageStaticTearOffFromInstantiatedClass = const MessageCode( - "StaticTearOffFromInstantiatedClass", - problemMessage: - r"""Cannot access static member on an instantiated generic class.""", - correctionMessage: - r"""Try removing the type arguments or placing them after the member name."""); + "StaticTearOffFromInstantiatedClass", + problemMessage: + r"""Cannot access static member on an instantiated generic class.""", + correctionMessage: + r"""Try removing the type arguments or placing them after the member name.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeStrongModeNNBDButOptOut = messageStrongModeNNBDButOptOut; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageStrongModeNNBDButOptOut = const MessageCode( - "StrongModeNNBDButOptOut", - problemMessage: r"""Library doesn't support null safety."""); + "StrongModeNNBDButOptOut", + problemMessage: r"""Library doesn't support null safety.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template _names)> templateStrongModeNNBDPackageOptOut = const Template _names)>( - "StrongModeNNBDPackageOptOut", - problemMessageTemplate: - r"""The following dependencies don't support null safety: + "StrongModeNNBDPackageOptOut", + problemMessageTemplate: + r"""The following dependencies don't support null safety: #names For solutions, see https://dart.dev/go/unsound-null-safety""", - withArguments: _withArgumentsStrongModeNNBDPackageOptOut); + withArguments: _withArgumentsStrongModeNNBDPackageOptOut, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code _names)> @@ -13286,13 +15599,17 @@ const Code _names)> Message _withArgumentsStrongModeNNBDPackageOptOut(List _names) { if (_names.isEmpty) throw 'No names provided'; String names = itemizeNames(_names); - return new Message(codeStrongModeNNBDPackageOptOut, - problemMessage: """The following dependencies don't support null safety: + return new Message( + codeStrongModeNNBDPackageOptOut, + problemMessage: """The following dependencies don't support null safety: ${names} For solutions, see https://dart.dev/go/unsound-null-safety""", - arguments: {'names': _names}); + arguments: { + 'names': _names, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -13301,30 +15618,30 @@ const Code codeStrongWithWeakDillLibrary = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageStrongWithWeakDillLibrary = const MessageCode( - "StrongWithWeakDillLibrary", - problemMessage: - r"""Loaded library is compiled with unsound null safety and cannot be used in compilation for sound null safety."""); + "StrongWithWeakDillLibrary", + problemMessage: + r"""Loaded library is compiled with unsound null safety and cannot be used in compilation for sound null safety.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateSubtypeOfBaseIsNotBaseFinalOrSealed = const Template< - Message Function(String name, String name2)>( - "SubtypeOfBaseIsNotBaseFinalOrSealed", - problemMessageTemplate: - r"""The type '#name' must be 'base', 'final' or 'sealed' because the supertype '#name2' is 'base'.""", - correctionMessageTemplate: - r"""Try adding 'base', 'final', or 'sealed' to the type.""", - withArguments: _withArgumentsSubtypeOfBaseIsNotBaseFinalOrSealed); +const Template + templateSubtypeOfBaseIsNotBaseFinalOrSealed = + const Template( + "SubtypeOfBaseIsNotBaseFinalOrSealed", + problemMessageTemplate: + r"""The type '#name' must be 'base', 'final' or 'sealed' because the supertype '#name2' is 'base'.""", + correctionMessageTemplate: + r"""Try adding 'base', 'final', or 'sealed' to the type.""", + withArguments: _withArgumentsSubtypeOfBaseIsNotBaseFinalOrSealed, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSubtypeOfBaseIsNotBaseFinalOrSealed = const Code( - "SubtypeOfBaseIsNotBaseFinalOrSealed", - analyzerCodes: ["SUBTYPE_OF_BASE_IS_NOT_BASE_FINAL_OR_SEALED"]); + "SubtypeOfBaseIsNotBaseFinalOrSealed", + analyzerCodes: ["SUBTYPE_OF_BASE_IS_NOT_BASE_FINAL_OR_SEALED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSubtypeOfBaseIsNotBaseFinalOrSealed( @@ -13333,35 +15650,38 @@ Message _withArgumentsSubtypeOfBaseIsNotBaseFinalOrSealed( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeSubtypeOfBaseIsNotBaseFinalOrSealed, - problemMessage: - """The type '${name}' must be 'base', 'final' or 'sealed' because the supertype '${name2}' is 'base'.""", - correctionMessage: """Try adding 'base', 'final', or 'sealed' to the type.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeSubtypeOfBaseIsNotBaseFinalOrSealed, + problemMessage: + """The type '${name}' must be 'base', 'final' or 'sealed' because the supertype '${name2}' is 'base'.""", + correctionMessage: + """Try adding 'base', 'final', or 'sealed' to the type.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateSubtypeOfFinalIsNotBaseFinalOrSealed = const Template< - Message Function(String name, String name2)>( - "SubtypeOfFinalIsNotBaseFinalOrSealed", - problemMessageTemplate: - r"""The type '#name' must be 'base', 'final' or 'sealed' because the supertype '#name2' is 'final'.""", - correctionMessageTemplate: - r"""Try adding 'base', 'final', or 'sealed' to the type.""", - withArguments: _withArgumentsSubtypeOfFinalIsNotBaseFinalOrSealed); +const Template + templateSubtypeOfFinalIsNotBaseFinalOrSealed = + const Template( + "SubtypeOfFinalIsNotBaseFinalOrSealed", + problemMessageTemplate: + r"""The type '#name' must be 'base', 'final' or 'sealed' because the supertype '#name2' is 'final'.""", + correctionMessageTemplate: + r"""Try adding 'base', 'final', or 'sealed' to the type.""", + withArguments: _withArgumentsSubtypeOfFinalIsNotBaseFinalOrSealed, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSubtypeOfFinalIsNotBaseFinalOrSealed = const Code( - "SubtypeOfFinalIsNotBaseFinalOrSealed", - analyzerCodes: [ - "SUBTYPE_OF_FINAL_IS_NOT_BASE_FINAL_OR_SEALED" - ]); + "SubtypeOfFinalIsNotBaseFinalOrSealed", + analyzerCodes: ["SUBTYPE_OF_FINAL_IS_NOT_BASE_FINAL_OR_SEALED"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSubtypeOfFinalIsNotBaseFinalOrSealed( @@ -13370,11 +15690,17 @@ Message _withArgumentsSubtypeOfFinalIsNotBaseFinalOrSealed( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeSubtypeOfFinalIsNotBaseFinalOrSealed, - problemMessage: - """The type '${name}' must be 'base', 'final' or 'sealed' because the supertype '${name2}' is 'final'.""", - correctionMessage: """Try adding 'base', 'final', or 'sealed' to the type.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeSubtypeOfFinalIsNotBaseFinalOrSealed, + problemMessage: + """The type '${name}' must be 'base', 'final' or 'sealed' because the supertype '${name2}' is 'final'.""", + correctionMessage: + """Try adding 'base', 'final', or 'sealed' to the type.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -13382,28 +15708,32 @@ const Code codeSuperAsExpression = messageSuperAsExpression; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSuperAsExpression = const MessageCode( - "SuperAsExpression", - analyzerCodes: ["SUPER_AS_EXPRESSION"], - problemMessage: r"""Can't use 'super' as an expression.""", - correctionMessage: - r"""To delegate a constructor to a super constructor, put the super call as an initializer."""); + "SuperAsExpression", + analyzerCodes: ["SUPER_AS_EXPRESSION"], + problemMessage: r"""Can't use 'super' as an expression.""", + correctionMessage: + r"""To delegate a constructor to a super constructor, put the super call as an initializer.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperAsIdentifier = messageSuperAsIdentifier; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSuperAsIdentifier = const MessageCode( - "SuperAsIdentifier", - analyzerCodes: ["SUPER_AS_EXPRESSION"], - problemMessage: r"""Expected identifier, but got 'super'."""); + "SuperAsIdentifier", + analyzerCodes: ["SUPER_AS_EXPRESSION"], + problemMessage: r"""Expected identifier, but got 'super'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSuperExtensionTypeIsIllegal = - const Template("SuperExtensionTypeIsIllegal", - problemMessageTemplate: - r"""The type '#name' can't be implemented by an extension type.""", - withArguments: _withArgumentsSuperExtensionTypeIsIllegal); + const Template( + "SuperExtensionTypeIsIllegal", + problemMessageTemplate: + r"""The type '#name' can't be implemented by an extension type.""", + withArguments: _withArgumentsSuperExtensionTypeIsIllegal, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperExtensionTypeIsIllegal = @@ -13415,21 +15745,25 @@ const Code codeSuperExtensionTypeIsIllegal = Message _withArgumentsSuperExtensionTypeIsIllegal(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSuperExtensionTypeIsIllegal, - problemMessage: - """The type '${name}' can't be implemented by an extension type.""", - arguments: {'name': name}); + return new Message( + codeSuperExtensionTypeIsIllegal, + problemMessage: + """The type '${name}' can't be implemented by an extension type.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateSuperExtensionTypeIsTypeVariable = const Template< - Message Function(String name)>("SuperExtensionTypeIsTypeVariable", - problemMessageTemplate: - r"""The type variable '#name' can't be implemented by an extension type.""", - withArguments: _withArgumentsSuperExtensionTypeIsTypeVariable); +const Template + templateSuperExtensionTypeIsTypeVariable = + const Template( + "SuperExtensionTypeIsTypeVariable", + problemMessageTemplate: + r"""The type variable '#name' can't be implemented by an extension type.""", + withArguments: _withArgumentsSuperExtensionTypeIsTypeVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperExtensionTypeIsTypeVariable = @@ -13441,10 +15775,14 @@ const Code codeSuperExtensionTypeIsTypeVariable = Message _withArgumentsSuperExtensionTypeIsTypeVariable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSuperExtensionTypeIsTypeVariable, - problemMessage: - """The type variable '${name}' can't be implemented by an extension type.""", - arguments: {'name': name}); + return new Message( + codeSuperExtensionTypeIsTypeVariable, + problemMessage: + """The type variable '${name}' can't be implemented by an extension type.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -13452,9 +15790,10 @@ const Code codeSuperInitializerNotLast = messageSuperInitializerNotLast; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSuperInitializerNotLast = const MessageCode( - "SuperInitializerNotLast", - analyzerCodes: ["SUPER_INVOCATION_NOT_LAST"], - problemMessage: r"""Can't have initializers after 'super'."""); + "SuperInitializerNotLast", + analyzerCodes: ["SUPER_INVOCATION_NOT_LAST"], + problemMessage: r"""Can't have initializers after 'super'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperInitializerParameter = @@ -13462,19 +15801,22 @@ const Code codeSuperInitializerParameter = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSuperInitializerParameter = const MessageCode( - "SuperInitializerParameter", - severity: Severity.context, - problemMessage: r"""This is the super-initializer parameter."""); + "SuperInitializerParameter", + severity: Severity.context, + problemMessage: r"""This is the super-initializer parameter.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperNullAware = messageSuperNullAware; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", - index: 18, - problemMessage: - r"""The operator '?.' cannot be used with 'super' because 'super' cannot be null.""", - correctionMessage: r"""Try replacing '?.' with '.'"""); +const MessageCode messageSuperNullAware = const MessageCode( + "SuperNullAware", + index: 18, + problemMessage: + r"""The operator '?.' cannot be used with 'super' because 'super' cannot be null.""", + correctionMessage: r"""Try replacing '?.' with '.'""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperParameterInitializerOutsideConstructor = @@ -13482,152 +15824,198 @@ const Code codeSuperParameterInitializerOutsideConstructor = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSuperParameterInitializerOutsideConstructor = - const MessageCode("SuperParameterInitializerOutsideConstructor", - problemMessage: - r"""Super-initializer formal parameters can only be used in generative constructors.""", - correctionMessage: r"""Try removing 'super.'."""); + const MessageCode( + "SuperParameterInitializerOutsideConstructor", + problemMessage: + r"""Super-initializer formal parameters can only be used in generative constructors.""", + correctionMessage: r"""Try removing 'super.'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSuperclassHasNoConstructor = - const Template("SuperclassHasNoConstructor", - problemMessageTemplate: - r"""Superclass has no constructor named '#name'.""", - withArguments: _withArgumentsSuperclassHasNoConstructor); + const Template( + "SuperclassHasNoConstructor", + problemMessageTemplate: r"""Superclass has no constructor named '#name'.""", + withArguments: _withArgumentsSuperclassHasNoConstructor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperclassHasNoConstructor = - const Code("SuperclassHasNoConstructor", - analyzerCodes: [ - "UNDEFINED_CONSTRUCTOR_IN_INITIALIZER", - "UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT" - ]); + const Code( + "SuperclassHasNoConstructor", + analyzerCodes: [ + "UNDEFINED_CONSTRUCTOR_IN_INITIALIZER", + "UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT" + ], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSuperclassHasNoConstructor(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSuperclassHasNoConstructor, - problemMessage: """Superclass has no constructor named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeSuperclassHasNoConstructor, + problemMessage: """Superclass has no constructor named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateSuperclassHasNoDefaultConstructor = const Template< - Message Function(String name)>("SuperclassHasNoDefaultConstructor", - problemMessageTemplate: - r"""The superclass, '#name', has no unnamed constructor that takes no arguments.""", - withArguments: _withArgumentsSuperclassHasNoDefaultConstructor); +const Template + templateSuperclassHasNoDefaultConstructor = + const Template( + "SuperclassHasNoDefaultConstructor", + problemMessageTemplate: + r"""The superclass, '#name', has no unnamed constructor that takes no arguments.""", + withArguments: _withArgumentsSuperclassHasNoDefaultConstructor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperclassHasNoDefaultConstructor = const Code( - "SuperclassHasNoDefaultConstructor", - analyzerCodes: ["NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT"]); + "SuperclassHasNoDefaultConstructor", + analyzerCodes: ["NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSuperclassHasNoDefaultConstructor(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSuperclassHasNoDefaultConstructor, - problemMessage: - """The superclass, '${name}', has no unnamed constructor that takes no arguments.""", - arguments: {'name': name}); + return new Message( + codeSuperclassHasNoDefaultConstructor, + problemMessage: + """The superclass, '${name}', has no unnamed constructor that takes no arguments.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSuperclassHasNoGetter = - const Template("SuperclassHasNoGetter", - problemMessageTemplate: r"""Superclass has no getter named '#name'.""", - withArguments: _withArgumentsSuperclassHasNoGetter); + const Template( + "SuperclassHasNoGetter", + problemMessageTemplate: r"""Superclass has no getter named '#name'.""", + withArguments: _withArgumentsSuperclassHasNoGetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperclassHasNoGetter = - const Code("SuperclassHasNoGetter", - analyzerCodes: ["UNDEFINED_SUPER_GETTER"]); + const Code( + "SuperclassHasNoGetter", + analyzerCodes: ["UNDEFINED_SUPER_GETTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSuperclassHasNoGetter(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSuperclassHasNoGetter, - problemMessage: """Superclass has no getter named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeSuperclassHasNoGetter, + problemMessage: """Superclass has no getter named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSuperclassHasNoMember = - const Template("SuperclassHasNoMember", - problemMessageTemplate: r"""Superclass has no member named '#name'.""", - withArguments: _withArgumentsSuperclassHasNoMember); + const Template( + "SuperclassHasNoMember", + problemMessageTemplate: r"""Superclass has no member named '#name'.""", + withArguments: _withArgumentsSuperclassHasNoMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperclassHasNoMember = - const Code("SuperclassHasNoMember", - analyzerCodes: ["UNDEFINED_SUPER_GETTER"]); + const Code( + "SuperclassHasNoMember", + analyzerCodes: ["UNDEFINED_SUPER_GETTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSuperclassHasNoMember(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSuperclassHasNoMember, - problemMessage: """Superclass has no member named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeSuperclassHasNoMember, + problemMessage: """Superclass has no member named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSuperclassHasNoMethod = - const Template("SuperclassHasNoMethod", - problemMessageTemplate: r"""Superclass has no method named '#name'.""", - withArguments: _withArgumentsSuperclassHasNoMethod); + const Template( + "SuperclassHasNoMethod", + problemMessageTemplate: r"""Superclass has no method named '#name'.""", + withArguments: _withArgumentsSuperclassHasNoMethod, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperclassHasNoMethod = - const Code("SuperclassHasNoMethod", - analyzerCodes: ["UNDEFINED_SUPER_METHOD"]); + const Code( + "SuperclassHasNoMethod", + analyzerCodes: ["UNDEFINED_SUPER_METHOD"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSuperclassHasNoMethod(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSuperclassHasNoMethod, - problemMessage: """Superclass has no method named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeSuperclassHasNoMethod, + problemMessage: """Superclass has no method named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSuperclassHasNoSetter = - const Template("SuperclassHasNoSetter", - problemMessageTemplate: r"""Superclass has no setter named '#name'.""", - withArguments: _withArgumentsSuperclassHasNoSetter); + const Template( + "SuperclassHasNoSetter", + problemMessageTemplate: r"""Superclass has no setter named '#name'.""", + withArguments: _withArgumentsSuperclassHasNoSetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperclassHasNoSetter = - const Code("SuperclassHasNoSetter", - analyzerCodes: ["UNDEFINED_SUPER_SETTER"]); + const Code( + "SuperclassHasNoSetter", + analyzerCodes: ["UNDEFINED_SUPER_SETTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSuperclassHasNoSetter(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSuperclassHasNoSetter, - problemMessage: """Superclass has no setter named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeSuperclassHasNoSetter, + problemMessage: """Superclass has no setter named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateSuperclassMethodArgumentMismatch = const Template< - Message Function(String name)>("SuperclassMethodArgumentMismatch", - problemMessageTemplate: - r"""Superclass doesn't have a method named '#name' with matching arguments.""", - withArguments: _withArgumentsSuperclassMethodArgumentMismatch); +const Template + templateSuperclassMethodArgumentMismatch = + const Template( + "SuperclassMethodArgumentMismatch", + problemMessageTemplate: + r"""Superclass doesn't have a method named '#name' with matching arguments.""", + withArguments: _withArgumentsSuperclassMethodArgumentMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSuperclassMethodArgumentMismatch = @@ -13639,10 +16027,14 @@ const Code codeSuperclassMethodArgumentMismatch = Message _withArgumentsSuperclassMethodArgumentMismatch(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSuperclassMethodArgumentMismatch, - problemMessage: - """Superclass doesn't have a method named '${name}' with matching arguments.""", - arguments: {'name': name}); + return new Message( + codeSuperclassMethodArgumentMismatch, + problemMessage: + """Superclass doesn't have a method named '${name}' with matching arguments.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -13650,50 +16042,66 @@ const Code codeSupertypeIsFunction = messageSupertypeIsFunction; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSupertypeIsFunction = const MessageCode( - "SupertypeIsFunction", - problemMessage: r"""Can't use a function type as supertype."""); + "SupertypeIsFunction", + problemMessage: r"""Can't use a function type as supertype.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSupertypeIsIllegal = - const Template("SupertypeIsIllegal", - problemMessageTemplate: - r"""The type '#name' can't be used as supertype.""", - withArguments: _withArgumentsSupertypeIsIllegal); + const Template( + "SupertypeIsIllegal", + problemMessageTemplate: r"""The type '#name' can't be used as supertype.""", + withArguments: _withArgumentsSupertypeIsIllegal, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSupertypeIsIllegal = - const Code("SupertypeIsIllegal", - analyzerCodes: ["EXTENDS_NON_CLASS"]); + const Code( + "SupertypeIsIllegal", + analyzerCodes: ["EXTENDS_NON_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSupertypeIsIllegal(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSupertypeIsIllegal, - problemMessage: """The type '${name}' can't be used as supertype.""", - arguments: {'name': name}); + return new Message( + codeSupertypeIsIllegal, + problemMessage: """The type '${name}' can't be used as supertype.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSupertypeIsTypeVariable = - const Template("SupertypeIsTypeVariable", - problemMessageTemplate: - r"""The type variable '#name' can't be used as supertype.""", - withArguments: _withArgumentsSupertypeIsTypeVariable); + const Template( + "SupertypeIsTypeVariable", + problemMessageTemplate: + r"""The type variable '#name' can't be used as supertype.""", + withArguments: _withArgumentsSupertypeIsTypeVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSupertypeIsTypeVariable = - const Code("SupertypeIsTypeVariable", - analyzerCodes: ["EXTENDS_NON_CLASS"]); + const Code( + "SupertypeIsTypeVariable", + analyzerCodes: ["EXTENDS_NON_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSupertypeIsTypeVariable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeSupertypeIsTypeVariable, - problemMessage: - """The type variable '${name}' can't be used as supertype.""", - arguments: {'name': name}); + return new Message( + codeSupertypeIsTypeVariable, + problemMessage: + """The type variable '${name}' can't be used as supertype.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -13701,9 +16109,10 @@ const Code codeSwitchCaseFallThrough = messageSwitchCaseFallThrough; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSwitchCaseFallThrough = const MessageCode( - "SwitchCaseFallThrough", - analyzerCodes: ["CASE_BLOCK_NOT_TERMINATED"], - problemMessage: r"""Switch case may fall through to the next case."""); + "SwitchCaseFallThrough", + analyzerCodes: ["CASE_BLOCK_NOT_TERMINATED"], + problemMessage: r"""Switch case may fall through to the next case.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSwitchExpressionNotAssignableCause = @@ -13711,9 +16120,10 @@ const Code codeSwitchExpressionNotAssignableCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSwitchExpressionNotAssignableCause = const MessageCode( - "SwitchExpressionNotAssignableCause", - severity: Severity.context, - problemMessage: r"""The switch expression is here."""); + "SwitchExpressionNotAssignableCause", + severity: Severity.context, + problemMessage: r"""The switch expression is here.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSwitchHasCaseAfterDefault = @@ -13721,12 +16131,13 @@ const Code codeSwitchHasCaseAfterDefault = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSwitchHasCaseAfterDefault = const MessageCode( - "SwitchHasCaseAfterDefault", - index: 16, - problemMessage: - r"""The default case should be the last case in a switch statement.""", - correctionMessage: - r"""Try moving the default case after the other case clauses."""); + "SwitchHasCaseAfterDefault", + index: 16, + problemMessage: + r"""The default case should be the last case in a switch statement.""", + correctionMessage: + r"""Try moving the default case after the other case clauses.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSwitchHasMultipleDefaults = @@ -13734,40 +16145,50 @@ const Code codeSwitchHasMultipleDefaults = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageSwitchHasMultipleDefaults = const MessageCode( - "SwitchHasMultipleDefaults", - index: 15, - problemMessage: r"""The 'default' case can only be declared once.""", - correctionMessage: r"""Try removing all but one default case."""); + "SwitchHasMultipleDefaults", + index: 15, + problemMessage: r"""The 'default' case can only be declared once.""", + correctionMessage: r"""Try removing all but one default case.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeSyntheticToken = messageSyntheticToken; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageSyntheticToken = const MessageCode("SyntheticToken", - problemMessage: r"""This couldn't be parsed."""); +const MessageCode messageSyntheticToken = const MessageCode( + "SyntheticToken", + problemMessage: r"""This couldn't be parsed.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateThisAccessInFieldInitializer = const Template( - "ThisAccessInFieldInitializer", - problemMessageTemplate: - r"""Can't access 'this' in a field initializer to read '#name'.""", - withArguments: _withArgumentsThisAccessInFieldInitializer); + "ThisAccessInFieldInitializer", + problemMessageTemplate: + r"""Can't access 'this' in a field initializer to read '#name'.""", + withArguments: _withArgumentsThisAccessInFieldInitializer, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeThisAccessInFieldInitializer = - const Code("ThisAccessInFieldInitializer", - analyzerCodes: ["THIS_ACCESS_FROM_FIELD_INITIALIZER"]); + const Code( + "ThisAccessInFieldInitializer", + analyzerCodes: ["THIS_ACCESS_FROM_FIELD_INITIALIZER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsThisAccessInFieldInitializer(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeThisAccessInFieldInitializer, - problemMessage: - """Can't access 'this' in a field initializer to read '${name}'.""", - arguments: {'name': name}); + return new Message( + codeThisAccessInFieldInitializer, + problemMessage: + """Can't access 'this' in a field initializer to read '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -13775,26 +16196,30 @@ const Code codeThisAsIdentifier = messageThisAsIdentifier; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageThisAsIdentifier = const MessageCode( - "ThisAsIdentifier", - analyzerCodes: ["INVALID_REFERENCE_TO_THIS"], - problemMessage: r"""Expected identifier, but got 'this'."""); + "ThisAsIdentifier", + analyzerCodes: ["INVALID_REFERENCE_TO_THIS"], + problemMessage: r"""Expected identifier, but got 'this'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeThisInNullAwareReceiver = messageThisInNullAwareReceiver; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageThisInNullAwareReceiver = const MessageCode( - "ThisInNullAwareReceiver", - severity: Severity.warning, - problemMessage: r"""The receiver 'this' cannot be null.""", - correctionMessage: r"""Try replacing '?.' with '.'"""); + "ThisInNullAwareReceiver", + severity: Severity.warning, + problemMessage: r"""The receiver 'this' cannot be null.""", + correctionMessage: r"""Try replacing '?.' with '.'""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateThisNotPromoted = - const Template("ThisNotPromoted", - problemMessageTemplate: r"""'this' can't be promoted.""", - correctionMessageTemplate: r"""See #string""", - withArguments: _withArgumentsThisNotPromoted); + const Template( + "ThisNotPromoted", + problemMessageTemplate: r"""'this' can't be promoted.""", + correctionMessageTemplate: r"""See #string""", + withArguments: _withArgumentsThisNotPromoted, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeThisNotPromoted = @@ -13805,85 +16230,106 @@ const Code codeThisNotPromoted = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsThisNotPromoted(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeThisNotPromoted, - problemMessage: """'this' can't be promoted.""", - correctionMessage: """See ${string}""", - arguments: {'string': string}); + return new Message( + codeThisNotPromoted, + problemMessage: """'this' can't be promoted.""", + correctionMessage: """See ${string}""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateThisOrSuperAccessInFieldInitializer = const Template( - "ThisOrSuperAccessInFieldInitializer", - problemMessageTemplate: - r"""Can't access '#string' in a field initializer.""", - withArguments: _withArgumentsThisOrSuperAccessInFieldInitializer); + "ThisOrSuperAccessInFieldInitializer", + problemMessageTemplate: r"""Can't access '#string' in a field initializer.""", + withArguments: _withArgumentsThisOrSuperAccessInFieldInitializer, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeThisOrSuperAccessInFieldInitializer = const Code( - "ThisOrSuperAccessInFieldInitializer", - analyzerCodes: ["THIS_ACCESS_FROM_INITIALIZER"]); + "ThisOrSuperAccessInFieldInitializer", + analyzerCodes: ["THIS_ACCESS_FROM_INITIALIZER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsThisOrSuperAccessInFieldInitializer(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeThisOrSuperAccessInFieldInitializer, - problemMessage: """Can't access '${string}' in a field initializer.""", - arguments: {'string': string}); + return new Message( + codeThisOrSuperAccessInFieldInitializer, + problemMessage: """Can't access '${string}' in a field initializer.""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - int count, - int - count2)> templateTooFewArguments = const Template< - Message Function(int count, int count2)>("TooFewArguments", - problemMessageTemplate: - r"""Too few positional arguments: #count required, #count2 given.""", - withArguments: _withArgumentsTooFewArguments); +const Template + templateTooFewArguments = + const Template( + "TooFewArguments", + problemMessageTemplate: + r"""Too few positional arguments: #count required, #count2 given.""", + withArguments: _withArgumentsTooFewArguments, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTooFewArguments = - const Code("TooFewArguments", - analyzerCodes: ["NOT_ENOUGH_REQUIRED_ARGUMENTS"]); + const Code( + "TooFewArguments", + analyzerCodes: ["NOT_ENOUGH_REQUIRED_ARGUMENTS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsTooFewArguments(int count, int count2) { - return new Message(codeTooFewArguments, - problemMessage: - """Too few positional arguments: ${count} required, ${count2} given.""", - arguments: {'count': count, 'count2': count2}); + return new Message( + codeTooFewArguments, + problemMessage: + """Too few positional arguments: ${count} required, ${count2} given.""", + arguments: { + 'count': count, + 'count2': count2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - int count, - int - count2)> templateTooManyArguments = const Template< - Message Function(int count, int count2)>("TooManyArguments", - problemMessageTemplate: - r"""Too many positional arguments: #count allowed, but #count2 found.""", - correctionMessageTemplate: - r"""Try removing the extra positional arguments.""", - withArguments: _withArgumentsTooManyArguments); +const Template + templateTooManyArguments = + const Template( + "TooManyArguments", + problemMessageTemplate: + r"""Too many positional arguments: #count allowed, but #count2 found.""", + correctionMessageTemplate: + r"""Try removing the extra positional arguments.""", + withArguments: _withArgumentsTooManyArguments, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTooManyArguments = - const Code("TooManyArguments", - analyzerCodes: ["EXTRA_POSITIONAL_ARGUMENTS"]); + const Code( + "TooManyArguments", + analyzerCodes: ["EXTRA_POSITIONAL_ARGUMENTS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsTooManyArguments(int count, int count2) { - return new Message(codeTooManyArguments, - problemMessage: - """Too many positional arguments: ${count} allowed, but ${count2} found.""", - correctionMessage: """Try removing the extra positional arguments.""", - arguments: {'count': count, 'count2': count2}); + return new Message( + codeTooManyArguments, + problemMessage: + """Too many positional arguments: ${count} allowed, but ${count2} found.""", + correctionMessage: """Try removing the extra positional arguments.""", + arguments: { + 'count': count, + 'count2': count2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -13891,63 +16337,82 @@ const Code codeTopLevelOperator = messageTopLevelOperator; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTopLevelOperator = const MessageCode( - "TopLevelOperator", - index: 14, - problemMessage: r"""Operators must be declared within a class.""", - correctionMessage: - r"""Try removing the operator, moving it to a class, or converting it to be a function."""); + "TopLevelOperator", + index: 14, + problemMessage: r"""Operators must be declared within a class.""", + correctionMessage: + r"""Try removing the operator, moving it to a class, or converting it to be a function.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypeAfterVar = messageTypeAfterVar; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageTypeAfterVar = const MessageCode("TypeAfterVar", - index: 89, - problemMessage: - r"""Variables can't be declared using both 'var' and a type name.""", - correctionMessage: r"""Try removing 'var.'"""); +const MessageCode messageTypeAfterVar = const MessageCode( + "TypeAfterVar", + index: 89, + problemMessage: + r"""Variables can't be declared using both 'var' and a type name.""", + correctionMessage: r"""Try removing 'var.'""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateTypeArgumentMismatch = - const Template("TypeArgumentMismatch", - problemMessageTemplate: r"""Expected #count type arguments.""", - withArguments: _withArgumentsTypeArgumentMismatch); + const Template( + "TypeArgumentMismatch", + problemMessageTemplate: r"""Expected #count type arguments.""", + withArguments: _withArgumentsTypeArgumentMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypeArgumentMismatch = - const Code("TypeArgumentMismatch", - analyzerCodes: ["WRONG_NUMBER_OF_TYPE_ARGUMENTS"]); + const Code( + "TypeArgumentMismatch", + analyzerCodes: ["WRONG_NUMBER_OF_TYPE_ARGUMENTS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsTypeArgumentMismatch(int count) { - return new Message(codeTypeArgumentMismatch, - problemMessage: """Expected ${count} type arguments.""", - arguments: {'count': count}); + return new Message( + codeTypeArgumentMismatch, + problemMessage: """Expected ${count} type arguments.""", + arguments: { + 'count': count, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateTypeArgumentsOnTypeVariable = - const Template("TypeArgumentsOnTypeVariable", - problemMessageTemplate: - r"""Can't use type arguments with type variable '#name'.""", - correctionMessageTemplate: r"""Try removing the type arguments.""", - withArguments: _withArgumentsTypeArgumentsOnTypeVariable); + const Template( + "TypeArgumentsOnTypeVariable", + problemMessageTemplate: + r"""Can't use type arguments with type variable '#name'.""", + correctionMessageTemplate: r"""Try removing the type arguments.""", + withArguments: _withArgumentsTypeArgumentsOnTypeVariable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypeArgumentsOnTypeVariable = - const Code("TypeArgumentsOnTypeVariable", - index: 13); + const Code( + "TypeArgumentsOnTypeVariable", + index: 13, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsTypeArgumentsOnTypeVariable(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeTypeArgumentsOnTypeVariable, - problemMessage: - """Can't use type arguments with type variable '${name}'.""", - correctionMessage: """Try removing the type arguments.""", - arguments: {'name': name}); + return new Message( + codeTypeArgumentsOnTypeVariable, + problemMessage: + """Can't use type arguments with type variable '${name}'.""", + correctionMessage: """Try removing the type arguments.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -13955,37 +16420,47 @@ const Code codeTypeBeforeFactory = messageTypeBeforeFactory; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypeBeforeFactory = const MessageCode( - "TypeBeforeFactory", - index: 57, - problemMessage: r"""Factory constructors cannot have a return type.""", - correctionMessage: - r"""Try removing the type appearing before 'factory'."""); + "TypeBeforeFactory", + index: 57, + problemMessage: r"""Factory constructors cannot have a return type.""", + correctionMessage: r"""Try removing the type appearing before 'factory'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateTypeNotFound = - const Template("TypeNotFound", - problemMessageTemplate: r"""Type '#name' not found.""", - withArguments: _withArgumentsTypeNotFound); + const Template( + "TypeNotFound", + problemMessageTemplate: r"""Type '#name' not found.""", + withArguments: _withArgumentsTypeNotFound, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypeNotFound = - const Code("TypeNotFound", - analyzerCodes: ["UNDEFINED_CLASS"]); + const Code( + "TypeNotFound", + analyzerCodes: ["UNDEFINED_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsTypeNotFound(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeTypeNotFound, - problemMessage: """Type '${name}' not found.""", - arguments: {'name': name}); + return new Message( + codeTypeNotFound, + problemMessage: """Type '${name}' not found.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateTypeOrigin = - const Template("TypeOrigin", - problemMessageTemplate: r"""'#name' is from '#uri'.""", - withArguments: _withArgumentsTypeOrigin); + const Template( + "TypeOrigin", + problemMessageTemplate: r"""'#name' is from '#uri'.""", + withArguments: _withArgumentsTypeOrigin, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypeOrigin = @@ -13998,18 +16473,24 @@ Message _withArgumentsTypeOrigin(String name, Uri uri_) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); String? uri = relativizeUri(uri_); - return new Message(codeTypeOrigin, - problemMessage: """'${name}' is from '${uri}'.""", - arguments: {'name': name, 'uri': uri_}); + return new Message( + codeTypeOrigin, + problemMessage: """'${name}' is from '${uri}'.""", + arguments: { + 'name': name, + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateTypeOriginWithFileUri = const Template( - "TypeOriginWithFileUri", - problemMessageTemplate: r"""'#name' is from '#uri' ('#uri2').""", - withArguments: _withArgumentsTypeOriginWithFileUri); + "TypeOriginWithFileUri", + problemMessageTemplate: r"""'#name' is from '#uri' ('#uri2').""", + withArguments: _withArgumentsTypeOriginWithFileUri, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -14024,9 +16505,15 @@ Message _withArgumentsTypeOriginWithFileUri(String name, Uri uri_, Uri uri2_) { name = demangleMixinApplicationName(name); String? uri = relativizeUri(uri_); String? uri2 = relativizeUri(uri2_); - return new Message(codeTypeOriginWithFileUri, - problemMessage: """'${name}' is from '${uri}' ('${uri2}').""", - arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); + return new Message( + codeTypeOriginWithFileUri, + problemMessage: """'${name}' is from '${uri}' ('${uri2}').""", + arguments: { + 'name': name, + 'uri': uri_, + 'uri2': uri2_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14035,31 +16522,38 @@ const Code codeTypeVariableDuplicatedName = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypeVariableDuplicatedName = const MessageCode( - "TypeVariableDuplicatedName", - analyzerCodes: ["DUPLICATE_DEFINITION"], - problemMessage: - r"""A type variable can't have the same name as another."""); + "TypeVariableDuplicatedName", + analyzerCodes: ["DUPLICATE_DEFINITION"], + problemMessage: r"""A type variable can't have the same name as another.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateTypeVariableDuplicatedNameCause = const Template( - "TypeVariableDuplicatedNameCause", - problemMessageTemplate: r"""The other type variable named '#name'.""", - withArguments: _withArgumentsTypeVariableDuplicatedNameCause); + "TypeVariableDuplicatedNameCause", + problemMessageTemplate: r"""The other type variable named '#name'.""", + withArguments: _withArgumentsTypeVariableDuplicatedNameCause, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypeVariableDuplicatedNameCause = - const Code("TypeVariableDuplicatedNameCause", - severity: Severity.context); + const Code( + "TypeVariableDuplicatedNameCause", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsTypeVariableDuplicatedNameCause(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeTypeVariableDuplicatedNameCause, - problemMessage: """The other type variable named '${name}'.""", - arguments: {'name': name}); + return new Message( + codeTypeVariableDuplicatedNameCause, + problemMessage: """The other type variable named '${name}'.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14068,9 +16562,10 @@ const Code codeTypeVariableInConstantContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypeVariableInConstantContext = const MessageCode( - "TypeVariableInConstantContext", - analyzerCodes: ["TYPE_PARAMETER_IN_CONST_EXPRESSION"], - problemMessage: r"""Type variables can't be used as constants."""); + "TypeVariableInConstantContext", + analyzerCodes: ["TYPE_PARAMETER_IN_CONST_EXPRESSION"], + problemMessage: r"""Type variables can't be used as constants.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypeVariableInStaticContext = @@ -14078,9 +16573,10 @@ const Code codeTypeVariableInStaticContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypeVariableInStaticContext = const MessageCode( - "TypeVariableInStaticContext", - analyzerCodes: ["TYPE_PARAMETER_REFERENCED_BY_STATIC"], - problemMessage: r"""Type variables can't be used in static members."""); + "TypeVariableInStaticContext", + analyzerCodes: ["TYPE_PARAMETER_REFERENCED_BY_STATIC"], + problemMessage: r"""Type variables can't be used in static members.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypeVariableSameNameAsEnclosing = @@ -14088,52 +16584,61 @@ const Code codeTypeVariableSameNameAsEnclosing = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypeVariableSameNameAsEnclosing = const MessageCode( - "TypeVariableSameNameAsEnclosing", - analyzerCodes: ["CONFLICTING_TYPE_VARIABLE_AND_CLASS"], - problemMessage: - r"""A type variable can't have the same name as its enclosing declaration."""); + "TypeVariableSameNameAsEnclosing", + analyzerCodes: ["CONFLICTING_TYPE_VARIABLE_AND_CLASS"], + problemMessage: + r"""A type variable can't have the same name as its enclosing declaration.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypedefCause = messageTypedefCause; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageTypedefCause = const MessageCode("TypedefCause", - severity: Severity.context, - problemMessage: r"""The issue arises via this type alias."""); +const MessageCode messageTypedefCause = const MessageCode( + "TypedefCause", + severity: Severity.context, + problemMessage: r"""The issue arises via this type alias.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypedefInClass = messageTypedefInClass; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageTypedefInClass = const MessageCode("TypedefInClass", - index: 7, - problemMessage: r"""Typedefs can't be declared inside classes.""", - correctionMessage: r"""Try moving the typedef to the top-level."""); +const MessageCode messageTypedefInClass = const MessageCode( + "TypedefInClass", + index: 7, + problemMessage: r"""Typedefs can't be declared inside classes.""", + correctionMessage: r"""Try moving the typedef to the top-level.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypedefNotFunction = messageTypedefNotFunction; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypedefNotFunction = const MessageCode( - "TypedefNotFunction", - analyzerCodes: ["INVALID_GENERIC_FUNCTION_TYPE"], - problemMessage: r"""Can't create typedef from non-function type."""); + "TypedefNotFunction", + analyzerCodes: ["INVALID_GENERIC_FUNCTION_TYPE"], + problemMessage: r"""Can't create typedef from non-function type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypedefNotType = messageTypedefNotType; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageTypedefNotType = const MessageCode("TypedefNotType", - analyzerCodes: ["INVALID_TYPE_IN_TYPEDEF"], - problemMessage: r"""Can't create typedef from non-type."""); +const MessageCode messageTypedefNotType = const MessageCode( + "TypedefNotType", + analyzerCodes: ["INVALID_TYPE_IN_TYPEDEF"], + problemMessage: r"""Can't create typedef from non-type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypedefNullableType = messageTypedefNullableType; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypedefNullableType = const MessageCode( - "TypedefNullableType", - problemMessage: r"""Can't create typedef from nullable type."""); + "TypedefNullableType", + problemMessage: r"""Can't create typedef from nullable type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypedefTypeVariableNotConstructor = @@ -14141,9 +16646,10 @@ const Code codeTypedefTypeVariableNotConstructor = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypedefTypeVariableNotConstructor = const MessageCode( - "TypedefTypeVariableNotConstructor", - problemMessage: - r"""Can't use a typedef denoting a type variable as a constructor, nor for a static member access."""); + "TypedefTypeVariableNotConstructor", + problemMessage: + r"""Can't use a typedef denoting a type variable as a constructor, nor for a static member access.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypedefTypeVariableNotConstructorCause = @@ -14151,9 +16657,11 @@ const Code codeTypedefTypeVariableNotConstructorCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypedefTypeVariableNotConstructorCause = - const MessageCode("TypedefTypeVariableNotConstructorCause", - severity: Severity.context, - problemMessage: r"""This is the type variable ultimately denoted."""); + const MessageCode( + "TypedefTypeVariableNotConstructorCause", + severity: Severity.context, + problemMessage: r"""This is the type variable ultimately denoted.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeTypedefUnaliasedTypeCause = @@ -14161,29 +16669,38 @@ const Code codeTypedefUnaliasedTypeCause = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageTypedefUnaliasedTypeCause = const MessageCode( - "TypedefUnaliasedTypeCause", - severity: Severity.context, - problemMessage: r"""This is the type denoted by the type alias."""); + "TypedefUnaliasedTypeCause", + severity: Severity.context, + problemMessage: r"""This is the type denoted by the type alias.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateUnavailableDartLibrary = - const Template("UnavailableDartLibrary", - problemMessageTemplate: - r"""Dart library '#uri' is not available on this platform.""", - withArguments: _withArgumentsUnavailableDartLibrary); + const Template( + "UnavailableDartLibrary", + problemMessageTemplate: + r"""Dart library '#uri' is not available on this platform.""", + withArguments: _withArgumentsUnavailableDartLibrary, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnavailableDartLibrary = - const Code("UnavailableDartLibrary", - analyzerCodes: ["URI_DOES_NOT_EXIST"]); + const Code( + "UnavailableDartLibrary", + analyzerCodes: ["URI_DOES_NOT_EXIST"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUnavailableDartLibrary(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codeUnavailableDartLibrary, - problemMessage: - """Dart library '${uri}' is not available on this platform.""", - arguments: {'uri': uri_}); + return new Message( + codeUnavailableDartLibrary, + problemMessage: + """Dart library '${uri}' is not available on this platform.""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14191,53 +16708,68 @@ const Code codeUnexpectedDollarInString = messageUnexpectedDollarInString; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnexpectedDollarInString = const MessageCode( - "UnexpectedDollarInString", - analyzerCodes: ["UNEXPECTED_DOLLAR_IN_STRING"], - problemMessage: - r"""A '$' has special meaning inside a string, and must be followed by an identifier or an expression in curly braces ({}).""", - correctionMessage: r"""Try adding a backslash (\) to escape the '$'."""); + "UnexpectedDollarInString", + analyzerCodes: ["UNEXPECTED_DOLLAR_IN_STRING"], + problemMessage: + r"""A '$' has special meaning inside a string, and must be followed by an identifier or an expression in curly braces ({}).""", + correctionMessage: r"""Try adding a backslash (\) to escape the '$'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - Token - token)> templateUnexpectedModifierInNonNnbd = const Template< - Message Function(Token token)>("UnexpectedModifierInNonNnbd", - problemMessageTemplate: - r"""The modifier '#lexeme' is only available in null safe libraries.""", - withArguments: _withArgumentsUnexpectedModifierInNonNnbd); +const Template + templateUnexpectedModifierInNonNnbd = + const Template( + "UnexpectedModifierInNonNnbd", + problemMessageTemplate: + r"""The modifier '#lexeme' is only available in null safe libraries.""", + withArguments: _withArgumentsUnexpectedModifierInNonNnbd, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnexpectedModifierInNonNnbd = - const Code("UnexpectedModifierInNonNnbd", - analyzerCodes: ["UNEXPECTED_TOKEN"]); + const Code( + "UnexpectedModifierInNonNnbd", + analyzerCodes: ["UNEXPECTED_TOKEN"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUnexpectedModifierInNonNnbd(Token token) { String lexeme = token.lexeme; - return new Message(codeUnexpectedModifierInNonNnbd, - problemMessage: - """The modifier '${lexeme}' is only available in null safe libraries.""", - arguments: {'lexeme': token}); + return new Message( + codeUnexpectedModifierInNonNnbd, + problemMessage: + """The modifier '${lexeme}' is only available in null safe libraries.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateUnexpectedToken = - const Template("UnexpectedToken", - problemMessageTemplate: r"""Unexpected token '#lexeme'.""", - withArguments: _withArgumentsUnexpectedToken); + const Template( + "UnexpectedToken", + problemMessageTemplate: r"""Unexpected token '#lexeme'.""", + withArguments: _withArgumentsUnexpectedToken, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnexpectedToken = - const Code("UnexpectedToken", - analyzerCodes: ["UNEXPECTED_TOKEN"]); + const Code( + "UnexpectedToken", + analyzerCodes: ["UNEXPECTED_TOKEN"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUnexpectedToken(Token token) { String lexeme = token.lexeme; - return new Message(codeUnexpectedToken, - problemMessage: """Unexpected token '${lexeme}'.""", - arguments: {'lexeme': token}); + return new Message( + codeUnexpectedToken, + problemMessage: """Unexpected token '${lexeme}'.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14245,19 +16777,20 @@ const Code codeUnexpectedTokens = messageUnexpectedTokens; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnexpectedTokens = const MessageCode( - "UnexpectedTokens", - index: 123, - problemMessage: r"""Unexpected tokens."""); + "UnexpectedTokens", + index: 123, + problemMessage: r"""Unexpected tokens.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnhandledMacroApplication = const Template< - Message Function(String name)>("UnhandledMacroApplication", - problemMessageTemplate: - r"""This macro application didn't apply correctly due to an unhandled #name.""", - withArguments: _withArgumentsUnhandledMacroApplication); +const Template + templateUnhandledMacroApplication = + const Template( + "UnhandledMacroApplication", + problemMessageTemplate: + r"""This macro application didn't apply correctly due to an unhandled #name.""", + withArguments: _withArgumentsUnhandledMacroApplication, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnhandledMacroApplication = @@ -14269,23 +16802,27 @@ const Code codeUnhandledMacroApplication = Message _withArgumentsUnhandledMacroApplication(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnhandledMacroApplication, - problemMessage: - """This macro application didn't apply correctly due to an unhandled ${name}.""", - arguments: {'name': name}); + return new Message( + codeUnhandledMacroApplication, + problemMessage: + """This macro application didn't apply correctly due to an unhandled ${name}.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnmatchedAugmentationClass = const Template< - Message Function(String name)>("UnmatchedAugmentationClass", - problemMessageTemplate: - r"""Augmentation class '#name' doesn't match a class in the augmented library.""", - correctionMessageTemplate: - r"""Try changing the name to an existing class or removing the 'augment' modifier.""", - withArguments: _withArgumentsUnmatchedAugmentationClass); +const Template + templateUnmatchedAugmentationClass = + const Template( + "UnmatchedAugmentationClass", + problemMessageTemplate: + r"""Augmentation class '#name' doesn't match a class in the augmented library.""", + correctionMessageTemplate: + r"""Try changing the name to an existing class or removing the 'augment' modifier.""", + withArguments: _withArgumentsUnmatchedAugmentationClass, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedAugmentationClass = @@ -14297,24 +16834,29 @@ const Code codeUnmatchedAugmentationClass = Message _withArgumentsUnmatchedAugmentationClass(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedAugmentationClass, - problemMessage: - """Augmentation class '${name}' doesn't match a class in the augmented library.""", - correctionMessage: """Try changing the name to an existing class or removing the 'augment' modifier.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedAugmentationClass, + problemMessage: + """Augmentation class '${name}' doesn't match a class in the augmented library.""", + correctionMessage: + """Try changing the name to an existing class or removing the 'augment' modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnmatchedAugmentationClassMember = const Template< - Message Function(String name)>("UnmatchedAugmentationClassMember", - problemMessageTemplate: - r"""Augmentation member '#name' doesn't match a member in the augmented class.""", - correctionMessageTemplate: - r"""Try changing the name to an existing member or removing the 'augment' modifier.""", - withArguments: _withArgumentsUnmatchedAugmentationClassMember); +const Template + templateUnmatchedAugmentationClassMember = + const Template( + "UnmatchedAugmentationClassMember", + problemMessageTemplate: + r"""Augmentation member '#name' doesn't match a member in the augmented class.""", + correctionMessageTemplate: + r"""Try changing the name to an existing member or removing the 'augment' modifier.""", + withArguments: _withArgumentsUnmatchedAugmentationClassMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedAugmentationClassMember = @@ -14326,24 +16868,29 @@ const Code codeUnmatchedAugmentationClassMember = Message _withArgumentsUnmatchedAugmentationClassMember(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedAugmentationClassMember, - problemMessage: - """Augmentation member '${name}' doesn't match a member in the augmented class.""", - correctionMessage: """Try changing the name to an existing member or removing the 'augment' modifier.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedAugmentationClassMember, + problemMessage: + """Augmentation member '${name}' doesn't match a member in the augmented class.""", + correctionMessage: + """Try changing the name to an existing member or removing the 'augment' modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnmatchedAugmentationConstructor = const Template< - Message Function(String name)>("UnmatchedAugmentationConstructor", - problemMessageTemplate: - r"""Augmentation constructor '#name' doesn't match a constructor in the augmented class.""", - correctionMessageTemplate: - r"""Try changing the name to an existing constructor or removing the 'augment' modifier.""", - withArguments: _withArgumentsUnmatchedAugmentationConstructor); +const Template + templateUnmatchedAugmentationConstructor = + const Template( + "UnmatchedAugmentationConstructor", + problemMessageTemplate: + r"""Augmentation constructor '#name' doesn't match a constructor in the augmented class.""", + correctionMessageTemplate: + r"""Try changing the name to an existing constructor or removing the 'augment' modifier.""", + withArguments: _withArgumentsUnmatchedAugmentationConstructor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedAugmentationConstructor = @@ -14355,24 +16902,29 @@ const Code codeUnmatchedAugmentationConstructor = Message _withArgumentsUnmatchedAugmentationConstructor(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedAugmentationConstructor, - problemMessage: - """Augmentation constructor '${name}' doesn't match a constructor in the augmented class.""", - correctionMessage: """Try changing the name to an existing constructor or removing the 'augment' modifier.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedAugmentationConstructor, + problemMessage: + """Augmentation constructor '${name}' doesn't match a constructor in the augmented class.""", + correctionMessage: + """Try changing the name to an existing constructor or removing the 'augment' modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnmatchedAugmentationDeclaration = const Template< - Message Function(String name)>("UnmatchedAugmentationDeclaration", - problemMessageTemplate: - r"""Augmentation '#name' doesn't match a declaration in the augmented library.""", - correctionMessageTemplate: - r"""Try changing the name to an existing declaration or removing the 'augment' modifier.""", - withArguments: _withArgumentsUnmatchedAugmentationDeclaration); +const Template + templateUnmatchedAugmentationDeclaration = + const Template( + "UnmatchedAugmentationDeclaration", + problemMessageTemplate: + r"""Augmentation '#name' doesn't match a declaration in the augmented library.""", + correctionMessageTemplate: + r"""Try changing the name to an existing declaration or removing the 'augment' modifier.""", + withArguments: _withArgumentsUnmatchedAugmentationDeclaration, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedAugmentationDeclaration = @@ -14384,24 +16936,29 @@ const Code codeUnmatchedAugmentationDeclaration = Message _withArgumentsUnmatchedAugmentationDeclaration(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedAugmentationDeclaration, - problemMessage: - """Augmentation '${name}' doesn't match a declaration in the augmented library.""", - correctionMessage: """Try changing the name to an existing declaration or removing the 'augment' modifier.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedAugmentationDeclaration, + problemMessage: + """Augmentation '${name}' doesn't match a declaration in the augmented library.""", + correctionMessage: + """Try changing the name to an existing declaration or removing the 'augment' modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnmatchedAugmentationLibraryMember = const Template< - Message Function(String name)>("UnmatchedAugmentationLibraryMember", - problemMessageTemplate: - r"""Augmentation member '#name' doesn't match a member in the augmented library.""", - correctionMessageTemplate: - r"""Try changing the name to an existing member or removing the 'augment' modifier.""", - withArguments: _withArgumentsUnmatchedAugmentationLibraryMember); +const Template + templateUnmatchedAugmentationLibraryMember = + const Template( + "UnmatchedAugmentationLibraryMember", + problemMessageTemplate: + r"""Augmentation member '#name' doesn't match a member in the augmented library.""", + correctionMessageTemplate: + r"""Try changing the name to an existing member or removing the 'augment' modifier.""", + withArguments: _withArgumentsUnmatchedAugmentationLibraryMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -14414,22 +16971,28 @@ const Code Message _withArgumentsUnmatchedAugmentationLibraryMember(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedAugmentationLibraryMember, - problemMessage: - """Augmentation member '${name}' doesn't match a member in the augmented library.""", - correctionMessage: """Try changing the name to an existing member or removing the 'augment' modifier.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedAugmentationLibraryMember, + problemMessage: + """Augmentation member '${name}' doesn't match a member in the augmented library.""", + correctionMessage: + """Try changing the name to an existing member or removing the 'augment' modifier.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String name)> templateUnmatchedPatchClass = const Template< - Message Function(String name)>("UnmatchedPatchClass", - problemMessageTemplate: - r"""Patch class '#name' doesn't match a class in the origin library.""", - correctionMessageTemplate: - r"""Try changing the name to an existing class or removing the '@patch' annotation.""", - withArguments: _withArgumentsUnmatchedPatchClass); +const Template templateUnmatchedPatchClass = + const Template( + "UnmatchedPatchClass", + problemMessageTemplate: + r"""Patch class '#name' doesn't match a class in the origin library.""", + correctionMessageTemplate: + r"""Try changing the name to an existing class or removing the '@patch' annotation.""", + withArguments: _withArgumentsUnmatchedPatchClass, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedPatchClass = @@ -14441,24 +17004,29 @@ const Code codeUnmatchedPatchClass = Message _withArgumentsUnmatchedPatchClass(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedPatchClass, - problemMessage: - """Patch class '${name}' doesn't match a class in the origin library.""", - correctionMessage: """Try changing the name to an existing class or removing the '@patch' annotation.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedPatchClass, + problemMessage: + """Patch class '${name}' doesn't match a class in the origin library.""", + correctionMessage: + """Try changing the name to an existing class or removing the '@patch' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnmatchedPatchClassMember = const Template< - Message Function(String name)>("UnmatchedPatchClassMember", - problemMessageTemplate: - r"""Patch member '#name' doesn't match a member in the origin class.""", - correctionMessageTemplate: - r"""Try changing the name to an existing member or removing the '@patch' annotation.""", - withArguments: _withArgumentsUnmatchedPatchClassMember); +const Template + templateUnmatchedPatchClassMember = + const Template( + "UnmatchedPatchClassMember", + problemMessageTemplate: + r"""Patch member '#name' doesn't match a member in the origin class.""", + correctionMessageTemplate: + r"""Try changing the name to an existing member or removing the '@patch' annotation.""", + withArguments: _withArgumentsUnmatchedPatchClassMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedPatchClassMember = @@ -14470,24 +17038,29 @@ const Code codeUnmatchedPatchClassMember = Message _withArgumentsUnmatchedPatchClassMember(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedPatchClassMember, - problemMessage: - """Patch member '${name}' doesn't match a member in the origin class.""", - correctionMessage: """Try changing the name to an existing member or removing the '@patch' annotation.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedPatchClassMember, + problemMessage: + """Patch member '${name}' doesn't match a member in the origin class.""", + correctionMessage: + """Try changing the name to an existing member or removing the '@patch' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnmatchedPatchConstructor = const Template< - Message Function(String name)>("UnmatchedPatchConstructor", - problemMessageTemplate: - r"""Patch constructor '#name' doesn't match a constructor in the origin class.""", - correctionMessageTemplate: - r"""Try changing the name to an existing constructor or removing the '@patch' annotation.""", - withArguments: _withArgumentsUnmatchedPatchConstructor); +const Template + templateUnmatchedPatchConstructor = + const Template( + "UnmatchedPatchConstructor", + problemMessageTemplate: + r"""Patch constructor '#name' doesn't match a constructor in the origin class.""", + correctionMessageTemplate: + r"""Try changing the name to an existing constructor or removing the '@patch' annotation.""", + withArguments: _withArgumentsUnmatchedPatchConstructor, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedPatchConstructor = @@ -14499,24 +17072,29 @@ const Code codeUnmatchedPatchConstructor = Message _withArgumentsUnmatchedPatchConstructor(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedPatchConstructor, - problemMessage: - """Patch constructor '${name}' doesn't match a constructor in the origin class.""", - correctionMessage: """Try changing the name to an existing constructor or removing the '@patch' annotation.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedPatchConstructor, + problemMessage: + """Patch constructor '${name}' doesn't match a constructor in the origin class.""", + correctionMessage: + """Try changing the name to an existing constructor or removing the '@patch' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnmatchedPatchDeclaration = const Template< - Message Function(String name)>("UnmatchedPatchDeclaration", - problemMessageTemplate: - r"""Patch '#name' doesn't match a declaration in the origin library.""", - correctionMessageTemplate: - r"""Try changing the name to an existing declaration or removing the '@patch' annotation.""", - withArguments: _withArgumentsUnmatchedPatchDeclaration); +const Template + templateUnmatchedPatchDeclaration = + const Template( + "UnmatchedPatchDeclaration", + problemMessageTemplate: + r"""Patch '#name' doesn't match a declaration in the origin library.""", + correctionMessageTemplate: + r"""Try changing the name to an existing declaration or removing the '@patch' annotation.""", + withArguments: _withArgumentsUnmatchedPatchDeclaration, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedPatchDeclaration = @@ -14528,24 +17106,29 @@ const Code codeUnmatchedPatchDeclaration = Message _withArgumentsUnmatchedPatchDeclaration(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedPatchDeclaration, - problemMessage: - """Patch '${name}' doesn't match a declaration in the origin library.""", - correctionMessage: """Try changing the name to an existing declaration or removing the '@patch' annotation.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedPatchDeclaration, + problemMessage: + """Patch '${name}' doesn't match a declaration in the origin library.""", + correctionMessage: + """Try changing the name to an existing declaration or removing the '@patch' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String - name)> templateUnmatchedPatchLibraryMember = const Template< - Message Function(String name)>("UnmatchedPatchLibraryMember", - problemMessageTemplate: - r"""Patch member '#name' doesn't match a member in the origin library.""", - correctionMessageTemplate: - r"""Try changing the name to an existing member or removing the '@patch' annotation.""", - withArguments: _withArgumentsUnmatchedPatchLibraryMember); +const Template + templateUnmatchedPatchLibraryMember = + const Template( + "UnmatchedPatchLibraryMember", + problemMessageTemplate: + r"""Patch member '#name' doesn't match a member in the origin library.""", + correctionMessageTemplate: + r"""Try changing the name to an existing member or removing the '@patch' annotation.""", + withArguments: _withArgumentsUnmatchedPatchLibraryMember, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedPatchLibraryMember = @@ -14557,33 +17140,46 @@ const Code codeUnmatchedPatchLibraryMember = Message _withArgumentsUnmatchedPatchLibraryMember(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeUnmatchedPatchLibraryMember, - problemMessage: - """Patch member '${name}' doesn't match a member in the origin library.""", - correctionMessage: """Try changing the name to an existing member or removing the '@patch' annotation.""", - arguments: {'name': name}); + return new Message( + codeUnmatchedPatchLibraryMember, + problemMessage: + """Patch member '${name}' doesn't match a member in the origin library.""", + correctionMessage: + """Try changing the name to an existing member or removing the '@patch' annotation.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateUnmatchedToken = const Template( - "UnmatchedToken", - problemMessageTemplate: r"""Can't find '#string' to match '#lexeme'.""", - withArguments: _withArgumentsUnmatchedToken); + "UnmatchedToken", + problemMessageTemplate: r"""Can't find '#string' to match '#lexeme'.""", + withArguments: _withArgumentsUnmatchedToken, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnmatchedToken = - const Code("UnmatchedToken", - analyzerCodes: ["EXPECTED_TOKEN"]); + const Code( + "UnmatchedToken", + analyzerCodes: ["EXPECTED_TOKEN"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUnmatchedToken(String string, Token token) { if (string.isEmpty) throw 'No string provided'; String lexeme = token.lexeme; - return new Message(codeUnmatchedToken, - problemMessage: """Can't find '${string}' to match '${lexeme}'.""", - arguments: {'string': string, 'lexeme': token}); + return new Message( + codeUnmatchedToken, + problemMessage: """Can't find '${string}' to match '${lexeme}'.""", + arguments: { + 'string': string, + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14592,10 +17188,11 @@ const Code codeUnnamedObjectPatternField = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnnamedObjectPatternField = const MessageCode( - "UnnamedObjectPatternField", - problemMessage: r"""A pattern field in an object pattern must be named.""", - correctionMessage: - r"""Try adding a pattern name or ':' before the pattern."""); + "UnnamedObjectPatternField", + problemMessage: r"""A pattern field in an object pattern must be named.""", + correctionMessage: + r"""Try adding a pattern name or ':' before the pattern.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnnecessaryNullAssertPattern = @@ -14603,13 +17200,14 @@ const Code codeUnnecessaryNullAssertPattern = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnnecessaryNullAssertPattern = const MessageCode( - "UnnecessaryNullAssertPattern", - analyzerCodes: ["UNNECESSARY_NULL_ASSERT_PATTERN"], - severity: Severity.warning, - problemMessage: - r"""The null-assert pattern will have no effect because the matched type isn't nullable.""", - correctionMessage: - r"""Try replacing the null-assert pattern with its nested pattern."""); + "UnnecessaryNullAssertPattern", + analyzerCodes: ["UNNECESSARY_NULL_ASSERT_PATTERN"], + severity: Severity.warning, + problemMessage: + r"""The null-assert pattern will have no effect because the matched type isn't nullable.""", + correctionMessage: + r"""Try replacing the null-assert pattern with its nested pattern.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnnecessaryNullCheckPattern = @@ -14617,42 +17215,43 @@ const Code codeUnnecessaryNullCheckPattern = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnnecessaryNullCheckPattern = const MessageCode( - "UnnecessaryNullCheckPattern", - analyzerCodes: ["UNNECESSARY_NULL_CHECK_PATTERN"], - severity: Severity.warning, - problemMessage: - r"""The null-check pattern will have no effect because the matched type isn't nullable.""", - correctionMessage: - r"""Try replacing the null-check pattern with its nested pattern."""); + "UnnecessaryNullCheckPattern", + analyzerCodes: ["UNNECESSARY_NULL_CHECK_PATTERN"], + severity: Severity.warning, + problemMessage: + r"""The null-check pattern will have no effect because the matched type isn't nullable.""", + correctionMessage: + r"""Try replacing the null-check pattern with its nested pattern.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnreachableSwitchCase = messageUnreachableSwitchCase; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnreachableSwitchCase = const MessageCode( - "UnreachableSwitchCase", - analyzerCodes: ["UNREACHABLE_SWITCH_CASE"], - severity: Severity.warning, - problemMessage: r"""This case is covered by the previous cases."""); + "UnreachableSwitchCase", + analyzerCodes: ["UNREACHABLE_SWITCH_CASE"], + severity: Severity.warning, + problemMessage: r"""This case is covered by the previous cases.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - name2)> templateUnresolvedPrefixInTypeAnnotation = const Template< - Message Function(String name, String name2)>( - "UnresolvedPrefixInTypeAnnotation", - problemMessageTemplate: - r"""'#name.#name2' can't be used as a type because '#name' isn't defined.""", - withArguments: _withArgumentsUnresolvedPrefixInTypeAnnotation); +const Template + templateUnresolvedPrefixInTypeAnnotation = + const Template( + "UnresolvedPrefixInTypeAnnotation", + problemMessageTemplate: + r"""'#name.#name2' can't be used as a type because '#name' isn't defined.""", + withArguments: _withArgumentsUnresolvedPrefixInTypeAnnotation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnresolvedPrefixInTypeAnnotation = const Code( - "UnresolvedPrefixInTypeAnnotation", - analyzerCodes: ["NOT_A_TYPE"]); + "UnresolvedPrefixInTypeAnnotation", + analyzerCodes: ["NOT_A_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUnresolvedPrefixInTypeAnnotation( @@ -14661,10 +17260,15 @@ Message _withArgumentsUnresolvedPrefixInTypeAnnotation( name = demangleMixinApplicationName(name); if (name2.isEmpty) throw 'No name provided'; name2 = demangleMixinApplicationName(name2); - return new Message(codeUnresolvedPrefixInTypeAnnotation, - problemMessage: - """'${name}.${name2}' can't be used as a type because '${name}' isn't defined.""", - arguments: {'name': name, 'name2': name2}); + return new Message( + codeUnresolvedPrefixInTypeAnnotation, + problemMessage: + """'${name}.${name2}' can't be used as a type because '${name}' isn't defined.""", + arguments: { + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14673,9 +17277,10 @@ const Code codeUnsoundSwitchExpressionError = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnsoundSwitchExpressionError = const MessageCode( - "UnsoundSwitchExpressionError", - problemMessage: - r"""None of the patterns in the switch expression the matched input value. See https://github.com/dart-lang/language/issues/3488 for details."""); + "UnsoundSwitchExpressionError", + problemMessage: + r"""None of the patterns in the switch expression the matched input value. See https://github.com/dart-lang/language/issues/3488 for details.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnsoundSwitchStatementError = @@ -14683,15 +17288,18 @@ const Code codeUnsoundSwitchStatementError = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnsoundSwitchStatementError = const MessageCode( - "UnsoundSwitchStatementError", - problemMessage: - r"""None of the patterns in the exhaustive switch statement the matched input value. See https://github.com/dart-lang/language/issues/3488 for details."""); + "UnsoundSwitchStatementError", + problemMessage: + r"""None of the patterns in the exhaustive switch statement the matched input value. See https://github.com/dart-lang/language/issues/3488 for details.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateUnspecified = - const Template("Unspecified", - problemMessageTemplate: r"""#string""", - withArguments: _withArgumentsUnspecified); + const Template( + "Unspecified", + problemMessageTemplate: r"""#string""", + withArguments: _withArgumentsUnspecified, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnspecified = @@ -14702,8 +17310,13 @@ const Code codeUnspecified = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUnspecified(String string) { if (string.isEmpty) throw 'No string provided'; - return new Message(codeUnspecified, - problemMessage: """${string}""", arguments: {'string': string}); + return new Message( + codeUnspecified, + problemMessage: """${string}""", + arguments: { + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14711,21 +17324,24 @@ const Code codeUnspecifiedGetterNameInObjectPattern = messageUnspecifiedGetterNameInObjectPattern; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageUnspecifiedGetterNameInObjectPattern = const MessageCode( - "UnspecifiedGetterNameInObjectPattern", - analyzerCodes: ["MISSING_OBJECT_PATTERN_GETTER_NAME"], - problemMessage: - r"""The getter name is not specified explicitly, and the pattern is not a variable. Try specifying the getter name explicitly, or using a variable pattern."""); +const MessageCode messageUnspecifiedGetterNameInObjectPattern = + const MessageCode( + "UnspecifiedGetterNameInObjectPattern", + analyzerCodes: ["MISSING_OBJECT_PATTERN_GETTER_NAME"], + problemMessage: + r"""The getter name is not specified explicitly, and the pattern is not a variable. Try specifying the getter name explicitly, or using a variable pattern.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnsupportedDartExt = messageUnsupportedDartExt; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnsupportedDartExt = const MessageCode( - "UnsupportedDartExt", - problemMessage: r"""Dart native extensions are no longer supported.""", - correctionMessage: - r"""Migrate to using FFI instead (https://dart.dev/guides/libraries/c-interop)"""); + "UnsupportedDartExt", + problemMessage: r"""Dart native extensions are no longer supported.""", + correctionMessage: + r"""Migrate to using FFI instead (https://dart.dev/guides/libraries/c-interop)""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnsupportedMacroApplication = @@ -14733,26 +17349,35 @@ const Code codeUnsupportedMacroApplication = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnsupportedMacroApplication = const MessageCode( - "UnsupportedMacroApplication", - problemMessage: r"""This macro application didn't apply correctly."""); + "UnsupportedMacroApplication", + problemMessage: r"""This macro application didn't apply correctly.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateUnsupportedOperator = - const Template("UnsupportedOperator", - problemMessageTemplate: r"""The '#lexeme' operator is not supported.""", - withArguments: _withArgumentsUnsupportedOperator); + const Template( + "UnsupportedOperator", + problemMessageTemplate: r"""The '#lexeme' operator is not supported.""", + withArguments: _withArgumentsUnsupportedOperator, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnsupportedOperator = - const Code("UnsupportedOperator", - analyzerCodes: ["UNSUPPORTED_OPERATOR"]); + const Code( + "UnsupportedOperator", + analyzerCodes: ["UNSUPPORTED_OPERATOR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUnsupportedOperator(Token token) { String lexeme = token.lexeme; - return new Message(codeUnsupportedOperator, - problemMessage: """The '${lexeme}' operator is not supported.""", - arguments: {'lexeme': token}); + return new Message( + codeUnsupportedOperator, + problemMessage: """The '${lexeme}' operator is not supported.""", + arguments: { + 'lexeme': token, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14760,45 +17385,53 @@ const Code codeUnsupportedPrefixPlus = messageUnsupportedPrefixPlus; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnsupportedPrefixPlus = const MessageCode( - "UnsupportedPrefixPlus", - analyzerCodes: ["MISSING_IDENTIFIER"], - problemMessage: r"""'+' is not a prefix operator.""", - correctionMessage: r"""Try removing '+'."""); + "UnsupportedPrefixPlus", + analyzerCodes: ["MISSING_IDENTIFIER"], + problemMessage: r"""'+' is not a prefix operator.""", + correctionMessage: r"""Try removing '+'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnterminatedComment = messageUnterminatedComment; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnterminatedComment = const MessageCode( - "UnterminatedComment", - analyzerCodes: ["UNTERMINATED_MULTI_LINE_COMMENT"], - problemMessage: r"""Comment starting with '/*' must end with '*/'."""); + "UnterminatedComment", + analyzerCodes: ["UNTERMINATED_MULTI_LINE_COMMENT"], + problemMessage: r"""Comment starting with '/*' must end with '*/'.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function(String string, String string2)> +const Template templateUnterminatedString = const Template( - "UnterminatedString", - problemMessageTemplate: - r"""String starting with #string must end with #string2.""", - withArguments: _withArgumentsUnterminatedString); + "UnterminatedString", + problemMessageTemplate: + r"""String starting with #string must end with #string2.""", + withArguments: _withArgumentsUnterminatedString, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUnterminatedString = const Code( - "UnterminatedString", - analyzerCodes: ["UNTERMINATED_STRING_LITERAL"]); + "UnterminatedString", + analyzerCodes: ["UNTERMINATED_STRING_LITERAL"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUnterminatedString(String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeUnterminatedString, - problemMessage: - """String starting with ${string} must end with ${string2}.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeUnterminatedString, + problemMessage: + """String starting with ${string} must end with ${string2}.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14806,35 +17439,46 @@ const Code codeUnterminatedToken = messageUnterminatedToken; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageUnterminatedToken = const MessageCode( - "UnterminatedToken", - problemMessage: r"""Incomplete token."""); + "UnterminatedToken", + problemMessage: r"""Incomplete token.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateUntranslatableUri = - const Template("UntranslatableUri", - problemMessageTemplate: r"""Not found: '#uri'""", - withArguments: _withArgumentsUntranslatableUri); + const Template( + "UntranslatableUri", + problemMessageTemplate: r"""Not found: '#uri'""", + withArguments: _withArgumentsUntranslatableUri, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeUntranslatableUri = - const Code("UntranslatableUri", - analyzerCodes: ["URI_DOES_NOT_EXIST"]); + const Code( + "UntranslatableUri", + analyzerCodes: ["URI_DOES_NOT_EXIST"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUntranslatableUri(Uri uri_) { String? uri = relativizeUri(uri_); - return new Message(codeUntranslatableUri, - problemMessage: """Not found: '${uri}'""", arguments: {'uri': uri_}); + return new Message( + codeUntranslatableUri, + problemMessage: """Not found: '${uri}'""", + arguments: { + 'uri': uri_, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateValueForRequiredParameterNotProvidedError = const Template( - "ValueForRequiredParameterNotProvidedError", - problemMessageTemplate: - r"""Required named parameter '#name' must be provided.""", - withArguments: _withArgumentsValueForRequiredParameterNotProvidedError); + "ValueForRequiredParameterNotProvidedError", + problemMessageTemplate: + r"""Required named parameter '#name' must be provided.""", + withArguments: _withArgumentsValueForRequiredParameterNotProvidedError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -14847,43 +17491,48 @@ const Code Message _withArgumentsValueForRequiredParameterNotProvidedError(String name) { if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); - return new Message(codeValueForRequiredParameterNotProvidedError, - problemMessage: - """Required named parameter '${name}' must be provided.""", - arguments: {'name': name}); + return new Message( + codeValueForRequiredParameterNotProvidedError, + problemMessage: """Required named parameter '${name}' must be provided.""", + arguments: { + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeVarAsTypeName = messageVarAsTypeName; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageVarAsTypeName = const MessageCode("VarAsTypeName", - index: 61, - problemMessage: r"""The keyword 'var' can't be used as a type name."""); +const MessageCode messageVarAsTypeName = const MessageCode( + "VarAsTypeName", + index: 61, + problemMessage: r"""The keyword 'var' can't be used as a type name.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeVarReturnType = messageVarReturnType; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageVarReturnType = const MessageCode("VarReturnType", - index: 12, - problemMessage: r"""The return type can't be 'var'.""", - correctionMessage: - r"""Try removing the keyword 'var', or replacing it with the name of the return type."""); +const MessageCode messageVarReturnType = const MessageCode( + "VarReturnType", + index: 12, + problemMessage: r"""The return type can't be 'var'.""", + correctionMessage: + r"""Try removing the keyword 'var', or replacing it with the name of the return type.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String name, - String - string)> templateVariableCouldBeNullDueToWrite = const Template< - Message Function(String name, String string)>( - "VariableCouldBeNullDueToWrite", - problemMessageTemplate: - r"""Variable '#name' could not be promoted due to an assignment.""", - correctionMessageTemplate: - r"""Try null checking the variable after the assignment. See #string""", - withArguments: _withArgumentsVariableCouldBeNullDueToWrite); +const Template + templateVariableCouldBeNullDueToWrite = + const Template( + "VariableCouldBeNullDueToWrite", + problemMessageTemplate: + r"""Variable '#name' could not be promoted due to an assignment.""", + correctionMessageTemplate: + r"""Try null checking the variable after the assignment. See #string""", + withArguments: _withArgumentsVariableCouldBeNullDueToWrite, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -14898,12 +17547,17 @@ Message _withArgumentsVariableCouldBeNullDueToWrite( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); if (string.isEmpty) throw 'No string provided'; - return new Message(codeVariableCouldBeNullDueToWrite, - problemMessage: - """Variable '${name}' could not be promoted due to an assignment.""", - correctionMessage: - """Try null checking the variable after the assignment. See ${string}""", - arguments: {'name': name, 'string': string}); + return new Message( + codeVariableCouldBeNullDueToWrite, + problemMessage: + """Variable '${name}' could not be promoted due to an assignment.""", + correctionMessage: + """Try null checking the variable after the assignment. See ${string}""", + arguments: { + 'name': name, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -14912,11 +17566,13 @@ const Code codeVariablePatternKeywordInDeclarationContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageVariablePatternKeywordInDeclarationContext = - const MessageCode("VariablePatternKeywordInDeclarationContext", - index: 149, - problemMessage: - r"""Variable patterns in declaration context can't specify 'var' or 'final' keyword.""", - correctionMessage: r"""Try removing the keyword."""); + const MessageCode( + "VariablePatternKeywordInDeclarationContext", + index: 149, + problemMessage: + r"""Variable patterns in declaration context can't specify 'var' or 'final' keyword.""", + correctionMessage: r"""Try removing the keyword.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeVerificationErrorOriginContext = @@ -14924,28 +17580,32 @@ const Code codeVerificationErrorOriginContext = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageVerificationErrorOriginContext = const MessageCode( - "VerificationErrorOriginContext", - severity: Severity.context, - problemMessage: - r"""The node most likely is taken from here by a transformer."""); + "VerificationErrorOriginContext", + severity: Severity.context, + problemMessage: + r"""The node most likely is taken from here by a transformer.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeVoidExpression = messageVoidExpression; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageVoidExpression = const MessageCode("VoidExpression", - analyzerCodes: ["USE_OF_VOID_RESULT"], - problemMessage: r"""This expression has type 'void' and can't be used."""); +const MessageCode messageVoidExpression = const MessageCode( + "VoidExpression", + analyzerCodes: ["USE_OF_VOID_RESULT"], + problemMessage: r"""This expression has type 'void' and can't be used.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeVoidWithTypeArguments = messageVoidWithTypeArguments; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageVoidWithTypeArguments = const MessageCode( - "VoidWithTypeArguments", - index: 100, - problemMessage: r"""Type 'void' can't have type arguments.""", - correctionMessage: r"""Try removing the type arguments."""); + "VoidWithTypeArguments", + index: 100, + problemMessage: r"""Type 'void' can't have type arguments.""", + correctionMessage: r"""Try removing the type arguments.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeWeakReferenceMismatchReturnAndArgumentTypes = @@ -14953,9 +17613,11 @@ const Code codeWeakReferenceMismatchReturnAndArgumentTypes = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageWeakReferenceMismatchReturnAndArgumentTypes = - const MessageCode("WeakReferenceMismatchReturnAndArgumentTypes", - problemMessage: - r"""Return and argument types of a weak reference should match."""); + const MessageCode( + "WeakReferenceMismatchReturnAndArgumentTypes", + problemMessage: + r"""Return and argument types of a weak reference should match.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeWeakReferenceNotOneArgument = @@ -14963,18 +17625,20 @@ const Code codeWeakReferenceNotOneArgument = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageWeakReferenceNotOneArgument = const MessageCode( - "WeakReferenceNotOneArgument", - problemMessage: - r"""Weak reference should take one required positional argument."""); + "WeakReferenceNotOneArgument", + problemMessage: + r"""Weak reference should take one required positional argument.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeWeakReferenceNotStatic = messageWeakReferenceNotStatic; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageWeakReferenceNotStatic = const MessageCode( - "WeakReferenceNotStatic", - problemMessage: - r"""Weak reference pragma can be used on a static method only."""); + "WeakReferenceNotStatic", + problemMessage: + r"""Weak reference pragma can be used on a static method only.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeWeakReferenceReturnTypeNotNullable = @@ -14982,8 +17646,9 @@ const Code codeWeakReferenceReturnTypeNotNullable = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageWeakReferenceReturnTypeNotNullable = const MessageCode( - "WeakReferenceReturnTypeNotNullable", - problemMessage: r"""Return type of a weak reference should be nullable."""); + "WeakReferenceReturnTypeNotNullable", + problemMessage: r"""Return type of a weak reference should be nullable.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeWeakReferenceTargetHasParameters = @@ -14991,19 +17656,22 @@ const Code codeWeakReferenceTargetHasParameters = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageWeakReferenceTargetHasParameters = const MessageCode( - "WeakReferenceTargetHasParameters", - problemMessage: - r"""The target of weak reference should not take parameters."""); + "WeakReferenceTargetHasParameters", + problemMessage: + r"""The target of weak reference should not take parameters.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeWeakReferenceTargetNotStaticTearoff = messageWeakReferenceTargetNotStaticTearoff; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const MessageCode messageWeakReferenceTargetNotStaticTearoff = const MessageCode( - "WeakReferenceTargetNotStaticTearoff", - problemMessage: - r"""The target of weak reference should be a tearoff of a static method."""); +const MessageCode messageWeakReferenceTargetNotStaticTearoff = + const MessageCode( + "WeakReferenceTargetNotStaticTearoff", + problemMessage: + r"""The target of weak reference should be a tearoff of a static method.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeWeakWithStrongDillLibrary = @@ -15011,24 +17679,22 @@ const Code codeWeakWithStrongDillLibrary = // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageWeakWithStrongDillLibrary = const MessageCode( - "WeakWithStrongDillLibrary", - problemMessage: - r"""Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety."""); + "WeakWithStrongDillLibrary", + problemMessage: + r"""Loaded library is compiled with sound null safety and cannot be used in compilation for unsound null safety.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - String string, - String - string2)> templateWebLiteralCannotBeRepresentedExactly = const Template< - Message Function( - String string, String string2)>( - "WebLiteralCannotBeRepresentedExactly", - problemMessageTemplate: - r"""The integer literal #string can't be represented exactly in JavaScript.""", - correctionMessageTemplate: - r"""Try changing the literal to something that can be represented in JavaScript. In JavaScript #string2 is the nearest value that can be represented exactly.""", - withArguments: _withArgumentsWebLiteralCannotBeRepresentedExactly); +const Template + templateWebLiteralCannotBeRepresentedExactly = + const Template( + "WebLiteralCannotBeRepresentedExactly", + problemMessageTemplate: + r"""The integer literal #string can't be represented exactly in JavaScript.""", + correctionMessageTemplate: + r"""Try changing the literal to something that can be represented in JavaScript. In JavaScript #string2 is the nearest value that can be represented exactly.""", + withArguments: _withArgumentsWebLiteralCannotBeRepresentedExactly, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -15042,11 +17708,17 @@ Message _withArgumentsWebLiteralCannotBeRepresentedExactly( String string, String string2) { if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; - return new Message(codeWebLiteralCannotBeRepresentedExactly, - problemMessage: - """The integer literal ${string} can't be represented exactly in JavaScript.""", - correctionMessage: """Try changing the literal to something that can be represented in JavaScript. In JavaScript ${string2} is the nearest value that can be represented exactly.""", - arguments: {'string': string, 'string2': string2}); + return new Message( + codeWebLiteralCannotBeRepresentedExactly, + problemMessage: + """The integer literal ${string} can't be represented exactly in JavaScript.""", + correctionMessage: + """Try changing the literal to something that can be represented in JavaScript. In JavaScript ${string2} is the nearest value that can be represented exactly.""", + arguments: { + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -15054,28 +17726,31 @@ const Code codeWithBeforeExtends = messageWithBeforeExtends; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageWithBeforeExtends = const MessageCode( - "WithBeforeExtends", - index: 11, - problemMessage: r"""The extends clause must be before the with clause.""", - correctionMessage: - r"""Try moving the extends clause before the with clause."""); + "WithBeforeExtends", + index: 11, + problemMessage: r"""The extends clause must be before the with clause.""", + correctionMessage: + r"""Try moving the extends clause before the with clause.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeYieldAsIdentifier = messageYieldAsIdentifier; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageYieldAsIdentifier = const MessageCode( - "YieldAsIdentifier", - analyzerCodes: ["ASYNC_KEYWORD_USED_AS_IDENTIFIER"], - problemMessage: - r"""'yield' can't be used as an identifier in 'async', 'async*', or 'sync*' methods."""); + "YieldAsIdentifier", + analyzerCodes: ["ASYNC_KEYWORD_USED_AS_IDENTIFIER"], + problemMessage: + r"""'yield' can't be used as an identifier in 'async', 'async*', or 'sync*' methods.""", +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeYieldNotGenerator = messageYieldNotGenerator; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode messageYieldNotGenerator = const MessageCode( - "YieldNotGenerator", - analyzerCodes: ["YIELD_IN_NON_GENERATOR"], - problemMessage: - r"""'yield' can only be used in 'sync*' or 'async*' methods."""); + "YieldNotGenerator", + analyzerCodes: ["YIELD_IN_NON_GENERATOR"], + problemMessage: + r"""'yield' can only be used in 'sync*' or 'async*' methods.""", +); diff --git a/pkg/front_end/PRESUBMIT.py b/pkg/front_end/PRESUBMIT.py index 5dae483e128..a04d974e09d 100644 --- a/pkg/front_end/PRESUBMIT.py +++ b/pkg/front_end/PRESUBMIT.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 -# Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file +# Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. -"""Front-end specific presubmit script. +"""CFE et al presubmit python script. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl. @@ -30,42 +30,35 @@ def load_source(modname, filename): def runSmokeTest(input_api, output_api): - hasChangedFiles = False - for git_file in input_api.AffectedTextFiles(): - filename = git_file.AbsoluteLocalPath() - if filename.endswith(".dart") or filename.endswith("messages.yaml"): - hasChangedFiles = True - break + local_root = input_api.change.RepositoryRoot() + utils = load_source('utils', os.path.join(local_root, 'tools', 'utils.py')) + dart = os.path.join(utils.CheckedInSdkPath(), 'bin', 'dart') + test_helper = os.path.join(local_root, 'pkg', 'front_end', + 'presubmit_helper.dart') - if hasChangedFiles: - local_root = input_api.change.RepositoryRoot() - utils = load_source('utils', - os.path.join(local_root, 'tools', 'utils.py')) - dart = os.path.join(utils.CheckedInSdkPath(), 'bin', 'dart') - smoke_test = os.path.join(local_root, 'pkg', 'front_end', 'tool', - 'smoke_test_quick.dart') + windows = utils.GuessOS() == 'win32' + if windows: + dart += '.exe' - windows = utils.GuessOS() == 'win32' - if windows: - dart += '.exe' + if not os.path.isfile(dart): + print('WARNING: dart not found: %s' % dart) + return [] - if not os.path.isfile(dart): - print('WARNING: dart not found: %s' % dart) - return [] + if not os.path.isfile(test_helper): + print('WARNING: CFE et al presubmit_helper not found: %s' % test_helper) + return [] - if not os.path.isfile(smoke_test): - print('WARNING: Front-end smoke test not found: %s' % smoke_test) - return [] + args = [dart, test_helper, input_api.PresubmitLocalPath()] + process = subprocess.Popen(args, + stdout=subprocess.PIPE, + stdin=subprocess.PIPE) + outs, _ = process.communicate() - args = [dart, smoke_test] - process = subprocess.Popen( - args, stdout=subprocess.PIPE, stdin=subprocess.PIPE) - outs, _ = process.communicate() - - if process.returncode != 0: - return [output_api.PresubmitError( - 'Front-end smoke test failure(s):', - long_text=outs)] + if process.returncode != 0: + return [ + output_api.PresubmitError('CFE et al presubmit script failure(s):', + long_text=outs) + ] return [] diff --git a/pkg/front_end/lib/src/api_prototype/kernel_generator.dart b/pkg/front_end/lib/src/api_prototype/kernel_generator.dart index 3d1eef76da0..bd9f32ff928 100644 --- a/pkg/front_end/lib/src/api_prototype/kernel_generator.dart +++ b/pkg/front_end/lib/src/api_prototype/kernel_generator.dart @@ -52,16 +52,22 @@ Future kernelForProgram(Uri source, CompilerOptions options, } Future kernelForProgramInternal( - Uri source, CompilerOptions options, - {List additionalSources = const [], - bool retainDataForTesting = false, - bool requireMain = true}) async { + Uri source, + CompilerOptions options, { + List additionalSources = const [], + bool retainDataForTesting = false, + bool requireMain = true, + bool buildComponent = true, +}) async { ProcessedOptions pOptions = new ProcessedOptions( options: options, inputs: [source, ...additionalSources]); return await CompilerContext.runWithOptions(pOptions, (context) async { CompilerResult result = await generateKernelInternal( - includeHierarchyAndCoreTypes: true, - retainDataForTesting: retainDataForTesting); + includeHierarchyAndCoreTypes: true, + retainDataForTesting: retainDataForTesting, + buildComponent: buildComponent, + ); + Component? component = result.component; if (component == null) return null; diff --git a/pkg/front_end/lib/src/fasta/fasta_codes_cfe_generated.dart b/pkg/front_end/lib/src/fasta/fasta_codes_cfe_generated.dart index 3c128076f2e..0443d931a1c 100644 --- a/pkg/front_end/lib/src/fasta/fasta_codes_cfe_generated.dart +++ b/pkg/front_end/lib/src/fasta/fasta_codes_cfe_generated.dart @@ -13,19 +13,18 @@ part of fasta.codes; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - String name, - DartType _type, - bool - isNonNullableByDefault)> templateAmbiguousExtensionMethod = const Template< + Message Function( + String name, DartType _type, bool isNonNullableByDefault)> + templateAmbiguousExtensionMethod = const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)>( - "AmbiguousExtensionMethod", - problemMessageTemplate: - r"""The method '#name' is defined in multiple extensions for '#type' and neither is more specific.""", - correctionMessageTemplate: - r"""Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", - withArguments: _withArgumentsAmbiguousExtensionMethod); + "AmbiguousExtensionMethod", + problemMessageTemplate: + r"""The method '#name' is defined in multiple extensions for '#type' and neither is more specific.""", + correctionMessageTemplate: + r"""Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", + withArguments: _withArgumentsAmbiguousExtensionMethod, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -43,12 +42,18 @@ Message _withArgumentsAmbiguousExtensionMethod( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeAmbiguousExtensionMethod, - problemMessage: - """The method '${name}' is defined in multiple extensions for '${type}' and neither is more specific.""" + - labeler.originMessages, - correctionMessage: """Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeAmbiguousExtensionMethod, + problemMessage: + """The method '${name}' is defined in multiple extensions for '${type}' and neither is more specific.""" + + labeler.originMessages, + correctionMessage: + """Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -56,14 +61,15 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateAmbiguousExtensionOperator = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "AmbiguousExtensionOperator", - problemMessageTemplate: - r"""The operator '#name' is defined in multiple extensions for '#type' and neither is more specific.""", - correctionMessageTemplate: - r"""Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", - withArguments: _withArgumentsAmbiguousExtensionOperator); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "AmbiguousExtensionOperator", + problemMessageTemplate: + r"""The operator '#name' is defined in multiple extensions for '#type' and neither is more specific.""", + correctionMessageTemplate: + r"""Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", + withArguments: _withArgumentsAmbiguousExtensionOperator, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -83,12 +89,18 @@ Message _withArgumentsAmbiguousExtensionOperator( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeAmbiguousExtensionOperator, - problemMessage: - """The operator '${name}' is defined in multiple extensions for '${type}' and neither is more specific.""" + - labeler.originMessages, - correctionMessage: """Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeAmbiguousExtensionOperator, + problemMessage: + """The operator '${name}' is defined in multiple extensions for '${type}' and neither is more specific.""" + + labeler.originMessages, + correctionMessage: + """Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -96,14 +108,15 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateAmbiguousExtensionProperty = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "AmbiguousExtensionProperty", - problemMessageTemplate: - r"""The property '#name' is defined in multiple extensions for '#type' and neither is more specific.""", - correctionMessageTemplate: - r"""Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", - withArguments: _withArgumentsAmbiguousExtensionProperty); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "AmbiguousExtensionProperty", + problemMessageTemplate: + r"""The property '#name' is defined in multiple extensions for '#type' and neither is more specific.""", + correctionMessageTemplate: + r"""Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", + withArguments: _withArgumentsAmbiguousExtensionProperty, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -123,12 +136,18 @@ Message _withArgumentsAmbiguousExtensionProperty( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeAmbiguousExtensionProperty, - problemMessage: - """The property '${name}' is defined in multiple extensions for '${type}' and neither is more specific.""" + - labeler.originMessages, - correctionMessage: """Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeAmbiguousExtensionProperty, + problemMessage: + """The property '${name}' is defined in multiple extensions for '${type}' and neither is more specific.""" + + labeler.originMessages, + correctionMessage: + """Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -136,20 +155,23 @@ const Template< Message Function(String name, DartType _type, DartType _type2, bool isNonNullableByDefault)> templateAmbiguousSupertypes = const Template< - Message Function(String name, DartType _type, DartType _type2, - bool isNonNullableByDefault)>("AmbiguousSupertypes", - problemMessageTemplate: - r"""'#name' can't implement both '#type' and '#type2'""", - withArguments: _withArgumentsAmbiguousSupertypes); + Message Function(String name, DartType _type, DartType _type2, + bool isNonNullableByDefault)>( + "AmbiguousSupertypes", + problemMessageTemplate: + r"""'#name' can't implement both '#type' and '#type2'""", + withArguments: _withArgumentsAmbiguousSupertypes, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< - Message Function(String name, DartType _type, DartType _type2, - bool isNonNullableByDefault)> codeAmbiguousSupertypes = - const Code< - Message Function(String name, DartType _type, DartType _type2, - bool isNonNullableByDefault)>("AmbiguousSupertypes", - analyzerCodes: ["AMBIGUOUS_SUPERTYPES"]); + Message Function(String name, DartType _type, DartType _type2, + bool isNonNullableByDefault)> codeAmbiguousSupertypes = const Code< + Message Function(String name, DartType _type, DartType _type2, + bool isNonNullableByDefault)>( + "AmbiguousSupertypes", + analyzerCodes: ["AMBIGUOUS_SUPERTYPES"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsAmbiguousSupertypes( @@ -161,11 +183,17 @@ Message _withArgumentsAmbiguousSupertypes( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeAmbiguousSupertypes, - problemMessage: - """'${name}' can't implement both '${type}' and '${type2}'""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type, 'type2': _type2}); + return new Message( + codeAmbiguousSupertypes, + problemMessage: + """'${name}' can't implement both '${type}' and '${type2}'""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -173,22 +201,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateArgumentTypeNotAssignable = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ArgumentTypeNotAssignable", - problemMessageTemplate: - r"""The argument type '#type' can't be assigned to the parameter type '#type2'.""", - withArguments: _withArgumentsArgumentTypeNotAssignable); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ArgumentTypeNotAssignable", + problemMessageTemplate: + r"""The argument type '#type' can't be assigned to the parameter type '#type2'.""", + withArguments: _withArgumentsArgumentTypeNotAssignable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeArgumentTypeNotAssignable = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ArgumentTypeNotAssignable", - analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ArgumentTypeNotAssignable", + analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsArgumentTypeNotAssignable( @@ -198,11 +228,16 @@ Message _withArgumentsArgumentTypeNotAssignable( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeArgumentTypeNotAssignable, - problemMessage: - """The argument type '${type}' can't be assigned to the parameter type '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeArgumentTypeNotAssignable, + problemMessage: + """The argument type '${type}' can't be assigned to the parameter type '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -210,22 +245,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateArgumentTypeNotAssignableNullability = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ArgumentTypeNotAssignableNullability", - problemMessageTemplate: - r"""The argument type '#type' can't be assigned to the parameter type '#type2' because '#type' is nullable and '#type2' isn't.""", - withArguments: _withArgumentsArgumentTypeNotAssignableNullability); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ArgumentTypeNotAssignableNullability", + problemMessageTemplate: + r"""The argument type '#type' can't be assigned to the parameter type '#type2' because '#type' is nullable and '#type2' isn't.""", + withArguments: _withArgumentsArgumentTypeNotAssignableNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeArgumentTypeNotAssignableNullability = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ArgumentTypeNotAssignableNullability", - analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ArgumentTypeNotAssignableNullability", + analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsArgumentTypeNotAssignableNullability( @@ -235,28 +272,35 @@ Message _withArgumentsArgumentTypeNotAssignableNullability( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeArgumentTypeNotAssignableNullability, - problemMessage: - """The argument type '${type}' can't be assigned to the parameter type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeArgumentTypeNotAssignableNullability, + problemMessage: + """The argument type '${type}' can't be assigned to the parameter type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateArgumentTypeNotAssignableNullabilityNull = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "ArgumentTypeNotAssignableNullabilityNull", - problemMessageTemplate: - r"""The value 'null' can't be assigned to the parameter type '#type' because '#type' is not nullable.""", - withArguments: _withArgumentsArgumentTypeNotAssignableNullabilityNull); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "ArgumentTypeNotAssignableNullabilityNull", + problemMessageTemplate: + r"""The value 'null' can't be assigned to the parameter type '#type' because '#type' is not nullable.""", + withArguments: _withArgumentsArgumentTypeNotAssignableNullabilityNull, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeArgumentTypeNotAssignableNullabilityNull = const Code( - "ArgumentTypeNotAssignableNullabilityNull", - analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"]); + "ArgumentTypeNotAssignableNullabilityNull", + analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsArgumentTypeNotAssignableNullabilityNull( @@ -264,11 +308,15 @@ Message _withArgumentsArgumentTypeNotAssignableNullabilityNull( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeArgumentTypeNotAssignableNullabilityNull, - problemMessage: - """The value 'null' can't be assigned to the parameter type '${type}' because '${type}' is not nullable.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeArgumentTypeNotAssignableNullabilityNull, + problemMessage: + """The value 'null' can't be assigned to the parameter type '${type}' because '${type}' is not nullable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -276,23 +324,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateArgumentTypeNotAssignableNullabilityNullType = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ArgumentTypeNotAssignableNullabilityNullType", - problemMessageTemplate: - r"""The argument type '#type' can't be assigned to the parameter type '#type2' because '#type2' is not nullable.""", - withArguments: - _withArgumentsArgumentTypeNotAssignableNullabilityNullType); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ArgumentTypeNotAssignableNullabilityNullType", + problemMessageTemplate: + r"""The argument type '#type' can't be assigned to the parameter type '#type2' because '#type2' is not nullable.""", + withArguments: _withArgumentsArgumentTypeNotAssignableNullabilityNullType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeArgumentTypeNotAssignableNullabilityNullType = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ArgumentTypeNotAssignableNullabilityNullType", - analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ArgumentTypeNotAssignableNullabilityNullType", + analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsArgumentTypeNotAssignableNullabilityNullType( @@ -302,11 +351,16 @@ Message _withArgumentsArgumentTypeNotAssignableNullabilityNullType( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeArgumentTypeNotAssignableNullabilityNullType, - problemMessage: - """The argument type '${type}' can't be assigned to the parameter type '${type2}' because '${type2}' is not nullable.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeArgumentTypeNotAssignableNullabilityNullType, + problemMessage: + """The argument type '${type}' can't be assigned to the parameter type '${type2}' because '${type2}' is not nullable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -314,22 +368,24 @@ const Template< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> templateArgumentTypeNotAssignablePartNullability = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "ArgumentTypeNotAssignablePartNullability", - problemMessageTemplate: - r"""The argument type '#type' can't be assigned to the parameter type '#type2' because '#type3' is nullable and '#type4' isn't.""", - withArguments: _withArgumentsArgumentTypeNotAssignablePartNullability); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "ArgumentTypeNotAssignablePartNullability", + problemMessageTemplate: + r"""The argument type '#type' can't be assigned to the parameter type '#type2' because '#type3' is nullable and '#type4' isn't.""", + withArguments: _withArgumentsArgumentTypeNotAssignablePartNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> codeArgumentTypeNotAssignablePartNullability = const Code< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "ArgumentTypeNotAssignablePartNullability", - analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"]); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "ArgumentTypeNotAssignablePartNullability", + analyzerCodes: ["ARGUMENT_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsArgumentTypeNotAssignablePartNullability( @@ -347,27 +403,30 @@ Message _withArgumentsArgumentTypeNotAssignablePartNullability( String type2 = type2Parts.join(); String type3 = type3Parts.join(); String type4 = type4Parts.join(); - return new Message(codeArgumentTypeNotAssignablePartNullability, - problemMessage: - """The argument type '${type}' can't be assigned to the parameter type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'type2': _type2, - 'type3': _type3, - 'type4': _type4 - }); + return new Message( + codeArgumentTypeNotAssignablePartNullability, + problemMessage: + """The argument type '${type}' can't be assigned to the parameter type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + 'type4': _type4, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalCaseImplementsEqual = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalCaseImplementsEqual", - problemMessageTemplate: - r"""Case expression '#constant' does not have a primitive operator '=='.""", - withArguments: _withArgumentsConstEvalCaseImplementsEqual); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalCaseImplementsEqual", + problemMessageTemplate: + r"""Case expression '#constant' does not have a primitive operator '=='.""", + withArguments: _withArgumentsConstEvalCaseImplementsEqual, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -382,29 +441,35 @@ Message _withArgumentsConstEvalCaseImplementsEqual( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalCaseImplementsEqual, - problemMessage: - """Case expression '${constant}' does not have a primitive operator '=='.""" + - labeler.originMessages, - arguments: {'constant': _constant}); + return new Message( + codeConstEvalCaseImplementsEqual, + problemMessage: + """Case expression '${constant}' does not have a primitive operator '=='.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalDuplicateElement = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalDuplicateElement", - problemMessageTemplate: - r"""The element '#constant' conflicts with another existing element in the set.""", - withArguments: _withArgumentsConstEvalDuplicateElement); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalDuplicateElement", + problemMessageTemplate: + r"""The element '#constant' conflicts with another existing element in the set.""", + withArguments: _withArgumentsConstEvalDuplicateElement, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalDuplicateElement = const Code< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalDuplicateElement", - analyzerCodes: ["EQUAL_ELEMENTS_IN_CONST_SET"]); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalDuplicateElement", + analyzerCodes: ["EQUAL_ELEMENTS_IN_CONST_SET"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalDuplicateElement( @@ -412,29 +477,35 @@ Message _withArgumentsConstEvalDuplicateElement( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalDuplicateElement, - problemMessage: - """The element '${constant}' conflicts with another existing element in the set.""" + - labeler.originMessages, - arguments: {'constant': _constant}); + return new Message( + codeConstEvalDuplicateElement, + problemMessage: + """The element '${constant}' conflicts with another existing element in the set.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalDuplicateKey = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalDuplicateKey", - problemMessageTemplate: - r"""The key '#constant' conflicts with another existing key in the map.""", - withArguments: _withArgumentsConstEvalDuplicateKey); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalDuplicateKey", + problemMessageTemplate: + r"""The key '#constant' conflicts with another existing key in the map.""", + withArguments: _withArgumentsConstEvalDuplicateKey, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalDuplicateKey = const Code< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalDuplicateKey", - analyzerCodes: ["EQUAL_KEYS_IN_CONST_MAP"]); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalDuplicateKey", + analyzerCodes: ["EQUAL_KEYS_IN_CONST_MAP"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalDuplicateKey( @@ -442,29 +513,35 @@ Message _withArgumentsConstEvalDuplicateKey( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalDuplicateKey, - problemMessage: - """The key '${constant}' conflicts with another existing key in the map.""" + - labeler.originMessages, - arguments: {'constant': _constant}); + return new Message( + codeConstEvalDuplicateKey, + problemMessage: + """The key '${constant}' conflicts with another existing key in the map.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalElementImplementsEqual = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalElementImplementsEqual", - problemMessageTemplate: - r"""The element '#constant' does not have a primitive operator '=='.""", - withArguments: _withArgumentsConstEvalElementImplementsEqual); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalElementImplementsEqual", + problemMessageTemplate: + r"""The element '#constant' does not have a primitive operator '=='.""", + withArguments: _withArgumentsConstEvalElementImplementsEqual, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalElementImplementsEqual = const Code< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalElementImplementsEqual", - analyzerCodes: ["CONST_SET_ELEMENT_TYPE_IMPLEMENTS_EQUALS"]); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalElementImplementsEqual", + analyzerCodes: ["CONST_SET_ELEMENT_TYPE_IMPLEMENTS_EQUALS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalElementImplementsEqual( @@ -472,22 +549,27 @@ Message _withArgumentsConstEvalElementImplementsEqual( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalElementImplementsEqual, - problemMessage: - """The element '${constant}' does not have a primitive operator '=='.""" + - labeler.originMessages, - arguments: {'constant': _constant}); + return new Message( + codeConstEvalElementImplementsEqual, + problemMessage: + """The element '${constant}' does not have a primitive operator '=='.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalElementNotPrimitiveEquality = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalElementNotPrimitiveEquality", - problemMessageTemplate: - r"""The element '#constant' does not have a primitive equality.""", - withArguments: _withArgumentsConstEvalElementNotPrimitiveEquality); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalElementNotPrimitiveEquality", + problemMessageTemplate: + r"""The element '#constant' does not have a primitive equality.""", + withArguments: _withArgumentsConstEvalElementNotPrimitiveEquality, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -502,11 +584,15 @@ Message _withArgumentsConstEvalElementNotPrimitiveEquality( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalElementNotPrimitiveEquality, - problemMessage: - """The element '${constant}' does not have a primitive equality.""" + - labeler.originMessages, - arguments: {'constant': _constant}); + return new Message( + codeConstEvalElementNotPrimitiveEquality, + problemMessage: + """The element '${constant}' does not have a primitive equality.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -514,13 +600,13 @@ const Template< Message Function( Constant _constant, DartType _type, bool isNonNullableByDefault)> templateConstEvalEqualsOperandNotPrimitiveEquality = const Template< - Message Function(Constant _constant, DartType _type, - bool isNonNullableByDefault)>( - "ConstEvalEqualsOperandNotPrimitiveEquality", - problemMessageTemplate: - r"""Binary operator '==' requires receiver constant '#constant' of a type with primitive equality or type 'double', but was of type '#type'.""", - withArguments: - _withArgumentsConstEvalEqualsOperandNotPrimitiveEquality); + Message Function( + Constant _constant, DartType _type, bool isNonNullableByDefault)>( + "ConstEvalEqualsOperandNotPrimitiveEquality", + problemMessageTemplate: + r"""Binary operator '==' requires receiver constant '#constant' of a type with primitive equality or type 'double', but was of type '#type'.""", + withArguments: _withArgumentsConstEvalEqualsOperandNotPrimitiveEquality, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -540,21 +626,27 @@ Message _withArgumentsConstEvalEqualsOperandNotPrimitiveEquality( List typeParts = labeler.labelType(_type); String constant = constantParts.join(); String type = typeParts.join(); - return new Message(codeConstEvalEqualsOperandNotPrimitiveEquality, - problemMessage: - """Binary operator '==' requires receiver constant '${constant}' of a type with primitive equality or type 'double', but was of type '${type}'.""" + - labeler.originMessages, - arguments: {'constant': _constant, 'type': _type}); + return new Message( + codeConstEvalEqualsOperandNotPrimitiveEquality, + problemMessage: + """Binary operator '==' requires receiver constant '${constant}' of a type with primitive equality or type 'double', but was of type '${type}'.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateConstEvalFreeTypeParameter = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "ConstEvalFreeTypeParameter", - problemMessageTemplate: - r"""The type '#type' is not a constant because it depends on a type parameter, only instantiated types are allowed.""", - withArguments: _withArgumentsConstEvalFreeTypeParameter); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "ConstEvalFreeTypeParameter", + problemMessageTemplate: + r"""The type '#type' is not a constant because it depends on a type parameter, only instantiated types are allowed.""", + withArguments: _withArgumentsConstEvalFreeTypeParameter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -569,11 +661,15 @@ Message _withArgumentsConstEvalFreeTypeParameter( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeConstEvalFreeTypeParameter, - problemMessage: - """The type '${type}' is not a constant because it depends on a type parameter, only instantiated types are allowed.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeConstEvalFreeTypeParameter, + problemMessage: + """The type '${type}' is not a constant because it depends on a type parameter, only instantiated types are allowed.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -581,12 +677,13 @@ const Template< Message Function(String stringOKEmpty, Constant _constant, DartType _type, DartType _type2, bool isNonNullableByDefault)> templateConstEvalInvalidBinaryOperandType = const Template< - Message Function(String stringOKEmpty, Constant _constant, - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ConstEvalInvalidBinaryOperandType", - problemMessageTemplate: - r"""Binary operator '#stringOKEmpty' on '#constant' requires operand of type '#type', but was of type '#type2'.""", - withArguments: _withArgumentsConstEvalInvalidBinaryOperandType); + Message Function(String stringOKEmpty, Constant _constant, + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ConstEvalInvalidBinaryOperandType", + problemMessageTemplate: + r"""Binary operator '#stringOKEmpty' on '#constant' requires operand of type '#type', but was of type '#type2'.""", + withArguments: _withArgumentsConstEvalInvalidBinaryOperandType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -613,16 +710,18 @@ Message _withArgumentsConstEvalInvalidBinaryOperandType( String constant = constantParts.join(); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeConstEvalInvalidBinaryOperandType, - problemMessage: - """Binary operator '${stringOKEmpty}' on '${constant}' requires operand of type '${type}', but was of type '${type2}'.""" + - labeler.originMessages, - arguments: { - 'stringOKEmpty': stringOKEmpty, - 'constant': _constant, - 'type': _type, - 'type2': _type2 - }); + return new Message( + codeConstEvalInvalidBinaryOperandType, + problemMessage: + """Binary operator '${stringOKEmpty}' on '${constant}' requires operand of type '${type}', but was of type '${type2}'.""" + + labeler.originMessages, + arguments: { + 'stringOKEmpty': stringOKEmpty, + 'constant': _constant, + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -630,12 +729,13 @@ const Template< Message Function( Constant _constant, DartType _type, bool isNonNullableByDefault)> templateConstEvalInvalidEqualsOperandType = const Template< - Message Function(Constant _constant, DartType _type, - bool isNonNullableByDefault)>( - "ConstEvalInvalidEqualsOperandType", - problemMessageTemplate: - r"""Binary operator '==' requires receiver constant '#constant' of type 'Null', 'bool', 'int', 'double', or 'String', but was of type '#type'.""", - withArguments: _withArgumentsConstEvalInvalidEqualsOperandType); + Message Function( + Constant _constant, DartType _type, bool isNonNullableByDefault)>( + "ConstEvalInvalidEqualsOperandType", + problemMessageTemplate: + r"""Binary operator '==' requires receiver constant '#constant' of type 'Null', 'bool', 'int', 'double', or 'String', but was of type '#type'.""", + withArguments: _withArgumentsConstEvalInvalidEqualsOperandType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -655,11 +755,16 @@ Message _withArgumentsConstEvalInvalidEqualsOperandType( List typeParts = labeler.labelType(_type); String constant = constantParts.join(); String type = typeParts.join(); - return new Message(codeConstEvalInvalidEqualsOperandType, - problemMessage: - """Binary operator '==' requires receiver constant '${constant}' of type 'Null', 'bool', 'int', 'double', or 'String', but was of type '${type}'.""" + - labeler.originMessages, - arguments: {'constant': _constant, 'type': _type}); + return new Message( + codeConstEvalInvalidEqualsOperandType, + problemMessage: + """Binary operator '==' requires receiver constant '${constant}' of type 'Null', 'bool', 'int', 'double', or 'String', but was of type '${type}'.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -667,24 +772,24 @@ const Template< Message Function(String stringOKEmpty, Constant _constant, bool isNonNullableByDefault)> templateConstEvalInvalidMethodInvocation = const Template< - Message Function( - String stringOKEmpty, - Constant _constant, - bool - isNonNullableByDefault)>("ConstEvalInvalidMethodInvocation", - problemMessageTemplate: - r"""The method '#stringOKEmpty' can't be invoked on '#constant' in a constant expression.""", - withArguments: _withArgumentsConstEvalInvalidMethodInvocation); + Message Function(String stringOKEmpty, Constant _constant, + bool isNonNullableByDefault)>( + "ConstEvalInvalidMethodInvocation", + problemMessageTemplate: + r"""The method '#stringOKEmpty' can't be invoked on '#constant' in a constant expression.""", + withArguments: _withArgumentsConstEvalInvalidMethodInvocation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(String stringOKEmpty, Constant _constant, bool isNonNullableByDefault)> codeConstEvalInvalidMethodInvocation = const Code< - Message Function(String stringOKEmpty, Constant _constant, - bool isNonNullableByDefault)>( - "ConstEvalInvalidMethodInvocation", - analyzerCodes: ["UNDEFINED_OPERATOR"]); + Message Function(String stringOKEmpty, Constant _constant, + bool isNonNullableByDefault)>( + "ConstEvalInvalidMethodInvocation", + analyzerCodes: ["UNDEFINED_OPERATOR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalInvalidMethodInvocation( @@ -693,11 +798,16 @@ Message _withArgumentsConstEvalInvalidMethodInvocation( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalInvalidMethodInvocation, - problemMessage: - """The method '${stringOKEmpty}' can't be invoked on '${constant}' in a constant expression.""" + - labeler.originMessages, - arguments: {'stringOKEmpty': stringOKEmpty, 'constant': _constant}); + return new Message( + codeConstEvalInvalidMethodInvocation, + problemMessage: + """The method '${stringOKEmpty}' can't be invoked on '${constant}' in a constant expression.""" + + labeler.originMessages, + arguments: { + 'stringOKEmpty': stringOKEmpty, + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -705,20 +815,24 @@ const Template< Message Function(String stringOKEmpty, Constant _constant, bool isNonNullableByDefault)> templateConstEvalInvalidPropertyGet = const Template< - Message Function(String stringOKEmpty, Constant _constant, - bool isNonNullableByDefault)>("ConstEvalInvalidPropertyGet", - problemMessageTemplate: - r"""The property '#stringOKEmpty' can't be accessed on '#constant' in a constant expression.""", - withArguments: _withArgumentsConstEvalInvalidPropertyGet); + Message Function(String stringOKEmpty, Constant _constant, + bool isNonNullableByDefault)>( + "ConstEvalInvalidPropertyGet", + problemMessageTemplate: + r"""The property '#stringOKEmpty' can't be accessed on '#constant' in a constant expression.""", + withArguments: _withArgumentsConstEvalInvalidPropertyGet, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(String stringOKEmpty, Constant _constant, bool isNonNullableByDefault)> codeConstEvalInvalidPropertyGet = const Code< - Message Function(String stringOKEmpty, Constant _constant, - bool isNonNullableByDefault)>("ConstEvalInvalidPropertyGet", - analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"]); + Message Function(String stringOKEmpty, Constant _constant, + bool isNonNullableByDefault)>( + "ConstEvalInvalidPropertyGet", + analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalInvalidPropertyGet( @@ -727,11 +841,16 @@ Message _withArgumentsConstEvalInvalidPropertyGet( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalInvalidPropertyGet, - problemMessage: - """The property '${stringOKEmpty}' can't be accessed on '${constant}' in a constant expression.""" + - labeler.originMessages, - arguments: {'stringOKEmpty': stringOKEmpty, 'constant': _constant}); + return new Message( + codeConstEvalInvalidPropertyGet, + problemMessage: + """The property '${stringOKEmpty}' can't be accessed on '${constant}' in a constant expression.""" + + labeler.originMessages, + arguments: { + 'stringOKEmpty': stringOKEmpty, + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -739,20 +858,24 @@ const Template< Message Function(String stringOKEmpty, Constant _constant, bool isNonNullableByDefault)> templateConstEvalInvalidRecordIndexGet = const Template< - Message Function(String stringOKEmpty, Constant _constant, - bool isNonNullableByDefault)>("ConstEvalInvalidRecordIndexGet", - problemMessageTemplate: - r"""The property '#stringOKEmpty' can't be accessed on '#constant' in a constant expression.""", - withArguments: _withArgumentsConstEvalInvalidRecordIndexGet); + Message Function(String stringOKEmpty, Constant _constant, + bool isNonNullableByDefault)>( + "ConstEvalInvalidRecordIndexGet", + problemMessageTemplate: + r"""The property '#stringOKEmpty' can't be accessed on '#constant' in a constant expression.""", + withArguments: _withArgumentsConstEvalInvalidRecordIndexGet, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(String stringOKEmpty, Constant _constant, bool isNonNullableByDefault)> codeConstEvalInvalidRecordIndexGet = const Code< - Message Function(String stringOKEmpty, Constant _constant, - bool isNonNullableByDefault)>("ConstEvalInvalidRecordIndexGet", - analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"]); + Message Function(String stringOKEmpty, Constant _constant, + bool isNonNullableByDefault)>( + "ConstEvalInvalidRecordIndexGet", + analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalInvalidRecordIndexGet( @@ -761,11 +884,16 @@ Message _withArgumentsConstEvalInvalidRecordIndexGet( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalInvalidRecordIndexGet, - problemMessage: - """The property '${stringOKEmpty}' can't be accessed on '${constant}' in a constant expression.""" + - labeler.originMessages, - arguments: {'stringOKEmpty': stringOKEmpty, 'constant': _constant}); + return new Message( + codeConstEvalInvalidRecordIndexGet, + problemMessage: + """The property '${stringOKEmpty}' can't be accessed on '${constant}' in a constant expression.""" + + labeler.originMessages, + arguments: { + 'stringOKEmpty': stringOKEmpty, + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -773,20 +901,24 @@ const Template< Message Function(String stringOKEmpty, Constant _constant, bool isNonNullableByDefault)> templateConstEvalInvalidRecordNameGet = const Template< - Message Function(String stringOKEmpty, Constant _constant, - bool isNonNullableByDefault)>("ConstEvalInvalidRecordNameGet", - problemMessageTemplate: - r"""The property '#stringOKEmpty' can't be accessed on '#constant' in a constant expression.""", - withArguments: _withArgumentsConstEvalInvalidRecordNameGet); + Message Function(String stringOKEmpty, Constant _constant, + bool isNonNullableByDefault)>( + "ConstEvalInvalidRecordNameGet", + problemMessageTemplate: + r"""The property '#stringOKEmpty' can't be accessed on '#constant' in a constant expression.""", + withArguments: _withArgumentsConstEvalInvalidRecordNameGet, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(String stringOKEmpty, Constant _constant, bool isNonNullableByDefault)> codeConstEvalInvalidRecordNameGet = const Code< - Message Function(String stringOKEmpty, Constant _constant, - bool isNonNullableByDefault)>("ConstEvalInvalidRecordNameGet", - analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"]); + Message Function(String stringOKEmpty, Constant _constant, + bool isNonNullableByDefault)>( + "ConstEvalInvalidRecordNameGet", + analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalInvalidRecordNameGet( @@ -795,31 +927,37 @@ Message _withArgumentsConstEvalInvalidRecordNameGet( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalInvalidRecordNameGet, - problemMessage: - """The property '${stringOKEmpty}' can't be accessed on '${constant}' in a constant expression.""" + - labeler.originMessages, - arguments: {'stringOKEmpty': stringOKEmpty, 'constant': _constant}); + return new Message( + codeConstEvalInvalidRecordNameGet, + problemMessage: + """The property '${stringOKEmpty}' can't be accessed on '${constant}' in a constant expression.""" + + labeler.originMessages, + arguments: { + 'stringOKEmpty': stringOKEmpty, + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalInvalidStringInterpolationOperand = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalInvalidStringInterpolationOperand", - problemMessageTemplate: - r"""The constant value '#constant' can't be used as part of a string interpolation in a constant expression. + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalInvalidStringInterpolationOperand", + problemMessageTemplate: + r"""The constant value '#constant' can't be used as part of a string interpolation in a constant expression. Only values of type 'null', 'bool', 'int', 'double', or 'String' can be used.""", - withArguments: - _withArgumentsConstEvalInvalidStringInterpolationOperand); + withArguments: _withArgumentsConstEvalInvalidStringInterpolationOperand, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalInvalidStringInterpolationOperand = const Code< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalInvalidStringInterpolationOperand", - analyzerCodes: ["CONST_EVAL_TYPE_BOOL_NUM_STRING"]); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalInvalidStringInterpolationOperand", + analyzerCodes: ["CONST_EVAL_TYPE_BOOL_NUM_STRING"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalInvalidStringInterpolationOperand( @@ -827,30 +965,36 @@ Message _withArgumentsConstEvalInvalidStringInterpolationOperand( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalInvalidStringInterpolationOperand, - problemMessage: - """The constant value '${constant}' can't be used as part of a string interpolation in a constant expression. + return new Message( + codeConstEvalInvalidStringInterpolationOperand, + problemMessage: + """The constant value '${constant}' can't be used as part of a string interpolation in a constant expression. Only values of type 'null', 'bool', 'int', 'double', or 'String' can be used.""" + - labeler.originMessages, - arguments: {'constant': _constant}); + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalInvalidSymbolName = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalInvalidSymbolName", - problemMessageTemplate: - r"""The symbol name must be a valid public Dart member name, public constructor name, or library name, optionally qualified, but was '#constant'.""", - withArguments: _withArgumentsConstEvalInvalidSymbolName); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalInvalidSymbolName", + problemMessageTemplate: + r"""The symbol name must be a valid public Dart member name, public constructor name, or library name, optionally qualified, but was '#constant'.""", + withArguments: _withArgumentsConstEvalInvalidSymbolName, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalInvalidSymbolName = const Code< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalInvalidSymbolName", - analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"]); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalInvalidSymbolName", + analyzerCodes: ["CONST_EVAL_THROWS_EXCEPTION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalInvalidSymbolName( @@ -858,27 +1002,29 @@ Message _withArgumentsConstEvalInvalidSymbolName( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalInvalidSymbolName, - problemMessage: - """The symbol name must be a valid public Dart member name, public constructor name, or library name, optionally qualified, but was '${constant}'.""" + - labeler.originMessages, - arguments: {'constant': _constant}); + return new Message( + codeConstEvalInvalidSymbolName, + problemMessage: + """The symbol name must be a valid public Dart member name, public constructor name, or library name, optionally qualified, but was '${constant}'.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - Constant _constant, - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateConstEvalInvalidType = const Template< + Message Function(Constant _constant, DartType _type, DartType _type2, + bool isNonNullableByDefault)> templateConstEvalInvalidType = + const Template< Message Function(Constant _constant, DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ConstEvalInvalidType", - problemMessageTemplate: - r"""Expected constant '#constant' to be of type '#type', but was of type '#type2'.""", - withArguments: _withArgumentsConstEvalInvalidType); + "ConstEvalInvalidType", + problemMessageTemplate: + r"""Expected constant '#constant' to be of type '#type', but was of type '#type2'.""", + withArguments: _withArgumentsConstEvalInvalidType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -899,31 +1045,37 @@ Message _withArgumentsConstEvalInvalidType(Constant _constant, DartType _type, String constant = constantParts.join(); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeConstEvalInvalidType, - problemMessage: - """Expected constant '${constant}' to be of type '${type}', but was of type '${type2}'.""" + - labeler.originMessages, - arguments: {'constant': _constant, 'type': _type, 'type2': _type2}); + return new Message( + codeConstEvalInvalidType, + problemMessage: + """Expected constant '${constant}' to be of type '${type}', but was of type '${type2}'.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalKeyImplementsEqual = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalKeyImplementsEqual", - problemMessageTemplate: - r"""The key '#constant' does not have a primitive operator '=='.""", - withArguments: _withArgumentsConstEvalKeyImplementsEqual); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalKeyImplementsEqual", + problemMessageTemplate: + r"""The key '#constant' does not have a primitive operator '=='.""", + withArguments: _withArgumentsConstEvalKeyImplementsEqual, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeConstEvalKeyImplementsEqual = const Code< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalKeyImplementsEqual", - analyzerCodes: [ - "CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS" - ]); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalKeyImplementsEqual", + analyzerCodes: ["CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQUALS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsConstEvalKeyImplementsEqual( @@ -931,22 +1083,27 @@ Message _withArgumentsConstEvalKeyImplementsEqual( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalKeyImplementsEqual, - problemMessage: - """The key '${constant}' does not have a primitive operator '=='.""" + - labeler.originMessages, - arguments: {'constant': _constant}); + return new Message( + codeConstEvalKeyImplementsEqual, + problemMessage: + """The key '${constant}' does not have a primitive operator '=='.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalKeyNotPrimitiveEquality = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalKeyNotPrimitiveEquality", - problemMessageTemplate: - r"""The key '#constant' does not have a primitive equality.""", - withArguments: _withArgumentsConstEvalKeyNotPrimitiveEquality); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalKeyNotPrimitiveEquality", + problemMessageTemplate: + r"""The key '#constant' does not have a primitive equality.""", + withArguments: _withArgumentsConstEvalKeyNotPrimitiveEquality, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -961,21 +1118,26 @@ Message _withArgumentsConstEvalKeyNotPrimitiveEquality( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalKeyNotPrimitiveEquality, - problemMessage: - """The key '${constant}' does not have a primitive equality.""" + - labeler.originMessages, - arguments: {'constant': _constant}); + return new Message( + codeConstEvalKeyNotPrimitiveEquality, + problemMessage: + """The key '${constant}' does not have a primitive equality.""" + + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function(Constant _constant, bool isNonNullableByDefault)> templateConstEvalUnhandledException = const Template< - Message Function(Constant _constant, bool isNonNullableByDefault)>( - "ConstEvalUnhandledException", - problemMessageTemplate: r"""Unhandled exception: #constant""", - withArguments: _withArgumentsConstEvalUnhandledException); + Message Function(Constant _constant, bool isNonNullableByDefault)>( + "ConstEvalUnhandledException", + problemMessageTemplate: r"""Unhandled exception: #constant""", + withArguments: _withArgumentsConstEvalUnhandledException, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -990,37 +1152,39 @@ Message _withArgumentsConstEvalUnhandledException( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List constantParts = labeler.labelConstant(_constant); String constant = constantParts.join(); - return new Message(codeConstEvalUnhandledException, - problemMessage: - """Unhandled exception: ${constant}""" + labeler.originMessages, - arguments: {'constant': _constant}); + return new Message( + codeConstEvalUnhandledException, + problemMessage: + """Unhandled exception: ${constant}""" + labeler.originMessages, + arguments: { + 'constant': _constant, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - String name, - bool - isNonNullableByDefault)> templateDeferredTypeAnnotation = const Template< + Message Function( + DartType _type, String name, bool isNonNullableByDefault)> + templateDeferredTypeAnnotation = const Template< Message Function( DartType _type, String name, bool isNonNullableByDefault)>( - "DeferredTypeAnnotation", - problemMessageTemplate: - r"""The type '#type' is deferred loaded via prefix '#name' and can't be used as a type annotation.""", - correctionMessageTemplate: - r"""Try removing 'deferred' from the import of '#name' or use a supertype of '#type' that isn't deferred.""", - withArguments: _withArgumentsDeferredTypeAnnotation); + "DeferredTypeAnnotation", + problemMessageTemplate: + r"""The type '#type' is deferred loaded via prefix '#name' and can't be used as a type annotation.""", + correctionMessageTemplate: + r"""Try removing 'deferred' from the import of '#name' or use a supertype of '#type' that isn't deferred.""", + withArguments: _withArgumentsDeferredTypeAnnotation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< - Message Function( - DartType _type, String name, bool isNonNullableByDefault)> - codeDeferredTypeAnnotation = const Code< - Message Function( - DartType _type, String name, bool isNonNullableByDefault)>( - "DeferredTypeAnnotation", - analyzerCodes: ["TYPE_ANNOTATION_DEFERRED_CLASS"]); + Message Function(DartType _type, String name, + bool isNonNullableByDefault)> codeDeferredTypeAnnotation = const Code< + Message Function(DartType _type, String name, bool isNonNullableByDefault)>( + "DeferredTypeAnnotation", + analyzerCodes: ["TYPE_ANNOTATION_DEFERRED_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsDeferredTypeAnnotation( @@ -1030,12 +1194,18 @@ Message _withArgumentsDeferredTypeAnnotation( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); String type = typeParts.join(); - return new Message(codeDeferredTypeAnnotation, - problemMessage: - """The type '${type}' is deferred loaded via prefix '${name}' and can't be used as a type annotation.""" + - labeler.originMessages, - correctionMessage: """Try removing 'deferred' from the import of '${name}' or use a supertype of '${type}' that isn't deferred.""", - arguments: {'type': _type, 'name': name}); + return new Message( + codeDeferredTypeAnnotation, + problemMessage: + """The type '${type}' is deferred loaded via prefix '${name}' and can't be used as a type annotation.""" + + labeler.originMessages, + correctionMessage: + """Try removing 'deferred' from the import of '${name}' or use a supertype of '${type}' that isn't deferred.""", + arguments: { + 'type': _type, + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1043,12 +1213,12 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateFfiDartTypeMismatch = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "FfiDartTypeMismatch", - problemMessageTemplate: - r"""Expected '#type' to be a subtype of '#type2'.""", - withArguments: _withArgumentsFfiDartTypeMismatch); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "FfiDartTypeMismatch", + problemMessageTemplate: r"""Expected '#type' to be a subtype of '#type2'.""", + withArguments: _withArgumentsFfiDartTypeMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -1068,20 +1238,26 @@ Message _withArgumentsFfiDartTypeMismatch( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeFfiDartTypeMismatch, - problemMessage: """Expected '${type}' to be a subtype of '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeFfiDartTypeMismatch, + problemMessage: """Expected '${type}' to be a subtype of '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiExpectedExceptionalReturn = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "FfiExpectedExceptionalReturn", - problemMessageTemplate: - r"""Expected an exceptional return value for a native callback returning '#type'.""", - withArguments: _withArgumentsFfiExpectedExceptionalReturn); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "FfiExpectedExceptionalReturn", + problemMessageTemplate: + r"""Expected an exceptional return value for a native callback returning '#type'.""", + withArguments: _withArgumentsFfiExpectedExceptionalReturn, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -1096,21 +1272,26 @@ Message _withArgumentsFfiExpectedExceptionalReturn( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeFfiExpectedExceptionalReturn, - problemMessage: - """Expected an exceptional return value for a native callback returning '${type}'.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeFfiExpectedExceptionalReturn, + problemMessage: + """Expected an exceptional return value for a native callback returning '${type}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiExpectedNoExceptionalReturn = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "FfiExpectedNoExceptionalReturn", - problemMessageTemplate: - r"""Exceptional return value cannot be provided for a native callback returning '#type'.""", - withArguments: _withArgumentsFfiExpectedNoExceptionalReturn); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "FfiExpectedNoExceptionalReturn", + problemMessageTemplate: + r"""Exceptional return value cannot be provided for a native callback returning '#type'.""", + withArguments: _withArgumentsFfiExpectedNoExceptionalReturn, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -1125,21 +1306,26 @@ Message _withArgumentsFfiExpectedNoExceptionalReturn( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeFfiExpectedNoExceptionalReturn, - problemMessage: - """Exceptional return value cannot be provided for a native callback returning '${type}'.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeFfiExpectedNoExceptionalReturn, + problemMessage: + """Exceptional return value cannot be provided for a native callback returning '${type}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateFfiNativeCallableListenerReturnVoid = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "FfiNativeCallableListenerReturnVoid", - problemMessageTemplate: - r"""The return type of the function passed to NativeCallable.listener must be void rather than '#type'.""", - withArguments: _withArgumentsFfiNativeCallableListenerReturnVoid); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "FfiNativeCallableListenerReturnVoid", + problemMessageTemplate: + r"""The return type of the function passed to NativeCallable.listener must be void rather than '#type'.""", + withArguments: _withArgumentsFfiNativeCallableListenerReturnVoid, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -1154,24 +1340,26 @@ Message _withArgumentsFfiNativeCallableListenerReturnVoid( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeFfiNativeCallableListenerReturnVoid, - problemMessage: - """The return type of the function passed to NativeCallable.listener must be void rather than '${type}'.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeFfiNativeCallableListenerReturnVoid, + problemMessage: + """The return type of the function passed to NativeCallable.listener must be void rather than '${type}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - DartType _type, - bool - isNonNullableByDefault)> templateFfiTypeInvalid = const Template< +const Template + templateFfiTypeInvalid = const Template< Message Function(DartType _type, bool isNonNullableByDefault)>( - "FfiTypeInvalid", - problemMessageTemplate: - r"""Expected type '#type' to be a valid and instantiated subtype of 'NativeType'.""", - withArguments: _withArgumentsFfiTypeInvalid); + "FfiTypeInvalid", + problemMessageTemplate: + r"""Expected type '#type' to be a valid and instantiated subtype of 'NativeType'.""", + withArguments: _withArgumentsFfiTypeInvalid, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -1186,26 +1374,28 @@ Message _withArgumentsFfiTypeInvalid( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeFfiTypeInvalid, - problemMessage: - """Expected type '${type}' to be a valid and instantiated subtype of 'NativeType'.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeFfiTypeInvalid, + problemMessage: + """Expected type '${type}' to be a valid and instantiated subtype of 'NativeType'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - DartType _type3, - bool - isNonNullableByDefault)> templateFfiTypeMismatch = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - bool isNonNullableByDefault)>("FfiTypeMismatch", - problemMessageTemplate: - r"""Expected type '#type' to be '#type2', which is the Dart type corresponding to '#type3'.""", - withArguments: _withArgumentsFfiTypeMismatch); + Message Function(DartType _type, DartType _type2, DartType _type3, + bool isNonNullableByDefault)> templateFfiTypeMismatch = const Template< + Message Function(DartType _type, DartType _type2, DartType _type3, + bool isNonNullableByDefault)>( + "FfiTypeMismatch", + problemMessageTemplate: + r"""Expected type '#type' to be '#type2', which is the Dart type corresponding to '#type3'.""", + withArguments: _withArgumentsFfiTypeMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -1226,11 +1416,17 @@ Message _withArgumentsFfiTypeMismatch(DartType _type, DartType _type2, String type = typeParts.join(); String type2 = type2Parts.join(); String type3 = type3Parts.join(); - return new Message(codeFfiTypeMismatch, - problemMessage: - """Expected type '${type}' to be '${type2}', which is the Dart type corresponding to '${type3}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2, 'type3': _type3}); + return new Message( + codeFfiTypeMismatch, + problemMessage: + """Expected type '${type}' to be '${type2}', which is the Dart type corresponding to '${type3}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1238,13 +1434,13 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateFieldNonNullableNotInitializedByConstructorError = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "FieldNonNullableNotInitializedByConstructorError", - problemMessageTemplate: - r"""This constructor should initialize field '#name' because its type '#type' doesn't allow null.""", - withArguments: - _withArgumentsFieldNonNullableNotInitializedByConstructorError); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "FieldNonNullableNotInitializedByConstructorError", + problemMessageTemplate: + r"""This constructor should initialize field '#name' because its type '#type' doesn't allow null.""", + withArguments: _withArgumentsFieldNonNullableNotInitializedByConstructorError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -1264,11 +1460,16 @@ Message _withArgumentsFieldNonNullableNotInitializedByConstructorError( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeFieldNonNullableNotInitializedByConstructorError, - problemMessage: - """This constructor should initialize field '${name}' because its type '${type}' doesn't allow null.""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type}); + return new Message( + codeFieldNonNullableNotInitializedByConstructorError, + problemMessage: + """This constructor should initialize field '${name}' because its type '${type}' doesn't allow null.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1276,12 +1477,13 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateFieldNonNullableWithoutInitializerError = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "FieldNonNullableWithoutInitializerError", - problemMessageTemplate: - r"""Field '#name' should be initialized because its type '#type' doesn't allow null.""", - withArguments: _withArgumentsFieldNonNullableWithoutInitializerError); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "FieldNonNullableWithoutInitializerError", + problemMessageTemplate: + r"""Field '#name' should be initialized because its type '#type' doesn't allow null.""", + withArguments: _withArgumentsFieldNonNullableWithoutInitializerError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -1301,11 +1503,16 @@ Message _withArgumentsFieldNonNullableWithoutInitializerError( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeFieldNonNullableWithoutInitializerError, - problemMessage: - """Field '${name}' should be initialized because its type '${type}' doesn't allow null.""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type}); + return new Message( + codeFieldNonNullableWithoutInitializerError, + problemMessage: + """Field '${name}' should be initialized because its type '${type}' doesn't allow null.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1313,24 +1520,25 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateForInLoopElementTypeNotAssignable = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ForInLoopElementTypeNotAssignable", - problemMessageTemplate: - r"""A value of type '#type' can't be assigned to a variable of type '#type2'.""", - correctionMessageTemplate: - r"""Try changing the type of the variable.""", - withArguments: _withArgumentsForInLoopElementTypeNotAssignable); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ForInLoopElementTypeNotAssignable", + problemMessageTemplate: + r"""A value of type '#type' can't be assigned to a variable of type '#type2'.""", + correctionMessageTemplate: r"""Try changing the type of the variable.""", + withArguments: _withArgumentsForInLoopElementTypeNotAssignable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeForInLoopElementTypeNotAssignable = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ForInLoopElementTypeNotAssignable", - analyzerCodes: ["FOR_IN_OF_INVALID_ELEMENT_TYPE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ForInLoopElementTypeNotAssignable", + analyzerCodes: ["FOR_IN_OF_INVALID_ELEMENT_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsForInLoopElementTypeNotAssignable( @@ -1340,12 +1548,17 @@ Message _withArgumentsForInLoopElementTypeNotAssignable( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeForInLoopElementTypeNotAssignable, - problemMessage: - """A value of type '${type}' can't be assigned to a variable of type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Try changing the type of the variable.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeForInLoopElementTypeNotAssignable, + problemMessage: + """A value of type '${type}' can't be assigned to a variable of type '${type2}'.""" + + labeler.originMessages, + correctionMessage: """Try changing the type of the variable.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1353,25 +1566,25 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateForInLoopElementTypeNotAssignableNullability = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ForInLoopElementTypeNotAssignableNullability", - problemMessageTemplate: - r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type' is nullable and '#type2' isn't.""", - correctionMessageTemplate: - r"""Try changing the type of the variable.""", - withArguments: - _withArgumentsForInLoopElementTypeNotAssignableNullability); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ForInLoopElementTypeNotAssignableNullability", + problemMessageTemplate: + r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type' is nullable and '#type2' isn't.""", + correctionMessageTemplate: r"""Try changing the type of the variable.""", + withArguments: _withArgumentsForInLoopElementTypeNotAssignableNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeForInLoopElementTypeNotAssignableNullability = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ForInLoopElementTypeNotAssignableNullability", - analyzerCodes: ["FOR_IN_OF_INVALID_ELEMENT_TYPE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ForInLoopElementTypeNotAssignableNullability", + analyzerCodes: ["FOR_IN_OF_INVALID_ELEMENT_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsForInLoopElementTypeNotAssignableNullability( @@ -1381,12 +1594,17 @@ Message _withArgumentsForInLoopElementTypeNotAssignableNullability( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeForInLoopElementTypeNotAssignableNullability, - problemMessage: - """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + - labeler.originMessages, - correctionMessage: """Try changing the type of the variable.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeForInLoopElementTypeNotAssignableNullability, + problemMessage: + """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + + labeler.originMessages, + correctionMessage: """Try changing the type of the variable.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1394,25 +1612,25 @@ const Template< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> templateForInLoopElementTypeNotAssignablePartNullability = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "ForInLoopElementTypeNotAssignablePartNullability", - problemMessageTemplate: - r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type3' is nullable and '#type4' isn't.""", - correctionMessageTemplate: - r"""Try changing the type of the variable.""", - withArguments: - _withArgumentsForInLoopElementTypeNotAssignablePartNullability); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "ForInLoopElementTypeNotAssignablePartNullability", + problemMessageTemplate: + r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type3' is nullable and '#type4' isn't.""", + correctionMessageTemplate: r"""Try changing the type of the variable.""", + withArguments: _withArgumentsForInLoopElementTypeNotAssignablePartNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> codeForInLoopElementTypeNotAssignablePartNullability = const Code< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "ForInLoopElementTypeNotAssignablePartNullability", - analyzerCodes: ["FOR_IN_OF_INVALID_ELEMENT_TYPE"]); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "ForInLoopElementTypeNotAssignablePartNullability", + analyzerCodes: ["FOR_IN_OF_INVALID_ELEMENT_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsForInLoopElementTypeNotAssignablePartNullability( @@ -1430,17 +1648,19 @@ Message _withArgumentsForInLoopElementTypeNotAssignablePartNullability( String type2 = type2Parts.join(); String type3 = type3Parts.join(); String type4 = type4Parts.join(); - return new Message(codeForInLoopElementTypeNotAssignablePartNullability, - problemMessage: - """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + - labeler.originMessages, - correctionMessage: """Try changing the type of the variable.""", - arguments: { - 'type': _type, - 'type2': _type2, - 'type3': _type3, - 'type4': _type4 - }); + return new Message( + codeForInLoopElementTypeNotAssignablePartNullability, + problemMessage: + """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + + labeler.originMessages, + correctionMessage: """Try changing the type of the variable.""", + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + 'type4': _type4, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1448,22 +1668,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateForInLoopTypeNotIterable = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ForInLoopTypeNotIterable", - problemMessageTemplate: - r"""The type '#type' used in the 'for' loop must implement '#type2'.""", - withArguments: _withArgumentsForInLoopTypeNotIterable); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ForInLoopTypeNotIterable", + problemMessageTemplate: + r"""The type '#type' used in the 'for' loop must implement '#type2'.""", + withArguments: _withArgumentsForInLoopTypeNotIterable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeForInLoopTypeNotIterable = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ForInLoopTypeNotIterable", - analyzerCodes: ["FOR_IN_OF_INVALID_TYPE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ForInLoopTypeNotIterable", + analyzerCodes: ["FOR_IN_OF_INVALID_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsForInLoopTypeNotIterable( @@ -1473,11 +1695,16 @@ Message _withArgumentsForInLoopTypeNotIterable( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeForInLoopTypeNotIterable, - problemMessage: - """The type '${type}' used in the 'for' loop must implement '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeForInLoopTypeNotIterable, + problemMessage: + """The type '${type}' used in the 'for' loop must implement '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1485,22 +1712,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateForInLoopTypeNotIterableNullability = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ForInLoopTypeNotIterableNullability", - problemMessageTemplate: - r"""The type '#type' used in the 'for' loop must implement '#type2' because '#type' is nullable and '#type2' isn't.""", - withArguments: _withArgumentsForInLoopTypeNotIterableNullability); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ForInLoopTypeNotIterableNullability", + problemMessageTemplate: + r"""The type '#type' used in the 'for' loop must implement '#type2' because '#type' is nullable and '#type2' isn't.""", + withArguments: _withArgumentsForInLoopTypeNotIterableNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeForInLoopTypeNotIterableNullability = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "ForInLoopTypeNotIterableNullability", - analyzerCodes: ["FOR_IN_OF_INVALID_TYPE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "ForInLoopTypeNotIterableNullability", + analyzerCodes: ["FOR_IN_OF_INVALID_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsForInLoopTypeNotIterableNullability( @@ -1510,11 +1739,16 @@ Message _withArgumentsForInLoopTypeNotIterableNullability( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeForInLoopTypeNotIterableNullability, - problemMessage: - """The type '${type}' used in the 'for' loop must implement '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeForInLoopTypeNotIterableNullability, + problemMessage: + """The type '${type}' used in the 'for' loop must implement '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1522,22 +1756,24 @@ const Template< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> templateForInLoopTypeNotIterablePartNullability = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "ForInLoopTypeNotIterablePartNullability", - problemMessageTemplate: - r"""The type '#type' used in the 'for' loop must implement '#type2' because '#type3' is nullable and '#type4' isn't.""", - withArguments: _withArgumentsForInLoopTypeNotIterablePartNullability); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "ForInLoopTypeNotIterablePartNullability", + problemMessageTemplate: + r"""The type '#type' used in the 'for' loop must implement '#type2' because '#type3' is nullable and '#type4' isn't.""", + withArguments: _withArgumentsForInLoopTypeNotIterablePartNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> codeForInLoopTypeNotIterablePartNullability = const Code< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "ForInLoopTypeNotIterablePartNullability", - analyzerCodes: ["FOR_IN_OF_INVALID_TYPE"]); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "ForInLoopTypeNotIterablePartNullability", + analyzerCodes: ["FOR_IN_OF_INVALID_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsForInLoopTypeNotIterablePartNullability( @@ -1555,16 +1791,18 @@ Message _withArgumentsForInLoopTypeNotIterablePartNullability( String type2 = type2Parts.join(); String type3 = type3Parts.join(); String type4 = type4Parts.join(); - return new Message(codeForInLoopTypeNotIterablePartNullability, - problemMessage: - """The type '${type}' used in the 'for' loop must implement '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'type2': _type2, - 'type3': _type3, - 'type4': _type4 - }); + return new Message( + codeForInLoopTypeNotIterablePartNullability, + problemMessage: + """The type '${type}' used in the 'for' loop must implement '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + 'type4': _type4, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1572,25 +1810,26 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateGenericFunctionTypeAsTypeArgumentThroughTypedef = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "GenericFunctionTypeAsTypeArgumentThroughTypedef", - problemMessageTemplate: - r"""Generic function type '#type' used as a type argument through typedef '#type2'.""", - correctionMessageTemplate: - r"""Try providing a non-generic function type explicitly.""", - withArguments: - _withArgumentsGenericFunctionTypeAsTypeArgumentThroughTypedef); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "GenericFunctionTypeAsTypeArgumentThroughTypedef", + problemMessageTemplate: + r"""Generic function type '#type' used as a type argument through typedef '#type2'.""", + correctionMessageTemplate: + r"""Try providing a non-generic function type explicitly.""", + withArguments: _withArgumentsGenericFunctionTypeAsTypeArgumentThroughTypedef, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeGenericFunctionTypeAsTypeArgumentThroughTypedef = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "GenericFunctionTypeAsTypeArgumentThroughTypedef", - analyzerCodes: ["GENERIC_FUNCTION_CANNOT_BE_TYPE_ARGUMENT"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "GenericFunctionTypeAsTypeArgumentThroughTypedef", + analyzerCodes: ["GENERIC_FUNCTION_CANNOT_BE_TYPE_ARGUMENT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsGenericFunctionTypeAsTypeArgumentThroughTypedef( @@ -1600,32 +1839,39 @@ Message _withArgumentsGenericFunctionTypeAsTypeArgumentThroughTypedef( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeGenericFunctionTypeAsTypeArgumentThroughTypedef, - problemMessage: - """Generic function type '${type}' used as a type argument through typedef '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Try providing a non-generic function type explicitly.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeGenericFunctionTypeAsTypeArgumentThroughTypedef, + problemMessage: + """Generic function type '${type}' used as a type argument through typedef '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Try providing a non-generic function type explicitly.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateGenericFunctionTypeInferredAsActualTypeArgument = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "GenericFunctionTypeInferredAsActualTypeArgument", - problemMessageTemplate: - r"""Generic function type '#type' inferred as a type argument.""", - correctionMessageTemplate: - r"""Try providing a non-generic function type explicitly.""", - withArguments: - _withArgumentsGenericFunctionTypeInferredAsActualTypeArgument); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "GenericFunctionTypeInferredAsActualTypeArgument", + problemMessageTemplate: + r"""Generic function type '#type' inferred as a type argument.""", + correctionMessageTemplate: + r"""Try providing a non-generic function type explicitly.""", + withArguments: _withArgumentsGenericFunctionTypeInferredAsActualTypeArgument, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeGenericFunctionTypeInferredAsActualTypeArgument = const Code( - "GenericFunctionTypeInferredAsActualTypeArgument", - analyzerCodes: ["GENERIC_FUNCTION_CANNOT_BE_TYPE_ARGUMENT"]); + "GenericFunctionTypeInferredAsActualTypeArgument", + analyzerCodes: ["GENERIC_FUNCTION_CANNOT_BE_TYPE_ARGUMENT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsGenericFunctionTypeInferredAsActualTypeArgument( @@ -1633,32 +1879,38 @@ Message _withArgumentsGenericFunctionTypeInferredAsActualTypeArgument( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeGenericFunctionTypeInferredAsActualTypeArgument, - problemMessage: - """Generic function type '${type}' inferred as a type argument.""" + - labeler.originMessages, - correctionMessage: - """Try providing a non-generic function type explicitly.""", - arguments: {'type': _type}); + return new Message( + codeGenericFunctionTypeInferredAsActualTypeArgument, + problemMessage: + """Generic function type '${type}' inferred as a type argument.""" + + labeler.originMessages, + correctionMessage: + """Try providing a non-generic function type explicitly.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateImplicitCallOfNonMethod = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "ImplicitCallOfNonMethod", - problemMessageTemplate: - r"""Cannot invoke an instance of '#type' because it declares 'call' to be something other than a method.""", - correctionMessageTemplate: - r"""Try changing 'call' to a method or explicitly invoke 'call'.""", - withArguments: _withArgumentsImplicitCallOfNonMethod); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "ImplicitCallOfNonMethod", + problemMessageTemplate: + r"""Cannot invoke an instance of '#type' because it declares 'call' to be something other than a method.""", + correctionMessageTemplate: + r"""Try changing 'call' to a method or explicitly invoke 'call'.""", + withArguments: _withArgumentsImplicitCallOfNonMethod, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeImplicitCallOfNonMethod = const Code( - "ImplicitCallOfNonMethod", - analyzerCodes: ["IMPLICIT_CALL_OF_NON_METHOD"]); + "ImplicitCallOfNonMethod", + analyzerCodes: ["IMPLICIT_CALL_OF_NON_METHOD"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsImplicitCallOfNonMethod( @@ -1666,25 +1918,28 @@ Message _withArgumentsImplicitCallOfNonMethod( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeImplicitCallOfNonMethod, - problemMessage: - """Cannot invoke an instance of '${type}' because it declares 'call' to be something other than a method.""" + - labeler.originMessages, - correctionMessage: """Try changing 'call' to a method or explicitly invoke 'call'.""", - arguments: {'type': _type}); + return new Message( + codeImplicitCallOfNonMethod, + problemMessage: + """Cannot invoke an instance of '${type}' because it declares 'call' to be something other than a method.""" + + labeler.originMessages, + correctionMessage: + """Try changing 'call' to a method or explicitly invoke 'call'.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - DartType _type, - bool - isNonNullableByDefault)> templateImplicitReturnNull = const Template< +const Template + templateImplicitReturnNull = const Template< Message Function(DartType _type, bool isNonNullableByDefault)>( - "ImplicitReturnNull", - problemMessageTemplate: - r"""A non-null value must be returned since the return type '#type' doesn't allow null.""", - withArguments: _withArgumentsImplicitReturnNull); + "ImplicitReturnNull", + problemMessageTemplate: + r"""A non-null value must be returned since the return type '#type' doesn't allow null.""", + withArguments: _withArgumentsImplicitReturnNull, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -1699,11 +1954,15 @@ Message _withArgumentsImplicitReturnNull( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeImplicitReturnNull, - problemMessage: - """A non-null value must be returned since the return type '${type}' doesn't allow null.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeImplicitReturnNull, + problemMessage: + """A non-null value must be returned since the return type '${type}' doesn't allow null.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1711,22 +1970,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateIncompatibleRedirecteeFunctionType = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "IncompatibleRedirecteeFunctionType", - problemMessageTemplate: - r"""The constructor function type '#type' isn't a subtype of '#type2'.""", - withArguments: _withArgumentsIncompatibleRedirecteeFunctionType); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "IncompatibleRedirecteeFunctionType", + problemMessageTemplate: + r"""The constructor function type '#type' isn't a subtype of '#type2'.""", + withArguments: _withArgumentsIncompatibleRedirecteeFunctionType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeIncompatibleRedirecteeFunctionType = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "IncompatibleRedirecteeFunctionType", - analyzerCodes: ["REDIRECT_TO_INVALID_TYPE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "IncompatibleRedirecteeFunctionType", + analyzerCodes: ["REDIRECT_TO_INVALID_TYPE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIncompatibleRedirecteeFunctionType( @@ -1736,42 +1997,42 @@ Message _withArgumentsIncompatibleRedirecteeFunctionType( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeIncompatibleRedirecteeFunctionType, - problemMessage: - """The constructor function type '${type}' isn't a subtype of '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeIncompatibleRedirecteeFunctionType, + problemMessage: + """The constructor function type '${type}' isn't a subtype of '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - String name, - String name2, - bool - isNonNullableByDefault)> templateIncorrectTypeArgument = const Template< Message Function(DartType _type, DartType _type2, String name, - String name2, bool isNonNullableByDefault)>("IncorrectTypeArgument", - problemMessageTemplate: - r"""Type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#name2'.""", - correctionMessageTemplate: - r"""Try changing type arguments so that they conform to the bounds.""", - withArguments: _withArgumentsIncorrectTypeArgument); + String name2, bool isNonNullableByDefault)> + templateIncorrectTypeArgument = const Template< + Message Function(DartType _type, DartType _type2, String name, + String name2, bool isNonNullableByDefault)>( + "IncorrectTypeArgument", + problemMessageTemplate: + r"""Type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#name2'.""", + correctionMessageTemplate: + r"""Try changing type arguments so that they conform to the bounds.""", + withArguments: _withArgumentsIncorrectTypeArgument, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< - Message Function(DartType _type, DartType _type2, String name, - String name2, bool isNonNullableByDefault)> - codeIncorrectTypeArgument = const Code< - Message Function( - DartType _type, - DartType _type2, - String name, - String name2, - bool isNonNullableByDefault)>("IncorrectTypeArgument", - analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"]); + Message Function(DartType _type, DartType _type2, String name, String name2, + bool isNonNullableByDefault)> codeIncorrectTypeArgument = const Code< + Message Function(DartType _type, DartType _type2, String name, String name2, + bool isNonNullableByDefault)>( + "IncorrectTypeArgument", + analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIncorrectTypeArgument(DartType _type, DartType _type2, @@ -1785,17 +2046,20 @@ Message _withArgumentsIncorrectTypeArgument(DartType _type, DartType _type2, name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeIncorrectTypeArgument, - problemMessage: - """Type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${name2}'.""" + - labeler.originMessages, - correctionMessage: """Try changing type arguments so that they conform to the bounds.""", - arguments: { - 'type': _type, - 'type2': _type2, - 'name': name, - 'name2': name2 - }); + return new Message( + codeIncorrectTypeArgument, + problemMessage: + """Type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${name2}'.""" + + labeler.originMessages, + correctionMessage: + """Try changing type arguments so that they conform to the bounds.""", + arguments: { + 'type': _type, + 'type2': _type2, + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1803,30 +2067,26 @@ const Template< Message Function(DartType _type, DartType _type2, String name, String name2, bool isNonNullableByDefault)> templateIncorrectTypeArgumentInferred = const Template< - Message Function( - DartType _type, - DartType _type2, - String name, - String name2, - bool isNonNullableByDefault)>("IncorrectTypeArgumentInferred", - problemMessageTemplate: - r"""Inferred type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#name2'.""", - correctionMessageTemplate: - r"""Try specifying type arguments explicitly so that they conform to the bounds.""", - withArguments: _withArgumentsIncorrectTypeArgumentInferred); + Message Function(DartType _type, DartType _type2, String name, + String name2, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentInferred", + problemMessageTemplate: + r"""Inferred type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#name2'.""", + correctionMessageTemplate: + r"""Try specifying type arguments explicitly so that they conform to the bounds.""", + withArguments: _withArgumentsIncorrectTypeArgumentInferred, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, String name, String name2, bool isNonNullableByDefault)> codeIncorrectTypeArgumentInferred = const Code< - Message Function( - DartType _type, - DartType _type2, - String name, - String name2, - bool isNonNullableByDefault)>("IncorrectTypeArgumentInferred", - analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"]); + Message Function(DartType _type, DartType _type2, String name, + String name2, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentInferred", + analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIncorrectTypeArgumentInferred(DartType _type, @@ -1840,17 +2100,20 @@ Message _withArgumentsIncorrectTypeArgumentInferred(DartType _type, name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeIncorrectTypeArgumentInferred, - problemMessage: - """Inferred type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${name2}'.""" + - labeler.originMessages, - correctionMessage: """Try specifying type arguments explicitly so that they conform to the bounds.""", - arguments: { - 'type': _type, - 'type2': _type2, - 'name': name, - 'name2': name2 - }); + return new Message( + codeIncorrectTypeArgumentInferred, + problemMessage: + """Inferred type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${name2}'.""" + + labeler.originMessages, + correctionMessage: + """Try specifying type arguments explicitly so that they conform to the bounds.""", + arguments: { + 'type': _type, + 'type2': _type2, + 'name': name, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1858,24 +2121,26 @@ const Template< Message Function(DartType _type, DartType _type2, String name, DartType _type3, bool isNonNullableByDefault)> templateIncorrectTypeArgumentInstantiation = const Template< - Message Function(DartType _type, DartType _type2, String name, - DartType _type3, bool isNonNullableByDefault)>( - "IncorrectTypeArgumentInstantiation", - problemMessageTemplate: - r"""Type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#type3'.""", - correctionMessageTemplate: - r"""Try changing type arguments so that they conform to the bounds.""", - withArguments: _withArgumentsIncorrectTypeArgumentInstantiation); + Message Function(DartType _type, DartType _type2, String name, + DartType _type3, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentInstantiation", + problemMessageTemplate: + r"""Type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#type3'.""", + correctionMessageTemplate: + r"""Try changing type arguments so that they conform to the bounds.""", + withArguments: _withArgumentsIncorrectTypeArgumentInstantiation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, String name, DartType _type3, bool isNonNullableByDefault)> codeIncorrectTypeArgumentInstantiation = const Code< - Message Function(DartType _type, DartType _type2, String name, - DartType _type3, bool isNonNullableByDefault)>( - "IncorrectTypeArgumentInstantiation", - analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"]); + Message Function(DartType _type, DartType _type2, String name, + DartType _type3, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentInstantiation", + analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIncorrectTypeArgumentInstantiation( @@ -1893,17 +2158,20 @@ Message _withArgumentsIncorrectTypeArgumentInstantiation( String type = typeParts.join(); String type2 = type2Parts.join(); String type3 = type3Parts.join(); - return new Message(codeIncorrectTypeArgumentInstantiation, - problemMessage: - """Type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${type3}'.""" + - labeler.originMessages, - correctionMessage: """Try changing type arguments so that they conform to the bounds.""", - arguments: { - 'type': _type, - 'type2': _type2, - 'name': name, - 'type3': _type3 - }); + return new Message( + codeIncorrectTypeArgumentInstantiation, + problemMessage: + """Type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${type3}'.""" + + labeler.originMessages, + correctionMessage: + """Try changing type arguments so that they conform to the bounds.""", + arguments: { + 'type': _type, + 'type2': _type2, + 'name': name, + 'type3': _type3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1911,25 +2179,26 @@ const Template< Message Function(DartType _type, DartType _type2, String name, DartType _type3, bool isNonNullableByDefault)> templateIncorrectTypeArgumentInstantiationInferred = const Template< - Message Function(DartType _type, DartType _type2, String name, - DartType _type3, bool isNonNullableByDefault)>( - "IncorrectTypeArgumentInstantiationInferred", - problemMessageTemplate: - r"""Inferred type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#type3'.""", - correctionMessageTemplate: - r"""Try specifying type arguments explicitly so that they conform to the bounds.""", - withArguments: - _withArgumentsIncorrectTypeArgumentInstantiationInferred); + Message Function(DartType _type, DartType _type2, String name, + DartType _type3, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentInstantiationInferred", + problemMessageTemplate: + r"""Inferred type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#type3'.""", + correctionMessageTemplate: + r"""Try specifying type arguments explicitly so that they conform to the bounds.""", + withArguments: _withArgumentsIncorrectTypeArgumentInstantiationInferred, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, String name, DartType _type3, bool isNonNullableByDefault)> codeIncorrectTypeArgumentInstantiationInferred = const Code< - Message Function(DartType _type, DartType _type2, String name, - DartType _type3, bool isNonNullableByDefault)>( - "IncorrectTypeArgumentInstantiationInferred", - analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"]); + Message Function(DartType _type, DartType _type2, String name, + DartType _type3, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentInstantiationInferred", + analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIncorrectTypeArgumentInstantiationInferred( @@ -1947,17 +2216,20 @@ Message _withArgumentsIncorrectTypeArgumentInstantiationInferred( String type = typeParts.join(); String type2 = type2Parts.join(); String type3 = type3Parts.join(); - return new Message(codeIncorrectTypeArgumentInstantiationInferred, - problemMessage: - """Inferred type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${type3}'.""" + - labeler.originMessages, - correctionMessage: """Try specifying type arguments explicitly so that they conform to the bounds.""", - arguments: { - 'type': _type, - 'type2': _type2, - 'name': name, - 'type3': _type3 - }); + return new Message( + codeIncorrectTypeArgumentInstantiationInferred, + problemMessage: + """Inferred type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${type3}'.""" + + labeler.originMessages, + correctionMessage: + """Try specifying type arguments explicitly so that they conform to the bounds.""", + arguments: { + 'type': _type, + 'type2': _type2, + 'name': name, + 'type3': _type3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -1965,32 +2237,26 @@ const Template< Message Function(DartType _type, DartType _type2, String name, DartType _type3, String name2, bool isNonNullableByDefault)> templateIncorrectTypeArgumentQualified = const Template< - Message Function( - DartType _type, - DartType _type2, - String name, - DartType _type3, - String name2, - bool isNonNullableByDefault)>("IncorrectTypeArgumentQualified", - problemMessageTemplate: - r"""Type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#type3.#name2'.""", - correctionMessageTemplate: - r"""Try changing type arguments so that they conform to the bounds.""", - withArguments: _withArgumentsIncorrectTypeArgumentQualified); + Message Function(DartType _type, DartType _type2, String name, + DartType _type3, String name2, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentQualified", + problemMessageTemplate: + r"""Type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#type3.#name2'.""", + correctionMessageTemplate: + r"""Try changing type arguments so that they conform to the bounds.""", + withArguments: _withArgumentsIncorrectTypeArgumentQualified, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, String name, DartType _type3, String name2, bool isNonNullableByDefault)> codeIncorrectTypeArgumentQualified = const Code< - Message Function( - DartType _type, - DartType _type2, - String name, - DartType _type3, - String name2, - bool isNonNullableByDefault)>("IncorrectTypeArgumentQualified", - analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"]); + Message Function(DartType _type, DartType _type2, String name, + DartType _type3, String name2, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentQualified", + analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIncorrectTypeArgumentQualified( @@ -2011,18 +2277,21 @@ Message _withArgumentsIncorrectTypeArgumentQualified( String type = typeParts.join(); String type2 = type2Parts.join(); String type3 = type3Parts.join(); - return new Message(codeIncorrectTypeArgumentQualified, - problemMessage: - """Type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${type3}.${name2}'.""" + - labeler.originMessages, - correctionMessage: """Try changing type arguments so that they conform to the bounds.""", - arguments: { - 'type': _type, - 'type2': _type2, - 'name': name, - 'type3': _type3, - 'name2': name2 - }); + return new Message( + codeIncorrectTypeArgumentQualified, + problemMessage: + """Type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${type3}.${name2}'.""" + + labeler.originMessages, + correctionMessage: + """Try changing type arguments so that they conform to the bounds.""", + arguments: { + 'type': _type, + 'type2': _type2, + 'name': name, + 'type3': _type3, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2030,24 +2299,26 @@ const Template< Message Function(DartType _type, DartType _type2, String name, DartType _type3, String name2, bool isNonNullableByDefault)> templateIncorrectTypeArgumentQualifiedInferred = const Template< - Message Function(DartType _type, DartType _type2, String name, - DartType _type3, String name2, bool isNonNullableByDefault)>( - "IncorrectTypeArgumentQualifiedInferred", - problemMessageTemplate: - r"""Inferred type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#type3.#name2'.""", - correctionMessageTemplate: - r"""Try specifying type arguments explicitly so that they conform to the bounds.""", - withArguments: _withArgumentsIncorrectTypeArgumentQualifiedInferred); + Message Function(DartType _type, DartType _type2, String name, + DartType _type3, String name2, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentQualifiedInferred", + problemMessageTemplate: + r"""Inferred type argument '#type' doesn't conform to the bound '#type2' of the type variable '#name' on '#type3.#name2'.""", + correctionMessageTemplate: + r"""Try specifying type arguments explicitly so that they conform to the bounds.""", + withArguments: _withArgumentsIncorrectTypeArgumentQualifiedInferred, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, String name, DartType _type3, String name2, bool isNonNullableByDefault)> codeIncorrectTypeArgumentQualifiedInferred = const Code< - Message Function(DartType _type, DartType _type2, String name, - DartType _type3, String name2, bool isNonNullableByDefault)>( - "IncorrectTypeArgumentQualifiedInferred", - analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"]); + Message Function(DartType _type, DartType _type2, String name, + DartType _type3, String name2, bool isNonNullableByDefault)>( + "IncorrectTypeArgumentQualifiedInferred", + analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsIncorrectTypeArgumentQualifiedInferred( @@ -2068,32 +2339,35 @@ Message _withArgumentsIncorrectTypeArgumentQualifiedInferred( String type = typeParts.join(); String type2 = type2Parts.join(); String type3 = type3Parts.join(); - return new Message(codeIncorrectTypeArgumentQualifiedInferred, - problemMessage: - """Inferred type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${type3}.${name2}'.""" + - labeler.originMessages, - correctionMessage: """Try specifying type arguments explicitly so that they conform to the bounds.""", - arguments: { - 'type': _type, - 'type2': _type2, - 'name': name, - 'type3': _type3, - 'name2': name2 - }); + return new Message( + codeIncorrectTypeArgumentQualifiedInferred, + problemMessage: + """Inferred type argument '${type}' doesn't conform to the bound '${type2}' of the type variable '${name}' on '${type3}.${name2}'.""" + + labeler.originMessages, + correctionMessage: + """Try specifying type arguments explicitly so that they conform to the bounds.""", + arguments: { + 'type': _type, + 'type2': _type2, + 'name': name, + 'type3': _type3, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< + Message Function( + int count, int count2, DartType _type, bool isNonNullableByDefault)> + templateIndexOutOfBoundInRecordIndexGet = const Template< Message Function(int count, int count2, DartType _type, - bool isNonNullableByDefault)> - templateIndexOutOfBoundInRecordIndexGet = - const Template< - Message Function(int count, int count2, DartType _type, - bool isNonNullableByDefault)>( - "IndexOutOfBoundInRecordIndexGet", - problemMessageTemplate: - r"""Index #count is out of range 0..#count2 of positional fields of records #type.""", - withArguments: _withArgumentsIndexOutOfBoundInRecordIndexGet); + bool isNonNullableByDefault)>( + "IndexOutOfBoundInRecordIndexGet", + problemMessageTemplate: + r"""Index #count is out of range 0..#count2 of positional fields of records #type.""", + withArguments: _withArgumentsIndexOutOfBoundInRecordIndexGet, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -2111,42 +2385,44 @@ Message _withArgumentsIndexOutOfBoundInRecordIndexGet( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeIndexOutOfBoundInRecordIndexGet, - problemMessage: - """Index ${count} is out of range 0..${count2} of positional fields of records ${type}.""" + - labeler.originMessages, - arguments: {'count': count, 'count2': count2, 'type': _type}); + return new Message( + codeIndexOutOfBoundInRecordIndexGet, + problemMessage: + """Index ${count} is out of range 0..${count2} of positional fields of records ${type}.""" + + labeler.originMessages, + arguments: { + 'count': count, + 'count2': count2, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - String name, - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> + Message Function(String name, DartType _type, DartType _type2, + bool isNonNullableByDefault)> templateInitializingFormalTypeMismatch = const Template< - Message Function( - String name, - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)>("InitializingFormalTypeMismatch", - problemMessageTemplate: - r"""The type of parameter '#name', '#type' is not a subtype of the corresponding field's type, '#type2'.""", - correctionMessageTemplate: - r"""Try changing the type of parameter '#name' to a subtype of '#type2'.""", - withArguments: _withArgumentsInitializingFormalTypeMismatch); + Message Function(String name, DartType _type, DartType _type2, + bool isNonNullableByDefault)>( + "InitializingFormalTypeMismatch", + problemMessageTemplate: + r"""The type of parameter '#name', '#type' is not a subtype of the corresponding field's type, '#type2'.""", + correctionMessageTemplate: + r"""Try changing the type of parameter '#name' to a subtype of '#type2'.""", + withArguments: _withArgumentsInitializingFormalTypeMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(String name, DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInitializingFormalTypeMismatch = const Code< - Message Function(String name, DartType _type, DartType _type2, - bool isNonNullableByDefault)>("InitializingFormalTypeMismatch", - analyzerCodes: ["INVALID_PARAMETER_DECLARATION"]); + Message Function(String name, DartType _type, DartType _type2, + bool isNonNullableByDefault)>( + "InitializingFormalTypeMismatch", + analyzerCodes: ["INVALID_PARAMETER_DECLARATION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInitializingFormalTypeMismatch( @@ -2158,24 +2434,32 @@ Message _withArgumentsInitializingFormalTypeMismatch( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInitializingFormalTypeMismatch, - problemMessage: - """The type of parameter '${name}', '${type}' is not a subtype of the corresponding field's type, '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Try changing the type of parameter '${name}' to a subtype of '${type2}'.""", - arguments: {'name': name, 'type': _type, 'type2': _type2}); + return new Message( + codeInitializingFormalTypeMismatch, + problemMessage: + """The type of parameter '${name}', '${type}' is not a subtype of the corresponding field's type, '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Try changing the type of parameter '${name}' to a subtype of '${type2}'.""", + arguments: { + 'name': name, + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInstantiationNonGenericFunctionType = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "InstantiationNonGenericFunctionType", - problemMessageTemplate: - r"""The static type of the explicit instantiation operand must be a generic function type but is '#type'.""", - correctionMessageTemplate: - r"""Try changing the operand or remove the type arguments.""", - withArguments: _withArgumentsInstantiationNonGenericFunctionType); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "InstantiationNonGenericFunctionType", + problemMessageTemplate: + r"""The static type of the explicit instantiation operand must be a generic function type but is '#type'.""", + correctionMessageTemplate: + r"""Try changing the operand or remove the type arguments.""", + withArguments: _withArgumentsInstantiationNonGenericFunctionType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -2190,31 +2474,38 @@ Message _withArgumentsInstantiationNonGenericFunctionType( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeInstantiationNonGenericFunctionType, - problemMessage: - """The static type of the explicit instantiation operand must be a generic function type but is '${type}'.""" + - labeler.originMessages, - correctionMessage: """Try changing the operand or remove the type arguments.""", - arguments: {'type': _type}); + return new Message( + codeInstantiationNonGenericFunctionType, + problemMessage: + """The static type of the explicit instantiation operand must be a generic function type but is '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try changing the operand or remove the type arguments.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInstantiationNullableGenericFunctionType = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "InstantiationNullableGenericFunctionType", - problemMessageTemplate: - r"""The static type of the explicit instantiation operand must be a non-null generic function type but is '#type'.""", - correctionMessageTemplate: - r"""Try changing the operand or remove the type arguments.""", - withArguments: _withArgumentsInstantiationNullableGenericFunctionType); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "InstantiationNullableGenericFunctionType", + problemMessageTemplate: + r"""The static type of the explicit instantiation operand must be a non-null generic function type but is '#type'.""", + correctionMessageTemplate: + r"""Try changing the operand or remove the type arguments.""", + withArguments: _withArgumentsInstantiationNullableGenericFunctionType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInstantiationNullableGenericFunctionType = const Code( - "InstantiationNullableGenericFunctionType", - analyzerCodes: ["DISALLOWED_TYPE_INSTANTIATION_EXPRESSION"]); + "InstantiationNullableGenericFunctionType", + analyzerCodes: ["DISALLOWED_TYPE_INSTANTIATION_EXPRESSION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInstantiationNullableGenericFunctionType( @@ -2222,12 +2513,17 @@ Message _withArgumentsInstantiationNullableGenericFunctionType( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeInstantiationNullableGenericFunctionType, - problemMessage: - """The static type of the explicit instantiation operand must be a non-null generic function type but is '${type}'.""" + - labeler.originMessages, - correctionMessage: """Try changing the operand or remove the type arguments.""", - arguments: {'type': _type}); + return new Message( + codeInstantiationNullableGenericFunctionType, + problemMessage: + """The static type of the explicit instantiation operand must be a non-null generic function type but is '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try changing the operand or remove the type arguments.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2235,22 +2531,24 @@ const Template< Message Function( String string, DartType _type, bool isNonNullableByDefault)> templateInternalProblemUnsupportedNullability = const Template< - Message Function( - String string, DartType _type, bool isNonNullableByDefault)>( - "InternalProblemUnsupportedNullability", - problemMessageTemplate: - r"""Unsupported nullability value '#string' on type '#type'.""", - withArguments: _withArgumentsInternalProblemUnsupportedNullability); + Message Function( + String string, DartType _type, bool isNonNullableByDefault)>( + "InternalProblemUnsupportedNullability", + problemMessageTemplate: + r"""Unsupported nullability value '#string' on type '#type'.""", + withArguments: _withArgumentsInternalProblemUnsupportedNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( String string, DartType _type, bool isNonNullableByDefault)> codeInternalProblemUnsupportedNullability = const Code< - Message Function( - String string, DartType _type, bool isNonNullableByDefault)>( - "InternalProblemUnsupportedNullability", - severity: Severity.internalProblem); + Message Function( + String string, DartType _type, bool isNonNullableByDefault)>( + "InternalProblemUnsupportedNullability", + severity: Severity.internalProblem, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInternalProblemUnsupportedNullability( @@ -2259,11 +2557,16 @@ Message _withArgumentsInternalProblemUnsupportedNullability( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeInternalProblemUnsupportedNullability, - problemMessage: - """Unsupported nullability value '${string}' on type '${type}'.""" + - labeler.originMessages, - arguments: {'string': string, 'type': _type}); + return new Message( + codeInternalProblemUnsupportedNullability, + problemMessage: + """Unsupported nullability value '${string}' on type '${type}'.""" + + labeler.originMessages, + arguments: { + 'string': string, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2271,22 +2574,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateInvalidAssignmentError = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidAssignmentError", - problemMessageTemplate: - r"""A value of type '#type' can't be assigned to a variable of type '#type2'.""", - withArguments: _withArgumentsInvalidAssignmentError); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidAssignmentError", + problemMessageTemplate: + r"""A value of type '#type' can't be assigned to a variable of type '#type2'.""", + withArguments: _withArgumentsInvalidAssignmentError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidAssignmentError = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidAssignmentError", - analyzerCodes: ["INVALID_ASSIGNMENT"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidAssignmentError", + analyzerCodes: ["INVALID_ASSIGNMENT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidAssignmentError( @@ -2296,11 +2601,16 @@ Message _withArgumentsInvalidAssignmentError( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidAssignmentError, - problemMessage: - """A value of type '${type}' can't be assigned to a variable of type '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidAssignmentError, + problemMessage: + """A value of type '${type}' can't be assigned to a variable of type '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2308,22 +2618,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateInvalidAssignmentErrorNullability = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidAssignmentErrorNullability", - problemMessageTemplate: - r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type' is nullable and '#type2' isn't.""", - withArguments: _withArgumentsInvalidAssignmentErrorNullability); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidAssignmentErrorNullability", + problemMessageTemplate: + r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type' is nullable and '#type2' isn't.""", + withArguments: _withArgumentsInvalidAssignmentErrorNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidAssignmentErrorNullability = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidAssignmentErrorNullability", - analyzerCodes: ["INVALID_ASSIGNMENT"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidAssignmentErrorNullability", + analyzerCodes: ["INVALID_ASSIGNMENT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidAssignmentErrorNullability( @@ -2333,28 +2645,35 @@ Message _withArgumentsInvalidAssignmentErrorNullability( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidAssignmentErrorNullability, - problemMessage: - """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidAssignmentErrorNullability, + problemMessage: + """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidAssignmentErrorNullabilityNull = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "InvalidAssignmentErrorNullabilityNull", - problemMessageTemplate: - r"""The value 'null' can't be assigned to a variable of type '#type' because '#type' is not nullable.""", - withArguments: _withArgumentsInvalidAssignmentErrorNullabilityNull); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "InvalidAssignmentErrorNullabilityNull", + problemMessageTemplate: + r"""The value 'null' can't be assigned to a variable of type '#type' because '#type' is not nullable.""", + withArguments: _withArgumentsInvalidAssignmentErrorNullabilityNull, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code codeInvalidAssignmentErrorNullabilityNull = const Code( - "InvalidAssignmentErrorNullabilityNull", - analyzerCodes: ["INVALID_ASSIGNMENT"]); + "InvalidAssignmentErrorNullabilityNull", + analyzerCodes: ["INVALID_ASSIGNMENT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidAssignmentErrorNullabilityNull( @@ -2362,11 +2681,15 @@ Message _withArgumentsInvalidAssignmentErrorNullabilityNull( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeInvalidAssignmentErrorNullabilityNull, - problemMessage: - """The value 'null' can't be assigned to a variable of type '${type}' because '${type}' is not nullable.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeInvalidAssignmentErrorNullabilityNull, + problemMessage: + """The value 'null' can't be assigned to a variable of type '${type}' because '${type}' is not nullable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2374,22 +2697,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateInvalidAssignmentErrorNullabilityNullType = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidAssignmentErrorNullabilityNullType", - problemMessageTemplate: - r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type2' is not nullable.""", - withArguments: _withArgumentsInvalidAssignmentErrorNullabilityNullType); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidAssignmentErrorNullabilityNullType", + problemMessageTemplate: + r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type2' is not nullable.""", + withArguments: _withArgumentsInvalidAssignmentErrorNullabilityNullType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidAssignmentErrorNullabilityNullType = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidAssignmentErrorNullabilityNullType", - analyzerCodes: ["INVALID_ASSIGNMENT"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidAssignmentErrorNullabilityNullType", + analyzerCodes: ["INVALID_ASSIGNMENT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidAssignmentErrorNullabilityNullType( @@ -2399,11 +2724,16 @@ Message _withArgumentsInvalidAssignmentErrorNullabilityNullType( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidAssignmentErrorNullabilityNullType, - problemMessage: - """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type2}' is not nullable.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidAssignmentErrorNullabilityNullType, + problemMessage: + """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type2}' is not nullable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2411,22 +2741,24 @@ const Template< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> templateInvalidAssignmentErrorPartNullability = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "InvalidAssignmentErrorPartNullability", - problemMessageTemplate: - r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type3' is nullable and '#type4' isn't.""", - withArguments: _withArgumentsInvalidAssignmentErrorPartNullability); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "InvalidAssignmentErrorPartNullability", + problemMessageTemplate: + r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type3' is nullable and '#type4' isn't.""", + withArguments: _withArgumentsInvalidAssignmentErrorPartNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> codeInvalidAssignmentErrorPartNullability = const Code< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "InvalidAssignmentErrorPartNullability", - analyzerCodes: ["INVALID_ASSIGNMENT"]); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "InvalidAssignmentErrorPartNullability", + analyzerCodes: ["INVALID_ASSIGNMENT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidAssignmentErrorPartNullability( @@ -2444,43 +2776,45 @@ Message _withArgumentsInvalidAssignmentErrorPartNullability( String type2 = type2Parts.join(); String type3 = type3Parts.join(); String type4 = type4Parts.join(); - return new Message(codeInvalidAssignmentErrorPartNullability, - problemMessage: - """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'type2': _type2, - 'type3': _type3, - 'type4': _type4 - }); + return new Message( + codeInvalidAssignmentErrorPartNullability, + problemMessage: + """A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + 'type4': _type4, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateInvalidCastFunctionExpr = const Template< - Message Function(DartType _type, DartType _type2, - bool isNonNullableByDefault)>( - "InvalidCastFunctionExpr", - problemMessageTemplate: - r"""The function expression type '#type' isn't of expected type '#type2'.""", - correctionMessageTemplate: - r"""Change the type of the function expression or the context in which it is used.""", - withArguments: _withArgumentsInvalidCastFunctionExpr); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateInvalidCastFunctionExpr = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastFunctionExpr", + problemMessageTemplate: + r"""The function expression type '#type' isn't of expected type '#type2'.""", + correctionMessageTemplate: + r"""Change the type of the function expression or the context in which it is used.""", + withArguments: _withArgumentsInvalidCastFunctionExpr, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidCastFunctionExpr = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastFunctionExpr", - analyzerCodes: ["INVALID_CAST_FUNCTION_EXPR"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastFunctionExpr", + analyzerCodes: ["INVALID_CAST_FUNCTION_EXPR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidCastFunctionExpr( @@ -2490,39 +2824,45 @@ Message _withArgumentsInvalidCastFunctionExpr( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidCastFunctionExpr, - problemMessage: - """The function expression type '${type}' isn't of expected type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Change the type of the function expression or the context in which it is used.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidCastFunctionExpr, + problemMessage: + """The function expression type '${type}' isn't of expected type '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Change the type of the function expression or the context in which it is used.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateInvalidCastLiteralList = const Template< - Message Function(DartType _type, DartType _type2, - bool isNonNullableByDefault)>( - "InvalidCastLiteralList", - problemMessageTemplate: - r"""The list literal type '#type' isn't of expected type '#type2'.""", - correctionMessageTemplate: - r"""Change the type of the list literal or the context in which it is used.""", - withArguments: _withArgumentsInvalidCastLiteralList); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateInvalidCastLiteralList = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastLiteralList", + problemMessageTemplate: + r"""The list literal type '#type' isn't of expected type '#type2'.""", + correctionMessageTemplate: + r"""Change the type of the list literal or the context in which it is used.""", + withArguments: _withArgumentsInvalidCastLiteralList, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidCastLiteralList = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastLiteralList", - analyzerCodes: ["INVALID_CAST_LITERAL_LIST"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastLiteralList", + analyzerCodes: ["INVALID_CAST_LITERAL_LIST"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidCastLiteralList( @@ -2532,39 +2872,45 @@ Message _withArgumentsInvalidCastLiteralList( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidCastLiteralList, - problemMessage: - """The list literal type '${type}' isn't of expected type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Change the type of the list literal or the context in which it is used.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidCastLiteralList, + problemMessage: + """The list literal type '${type}' isn't of expected type '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Change the type of the list literal or the context in which it is used.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateInvalidCastLiteralMap = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateInvalidCastLiteralMap = const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastLiteralMap", - problemMessageTemplate: - r"""The map literal type '#type' isn't of expected type '#type2'.""", - correctionMessageTemplate: - r"""Change the type of the map literal or the context in which it is used.""", - withArguments: _withArgumentsInvalidCastLiteralMap); + "InvalidCastLiteralMap", + problemMessageTemplate: + r"""The map literal type '#type' isn't of expected type '#type2'.""", + correctionMessageTemplate: + r"""Change the type of the map literal or the context in which it is used.""", + withArguments: _withArgumentsInvalidCastLiteralMap, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidCastLiteralMap = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastLiteralMap", - analyzerCodes: ["INVALID_CAST_LITERAL_MAP"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastLiteralMap", + analyzerCodes: ["INVALID_CAST_LITERAL_MAP"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidCastLiteralMap( @@ -2574,39 +2920,45 @@ Message _withArgumentsInvalidCastLiteralMap( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidCastLiteralMap, - problemMessage: - """The map literal type '${type}' isn't of expected type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Change the type of the map literal or the context in which it is used.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidCastLiteralMap, + problemMessage: + """The map literal type '${type}' isn't of expected type '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Change the type of the map literal or the context in which it is used.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateInvalidCastLiteralSet = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateInvalidCastLiteralSet = const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastLiteralSet", - problemMessageTemplate: - r"""The set literal type '#type' isn't of expected type '#type2'.""", - correctionMessageTemplate: - r"""Change the type of the set literal or the context in which it is used.""", - withArguments: _withArgumentsInvalidCastLiteralSet); + "InvalidCastLiteralSet", + problemMessageTemplate: + r"""The set literal type '#type' isn't of expected type '#type2'.""", + correctionMessageTemplate: + r"""Change the type of the set literal or the context in which it is used.""", + withArguments: _withArgumentsInvalidCastLiteralSet, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidCastLiteralSet = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastLiteralSet", - analyzerCodes: ["INVALID_CAST_LITERAL_SET"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastLiteralSet", + analyzerCodes: ["INVALID_CAST_LITERAL_SET"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidCastLiteralSet( @@ -2616,39 +2968,45 @@ Message _withArgumentsInvalidCastLiteralSet( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidCastLiteralSet, - problemMessage: - """The set literal type '${type}' isn't of expected type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Change the type of the set literal or the context in which it is used.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidCastLiteralSet, + problemMessage: + """The set literal type '${type}' isn't of expected type '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Change the type of the set literal or the context in which it is used.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateInvalidCastLocalFunction = const Template< - Message Function(DartType _type, DartType _type2, - bool isNonNullableByDefault)>( - "InvalidCastLocalFunction", - problemMessageTemplate: - r"""The local function has type '#type' that isn't of expected type '#type2'.""", - correctionMessageTemplate: - r"""Change the type of the function or the context in which it is used.""", - withArguments: _withArgumentsInvalidCastLocalFunction); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateInvalidCastLocalFunction = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastLocalFunction", + problemMessageTemplate: + r"""The local function has type '#type' that isn't of expected type '#type2'.""", + correctionMessageTemplate: + r"""Change the type of the function or the context in which it is used.""", + withArguments: _withArgumentsInvalidCastLocalFunction, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidCastLocalFunction = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastLocalFunction", - analyzerCodes: ["INVALID_CAST_FUNCTION"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastLocalFunction", + analyzerCodes: ["INVALID_CAST_FUNCTION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidCastLocalFunction( @@ -2658,39 +3016,45 @@ Message _withArgumentsInvalidCastLocalFunction( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidCastLocalFunction, - problemMessage: - """The local function has type '${type}' that isn't of expected type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Change the type of the function or the context in which it is used.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidCastLocalFunction, + problemMessage: + """The local function has type '${type}' that isn't of expected type '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Change the type of the function or the context in which it is used.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateInvalidCastNewExpr = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateInvalidCastNewExpr = const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastNewExpr", - problemMessageTemplate: - r"""The constructor returns type '#type' that isn't of expected type '#type2'.""", - correctionMessageTemplate: - r"""Change the type of the object being constructed or the context in which it is used.""", - withArguments: _withArgumentsInvalidCastNewExpr); + "InvalidCastNewExpr", + problemMessageTemplate: + r"""The constructor returns type '#type' that isn't of expected type '#type2'.""", + correctionMessageTemplate: + r"""Change the type of the object being constructed or the context in which it is used.""", + withArguments: _withArgumentsInvalidCastNewExpr, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidCastNewExpr = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastNewExpr", - analyzerCodes: ["INVALID_CAST_NEW_EXPR"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastNewExpr", + analyzerCodes: ["INVALID_CAST_NEW_EXPR"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidCastNewExpr( @@ -2700,39 +3064,45 @@ Message _withArgumentsInvalidCastNewExpr( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidCastNewExpr, - problemMessage: - """The constructor returns type '${type}' that isn't of expected type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Change the type of the object being constructed or the context in which it is used.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidCastNewExpr, + problemMessage: + """The constructor returns type '${type}' that isn't of expected type '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Change the type of the object being constructed or the context in which it is used.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateInvalidCastStaticMethod = const Template< - Message Function(DartType _type, DartType _type2, - bool isNonNullableByDefault)>( - "InvalidCastStaticMethod", - problemMessageTemplate: - r"""The static method has type '#type' that isn't of expected type '#type2'.""", - correctionMessageTemplate: - r"""Change the type of the method or the context in which it is used.""", - withArguments: _withArgumentsInvalidCastStaticMethod); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateInvalidCastStaticMethod = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastStaticMethod", + problemMessageTemplate: + r"""The static method has type '#type' that isn't of expected type '#type2'.""", + correctionMessageTemplate: + r"""Change the type of the method or the context in which it is used.""", + withArguments: _withArgumentsInvalidCastStaticMethod, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidCastStaticMethod = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastStaticMethod", - analyzerCodes: ["INVALID_CAST_METHOD"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastStaticMethod", + analyzerCodes: ["INVALID_CAST_METHOD"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidCastStaticMethod( @@ -2742,12 +3112,18 @@ Message _withArgumentsInvalidCastStaticMethod( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidCastStaticMethod, - problemMessage: - """The static method has type '${type}' that isn't of expected type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Change the type of the method or the context in which it is used.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidCastStaticMethod, + problemMessage: + """The static method has type '${type}' that isn't of expected type '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Change the type of the method or the context in which it is used.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2755,24 +3131,26 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateInvalidCastTopLevelFunction = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastTopLevelFunction", - problemMessageTemplate: - r"""The top level function has type '#type' that isn't of expected type '#type2'.""", - correctionMessageTemplate: - r"""Change the type of the function or the context in which it is used.""", - withArguments: _withArgumentsInvalidCastTopLevelFunction); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastTopLevelFunction", + problemMessageTemplate: + r"""The top level function has type '#type' that isn't of expected type '#type2'.""", + correctionMessageTemplate: + r"""Change the type of the function or the context in which it is used.""", + withArguments: _withArgumentsInvalidCastTopLevelFunction, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeInvalidCastTopLevelFunction = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidCastTopLevelFunction", - analyzerCodes: ["INVALID_CAST_FUNCTION"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidCastTopLevelFunction", + analyzerCodes: ["INVALID_CAST_FUNCTION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsInvalidCastTopLevelFunction( @@ -2782,12 +3160,18 @@ Message _withArgumentsInvalidCastTopLevelFunction( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidCastTopLevelFunction, - problemMessage: - """The top level function has type '${type}' that isn't of expected type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Change the type of the function or the context in which it is used.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidCastTopLevelFunction, + problemMessage: + """The top level function has type '${type}' that isn't of expected type '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Change the type of the function or the context in which it is used.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2795,14 +3179,15 @@ const Template< Message Function(DartType _type, String name, DartType _type2, DartType _type3, bool isNonNullableByDefault)> templateInvalidExtensionTypeSuperExtensionType = const Template< - Message Function(DartType _type, String name, DartType _type2, - DartType _type3, bool isNonNullableByDefault)>( - "InvalidExtensionTypeSuperExtensionType", - problemMessageTemplate: - r"""The representation type '#type' of extension type '#name' must be either a subtype of the representation type '#type2' of the implemented extension type '#type3' or a subtype of '#type3' itself.""", - correctionMessageTemplate: - r"""Try changing the representation type to a subtype of '#type2'.""", - withArguments: _withArgumentsInvalidExtensionTypeSuperExtensionType); + Message Function(DartType _type, String name, DartType _type2, + DartType _type3, bool isNonNullableByDefault)>( + "InvalidExtensionTypeSuperExtensionType", + problemMessageTemplate: + r"""The representation type '#type' of extension type '#name' must be either a subtype of the representation type '#type2' of the implemented extension type '#type3' or a subtype of '#type3' itself.""", + correctionMessageTemplate: + r"""Try changing the representation type to a subtype of '#type2'.""", + withArguments: _withArgumentsInvalidExtensionTypeSuperExtensionType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -2830,40 +3215,36 @@ Message _withArgumentsInvalidExtensionTypeSuperExtensionType( String type = typeParts.join(); String type2 = type2Parts.join(); String type3 = type3Parts.join(); - return new Message(codeInvalidExtensionTypeSuperExtensionType, - problemMessage: - """The representation type '${type}' of extension type '${name}' must be either a subtype of the representation type '${type2}' of the implemented extension type '${type3}' or a subtype of '${type3}' itself.""" + - labeler.originMessages, - correctionMessage: """Try changing the representation type to a subtype of '${type2}'.""", - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'type3': _type3 - }); + return new Message( + codeInvalidExtensionTypeSuperExtensionType, + problemMessage: + """The representation type '${type}' of extension type '${name}' must be either a subtype of the representation type '${type2}' of the implemented extension type '${type3}' or a subtype of '${type3}' itself.""" + + labeler.originMessages, + correctionMessage: + """Try changing the representation type to a subtype of '${type2}'.""", + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'type3': _type3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - String name, - bool - isNonNullableByDefault)> + Message Function(DartType _type, DartType _type2, String name, + bool isNonNullableByDefault)> templateInvalidExtensionTypeSuperInterface = const Template< - Message Function( - DartType _type, - DartType _type2, - String name, - bool - isNonNullableByDefault)>( - "InvalidExtensionTypeSuperInterface", - problemMessageTemplate: - r"""The implemented interface '#type' must be a supertype of the representation type '#type2' of extension type '#name'.""", - correctionMessageTemplate: - r"""Try changing the interface type to a supertype of '#type2' or the representation type to a subtype of '#type'.""", - withArguments: _withArgumentsInvalidExtensionTypeSuperInterface); + Message Function(DartType _type, DartType _type2, String name, + bool isNonNullableByDefault)>( + "InvalidExtensionTypeSuperInterface", + problemMessageTemplate: + r"""The implemented interface '#type' must be a supertype of the representation type '#type2' of extension type '#name'.""", + correctionMessageTemplate: + r"""Try changing the interface type to a supertype of '#type2' or the representation type to a subtype of '#type'.""", + withArguments: _withArgumentsInvalidExtensionTypeSuperInterface, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -2885,12 +3266,19 @@ Message _withArgumentsInvalidExtensionTypeSuperInterface( name = demangleMixinApplicationName(name); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidExtensionTypeSuperInterface, - problemMessage: - """The implemented interface '${type}' must be a supertype of the representation type '${type2}' of extension type '${name}'.""" + - labeler.originMessages, - correctionMessage: """Try changing the interface type to a supertype of '${type2}' or the representation type to a subtype of '${type}'.""", - arguments: {'type': _type, 'type2': _type2, 'name': name}); + return new Message( + codeInvalidExtensionTypeSuperInterface, + problemMessage: + """The implemented interface '${type}' must be a supertype of the representation type '${type2}' of extension type '${name}'.""" + + labeler.originMessages, + correctionMessage: + """Try changing the interface type to a supertype of '${type2}' or the representation type to a subtype of '${type}'.""", + arguments: { + 'type': _type, + 'type2': _type2, + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2898,15 +3286,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterType = const Template< - Message Function( - DartType _type, - String name, - DartType _type2, - String name2, - bool isNonNullableByDefault)>("InvalidGetterSetterType", - problemMessageTemplate: - r"""The type '#type' of the getter '#name' is not a subtype of the type '#type2' of the setter '#name2'.""", - withArguments: _withArgumentsInvalidGetterSetterType); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterType", + problemMessageTemplate: + r"""The type '#type' of the getter '#name' is not a subtype of the type '#type2' of the setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -2929,16 +3315,18 @@ Message _withArgumentsInvalidGetterSetterType(DartType _type, String name, name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterType, - problemMessage: - """The type '${type}' of the getter '${name}' is not a subtype of the type '${type2}' of the setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterType, + problemMessage: + """The type '${type}' of the getter '${name}' is not a subtype of the type '${type2}' of the setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2946,12 +3334,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeBothInheritedField = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeBothInheritedField", - problemMessageTemplate: - r"""The type '#type' of the inherited field '#name' is not a subtype of the type '#type2' of the inherited setter '#name2'.""", - withArguments: _withArgumentsInvalidGetterSetterTypeBothInheritedField); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeBothInheritedField", + problemMessageTemplate: + r"""The type '#type' of the inherited field '#name' is not a subtype of the type '#type2' of the inherited setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeBothInheritedField, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -2975,16 +3364,18 @@ Message _withArgumentsInvalidGetterSetterTypeBothInheritedField(DartType _type, name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeBothInheritedField, - problemMessage: - """The type '${type}' of the inherited field '${name}' is not a subtype of the type '${type2}' of the inherited setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeBothInheritedField, + problemMessage: + """The type '${type}' of the inherited field '${name}' is not a subtype of the type '${type2}' of the inherited setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -2992,13 +3383,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeBothInheritedFieldLegacy = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeBothInheritedFieldLegacy", - problemMessageTemplate: - r"""The type '#type' of the inherited field '#name' is not assignable to the type '#type2' of the inherited setter '#name2'.""", - withArguments: - _withArgumentsInvalidGetterSetterTypeBothInheritedFieldLegacy); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeBothInheritedFieldLegacy", + problemMessageTemplate: + r"""The type '#type' of the inherited field '#name' is not assignable to the type '#type2' of the inherited setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeBothInheritedFieldLegacy, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3026,16 +3417,18 @@ Message _withArgumentsInvalidGetterSetterTypeBothInheritedFieldLegacy( name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeBothInheritedFieldLegacy, - problemMessage: - """The type '${type}' of the inherited field '${name}' is not assignable to the type '${type2}' of the inherited setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeBothInheritedFieldLegacy, + problemMessage: + """The type '${type}' of the inherited field '${name}' is not assignable to the type '${type2}' of the inherited setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3043,13 +3436,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeBothInheritedGetter = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeBothInheritedGetter", - problemMessageTemplate: - r"""The type '#type' of the inherited getter '#name' is not a subtype of the type '#type2' of the inherited setter '#name2'.""", - withArguments: - _withArgumentsInvalidGetterSetterTypeBothInheritedGetter); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeBothInheritedGetter", + problemMessageTemplate: + r"""The type '#type' of the inherited getter '#name' is not a subtype of the type '#type2' of the inherited setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeBothInheritedGetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3073,16 +3466,18 @@ Message _withArgumentsInvalidGetterSetterTypeBothInheritedGetter(DartType _type, name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeBothInheritedGetter, - problemMessage: - """The type '${type}' of the inherited getter '${name}' is not a subtype of the type '${type2}' of the inherited setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeBothInheritedGetter, + problemMessage: + """The type '${type}' of the inherited getter '${name}' is not a subtype of the type '${type2}' of the inherited setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3090,13 +3485,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeBothInheritedGetterLegacy = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeBothInheritedGetterLegacy", - problemMessageTemplate: - r"""The type '#type' of the inherited getter '#name' is not assignable to the type '#type2' of the inherited setter '#name2'.""", - withArguments: - _withArgumentsInvalidGetterSetterTypeBothInheritedGetterLegacy); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeBothInheritedGetterLegacy", + problemMessageTemplate: + r"""The type '#type' of the inherited getter '#name' is not assignable to the type '#type2' of the inherited setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeBothInheritedGetterLegacy, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3124,16 +3519,18 @@ Message _withArgumentsInvalidGetterSetterTypeBothInheritedGetterLegacy( name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeBothInheritedGetterLegacy, - problemMessage: - """The type '${type}' of the inherited getter '${name}' is not assignable to the type '${type2}' of the inherited setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeBothInheritedGetterLegacy, + problemMessage: + """The type '${type}' of the inherited getter '${name}' is not assignable to the type '${type2}' of the inherited setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3141,12 +3538,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeFieldInherited = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeFieldInherited", - problemMessageTemplate: - r"""The type '#type' of the inherited field '#name' is not a subtype of the type '#type2' of the setter '#name2'.""", - withArguments: _withArgumentsInvalidGetterSetterTypeFieldInherited); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeFieldInherited", + problemMessageTemplate: + r"""The type '#type' of the inherited field '#name' is not a subtype of the type '#type2' of the setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeFieldInherited, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3170,16 +3568,18 @@ Message _withArgumentsInvalidGetterSetterTypeFieldInherited(DartType _type, name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeFieldInherited, - problemMessage: - """The type '${type}' of the inherited field '${name}' is not a subtype of the type '${type2}' of the setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeFieldInherited, + problemMessage: + """The type '${type}' of the inherited field '${name}' is not a subtype of the type '${type2}' of the setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3187,13 +3587,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeFieldInheritedLegacy = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeFieldInheritedLegacy", - problemMessageTemplate: - r"""The type '#type' of the inherited field '#name' is not assignable to the type '#type2' of the setter '#name2'.""", - withArguments: - _withArgumentsInvalidGetterSetterTypeFieldInheritedLegacy); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeFieldInheritedLegacy", + problemMessageTemplate: + r"""The type '#type' of the inherited field '#name' is not assignable to the type '#type2' of the setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeFieldInheritedLegacy, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3221,16 +3621,18 @@ Message _withArgumentsInvalidGetterSetterTypeFieldInheritedLegacy( name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeFieldInheritedLegacy, - problemMessage: - """The type '${type}' of the inherited field '${name}' is not assignable to the type '${type2}' of the setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeFieldInheritedLegacy, + problemMessage: + """The type '${type}' of the inherited field '${name}' is not assignable to the type '${type2}' of the setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3238,12 +3640,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeGetterInherited = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeGetterInherited", - problemMessageTemplate: - r"""The type '#type' of the inherited getter '#name' is not a subtype of the type '#type2' of the setter '#name2'.""", - withArguments: _withArgumentsInvalidGetterSetterTypeGetterInherited); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeGetterInherited", + problemMessageTemplate: + r"""The type '#type' of the inherited getter '#name' is not a subtype of the type '#type2' of the setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeGetterInherited, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3267,16 +3670,18 @@ Message _withArgumentsInvalidGetterSetterTypeGetterInherited(DartType _type, name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeGetterInherited, - problemMessage: - """The type '${type}' of the inherited getter '${name}' is not a subtype of the type '${type2}' of the setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeGetterInherited, + problemMessage: + """The type '${type}' of the inherited getter '${name}' is not a subtype of the type '${type2}' of the setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3284,13 +3689,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeGetterInheritedLegacy = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeGetterInheritedLegacy", - problemMessageTemplate: - r"""The type '#type' of the inherited getter '#name' is not assignable to the type '#type2' of the setter '#name2'.""", - withArguments: - _withArgumentsInvalidGetterSetterTypeGetterInheritedLegacy); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeGetterInheritedLegacy", + problemMessageTemplate: + r"""The type '#type' of the inherited getter '#name' is not assignable to the type '#type2' of the setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeGetterInheritedLegacy, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3318,16 +3723,18 @@ Message _withArgumentsInvalidGetterSetterTypeGetterInheritedLegacy( name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeGetterInheritedLegacy, - problemMessage: - """The type '${type}' of the inherited getter '${name}' is not assignable to the type '${type2}' of the setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeGetterInheritedLegacy, + problemMessage: + """The type '${type}' of the inherited getter '${name}' is not assignable to the type '${type2}' of the setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3335,15 +3742,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeLegacy = const Template< - Message Function( - DartType _type, - String name, - DartType _type2, - String name2, - bool isNonNullableByDefault)>("InvalidGetterSetterTypeLegacy", - problemMessageTemplate: - r"""The type '#type' of the getter '#name' is not assignable to the type '#type2' of the setter '#name2'.""", - withArguments: _withArgumentsInvalidGetterSetterTypeLegacy); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeLegacy", + problemMessageTemplate: + r"""The type '#type' of the getter '#name' is not assignable to the type '#type2' of the setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeLegacy, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3367,16 +3772,18 @@ Message _withArgumentsInvalidGetterSetterTypeLegacy(DartType _type, String name, name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeLegacy, - problemMessage: - """The type '${type}' of the getter '${name}' is not assignable to the type '${type2}' of the setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeLegacy, + problemMessage: + """The type '${type}' of the getter '${name}' is not assignable to the type '${type2}' of the setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3384,13 +3791,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeSetterInheritedField = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeSetterInheritedField", - problemMessageTemplate: - r"""The type '#type' of the field '#name' is not a subtype of the type '#type2' of the inherited setter '#name2'.""", - withArguments: - _withArgumentsInvalidGetterSetterTypeSetterInheritedField); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeSetterInheritedField", + problemMessageTemplate: + r"""The type '#type' of the field '#name' is not a subtype of the type '#type2' of the inherited setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeSetterInheritedField, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3418,16 +3825,18 @@ Message _withArgumentsInvalidGetterSetterTypeSetterInheritedField( name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeSetterInheritedField, - problemMessage: - """The type '${type}' of the field '${name}' is not a subtype of the type '${type2}' of the inherited setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeSetterInheritedField, + problemMessage: + """The type '${type}' of the field '${name}' is not a subtype of the type '${type2}' of the inherited setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3435,13 +3844,14 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeSetterInheritedFieldLegacy = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeSetterInheritedFieldLegacy", - problemMessageTemplate: - r"""The type '#type' of the field '#name' is not assignable to the type '#type2' of the inherited setter '#name2'.""", - withArguments: - _withArgumentsInvalidGetterSetterTypeSetterInheritedFieldLegacy); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeSetterInheritedFieldLegacy", + problemMessageTemplate: + r"""The type '#type' of the field '#name' is not assignable to the type '#type2' of the inherited setter '#name2'.""", + withArguments: + _withArgumentsInvalidGetterSetterTypeSetterInheritedFieldLegacy, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3469,16 +3879,18 @@ Message _withArgumentsInvalidGetterSetterTypeSetterInheritedFieldLegacy( name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeSetterInheritedFieldLegacy, - problemMessage: - """The type '${type}' of the field '${name}' is not assignable to the type '${type2}' of the inherited setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeSetterInheritedFieldLegacy, + problemMessage: + """The type '${type}' of the field '${name}' is not assignable to the type '${type2}' of the inherited setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3486,13 +3898,13 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeSetterInheritedGetter = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeSetterInheritedGetter", - problemMessageTemplate: - r"""The type '#type' of the getter '#name' is not a subtype of the type '#type2' of the inherited setter '#name2'.""", - withArguments: - _withArgumentsInvalidGetterSetterTypeSetterInheritedGetter); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeSetterInheritedGetter", + problemMessageTemplate: + r"""The type '#type' of the getter '#name' is not a subtype of the type '#type2' of the inherited setter '#name2'.""", + withArguments: _withArgumentsInvalidGetterSetterTypeSetterInheritedGetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3520,16 +3932,18 @@ Message _withArgumentsInvalidGetterSetterTypeSetterInheritedGetter( name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeSetterInheritedGetter, - problemMessage: - """The type '${type}' of the getter '${name}' is not a subtype of the type '${type2}' of the inherited setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeSetterInheritedGetter, + problemMessage: + """The type '${type}' of the getter '${name}' is not a subtype of the type '${type2}' of the inherited setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3537,13 +3951,14 @@ const Template< Message Function(DartType _type, String name, DartType _type2, String name2, bool isNonNullableByDefault)> templateInvalidGetterSetterTypeSetterInheritedGetterLegacy = const Template< - Message Function(DartType _type, String name, DartType _type2, - String name2, bool isNonNullableByDefault)>( - "InvalidGetterSetterTypeSetterInheritedGetterLegacy", - problemMessageTemplate: - r"""The type '#type' of the getter '#name' is not assignable to the type '#type2' of the inherited setter '#name2'.""", - withArguments: - _withArgumentsInvalidGetterSetterTypeSetterInheritedGetterLegacy); + Message Function(DartType _type, String name, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "InvalidGetterSetterTypeSetterInheritedGetterLegacy", + problemMessageTemplate: + r"""The type '#type' of the getter '#name' is not assignable to the type '#type2' of the inherited setter '#name2'.""", + withArguments: + _withArgumentsInvalidGetterSetterTypeSetterInheritedGetterLegacy, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3571,31 +3986,32 @@ Message _withArgumentsInvalidGetterSetterTypeSetterInheritedGetterLegacy( name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidGetterSetterTypeSetterInheritedGetterLegacy, - problemMessage: - """The type '${type}' of the getter '${name}' is not assignable to the type '${type2}' of the inherited setter '${name2}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeInvalidGetterSetterTypeSetterInheritedGetterLegacy, + problemMessage: + """The type '${type}' of the getter '${name}' is not assignable to the type '${type2}' of the inherited setter '${name2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateInvalidReturn = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateInvalidReturn = const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidReturn", - problemMessageTemplate: - r"""A value of type '#type' can't be returned from a function with return type '#type2'.""", - withArguments: _withArgumentsInvalidReturn); + "InvalidReturn", + problemMessageTemplate: + r"""A value of type '#type' can't be returned from a function with return type '#type2'.""", + withArguments: _withArgumentsInvalidReturn, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3615,26 +4031,30 @@ Message _withArgumentsInvalidReturn( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidReturn, - problemMessage: - """A value of type '${type}' can't be returned from a function with return type '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidReturn, + problemMessage: + """A value of type '${type}' can't be returned from a function with return type '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateInvalidReturnAsync = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateInvalidReturnAsync = const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidReturnAsync", - problemMessageTemplate: - r"""A value of type '#type' can't be returned from an async function with return type '#type2'.""", - withArguments: _withArgumentsInvalidReturnAsync); + "InvalidReturnAsync", + problemMessageTemplate: + r"""A value of type '#type' can't be returned from an async function with return type '#type2'.""", + withArguments: _withArgumentsInvalidReturnAsync, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3654,11 +4074,16 @@ Message _withArgumentsInvalidReturnAsync( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidReturnAsync, - problemMessage: - """A value of type '${type}' can't be returned from an async function with return type '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidReturnAsync, + problemMessage: + """A value of type '${type}' can't be returned from an async function with return type '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3666,12 +4091,13 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateInvalidReturnAsyncNullability = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidReturnAsyncNullability", - problemMessageTemplate: - r"""A value of type '#type' can't be returned from an async function with return type '#type2' because '#type' is nullable and '#type2' isn't.""", - withArguments: _withArgumentsInvalidReturnAsyncNullability); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidReturnAsyncNullability", + problemMessageTemplate: + r"""A value of type '#type' can't be returned from an async function with return type '#type2' because '#type' is nullable and '#type2' isn't.""", + withArguments: _withArgumentsInvalidReturnAsyncNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3691,21 +4117,27 @@ Message _withArgumentsInvalidReturnAsyncNullability( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidReturnAsyncNullability, - problemMessage: - """A value of type '${type}' can't be returned from an async function with return type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidReturnAsyncNullability, + problemMessage: + """A value of type '${type}' can't be returned from an async function with return type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidReturnAsyncNullabilityNull = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "InvalidReturnAsyncNullabilityNull", - problemMessageTemplate: - r"""The value 'null' can't be returned from an async function with return type '#type' because '#type' is not nullable.""", - withArguments: _withArgumentsInvalidReturnAsyncNullabilityNull); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "InvalidReturnAsyncNullabilityNull", + problemMessageTemplate: + r"""The value 'null' can't be returned from an async function with return type '#type' because '#type' is not nullable.""", + withArguments: _withArgumentsInvalidReturnAsyncNullabilityNull, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -3720,11 +4152,15 @@ Message _withArgumentsInvalidReturnAsyncNullabilityNull( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeInvalidReturnAsyncNullabilityNull, - problemMessage: - """The value 'null' can't be returned from an async function with return type '${type}' because '${type}' is not nullable.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeInvalidReturnAsyncNullabilityNull, + problemMessage: + """The value 'null' can't be returned from an async function with return type '${type}' because '${type}' is not nullable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3732,12 +4168,13 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateInvalidReturnAsyncNullabilityNullType = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidReturnAsyncNullabilityNullType", - problemMessageTemplate: - r"""A value of type '#type' can't be returned from an async function with return type '#type2' because '#type2' is not nullable.""", - withArguments: _withArgumentsInvalidReturnAsyncNullabilityNullType); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidReturnAsyncNullabilityNullType", + problemMessageTemplate: + r"""A value of type '#type' can't be returned from an async function with return type '#type2' because '#type2' is not nullable.""", + withArguments: _withArgumentsInvalidReturnAsyncNullabilityNullType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3757,11 +4194,16 @@ Message _withArgumentsInvalidReturnAsyncNullabilityNullType( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidReturnAsyncNullabilityNullType, - problemMessage: - """A value of type '${type}' can't be returned from an async function with return type '${type2}' because '${type2}' is not nullable.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidReturnAsyncNullabilityNullType, + problemMessage: + """A value of type '${type}' can't be returned from an async function with return type '${type2}' because '${type2}' is not nullable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3769,12 +4211,13 @@ const Template< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> templateInvalidReturnAsyncPartNullability = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "InvalidReturnAsyncPartNullability", - problemMessageTemplate: - r"""A value of type '#type' can't be returned from an async function with return type '#type2' because '#type3' is nullable and '#type4' isn't.""", - withArguments: _withArgumentsInvalidReturnAsyncPartNullability); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "InvalidReturnAsyncPartNullability", + problemMessageTemplate: + r"""A value of type '#type' can't be returned from an async function with return type '#type2' because '#type3' is nullable and '#type4' isn't.""", + withArguments: _withArgumentsInvalidReturnAsyncPartNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3802,16 +4245,18 @@ Message _withArgumentsInvalidReturnAsyncPartNullability( String type2 = type2Parts.join(); String type3 = type3Parts.join(); String type4 = type4Parts.join(); - return new Message(codeInvalidReturnAsyncPartNullability, - problemMessage: - """A value of type '${type}' can't be returned from an async function with return type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'type2': _type2, - 'type3': _type3, - 'type4': _type4 - }); + return new Message( + codeInvalidReturnAsyncPartNullability, + problemMessage: + """A value of type '${type}' can't be returned from an async function with return type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + 'type4': _type4, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3819,12 +4264,13 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateInvalidReturnNullability = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidReturnNullability", - problemMessageTemplate: - r"""A value of type '#type' can't be returned from a function with return type '#type2' because '#type' is nullable and '#type2' isn't.""", - withArguments: _withArgumentsInvalidReturnNullability); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidReturnNullability", + problemMessageTemplate: + r"""A value of type '#type' can't be returned from a function with return type '#type2' because '#type' is nullable and '#type2' isn't.""", + withArguments: _withArgumentsInvalidReturnNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3844,21 +4290,27 @@ Message _withArgumentsInvalidReturnNullability( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidReturnNullability, - problemMessage: - """A value of type '${type}' can't be returned from a function with return type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidReturnNullability, + problemMessage: + """A value of type '${type}' can't be returned from a function with return type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateInvalidReturnNullabilityNull = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "InvalidReturnNullabilityNull", - problemMessageTemplate: - r"""The value 'null' can't be returned from a function with return type '#type' because '#type' is not nullable.""", - withArguments: _withArgumentsInvalidReturnNullabilityNull); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "InvalidReturnNullabilityNull", + problemMessageTemplate: + r"""The value 'null' can't be returned from a function with return type '#type' because '#type' is not nullable.""", + withArguments: _withArgumentsInvalidReturnNullabilityNull, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -3873,11 +4325,15 @@ Message _withArgumentsInvalidReturnNullabilityNull( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeInvalidReturnNullabilityNull, - problemMessage: - """The value 'null' can't be returned from a function with return type '${type}' because '${type}' is not nullable.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeInvalidReturnNullabilityNull, + problemMessage: + """The value 'null' can't be returned from a function with return type '${type}' because '${type}' is not nullable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3885,12 +4341,13 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateInvalidReturnNullabilityNullType = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "InvalidReturnNullabilityNullType", - problemMessageTemplate: - r"""A value of type '#type' can't be returned from a function with return type '#type2' because '#type2' is not nullable.""", - withArguments: _withArgumentsInvalidReturnNullabilityNullType); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "InvalidReturnNullabilityNullType", + problemMessageTemplate: + r"""A value of type '#type' can't be returned from a function with return type '#type2' because '#type2' is not nullable.""", + withArguments: _withArgumentsInvalidReturnNullabilityNullType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3910,11 +4367,16 @@ Message _withArgumentsInvalidReturnNullabilityNullType( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeInvalidReturnNullabilityNullType, - problemMessage: - """A value of type '${type}' can't be returned from a function with return type '${type2}' because '${type2}' is not nullable.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeInvalidReturnNullabilityNullType, + problemMessage: + """A value of type '${type}' can't be returned from a function with return type '${type2}' because '${type2}' is not nullable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -3922,15 +4384,13 @@ const Template< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> templateInvalidReturnPartNullability = const Template< - Message Function( - DartType _type, - DartType _type2, - DartType _type3, - DartType _type4, - bool isNonNullableByDefault)>("InvalidReturnPartNullability", - problemMessageTemplate: - r"""A value of type '#type' can't be returned from a function with return type '#type2' because '#type3' is nullable and '#type4' isn't.""", - withArguments: _withArgumentsInvalidReturnPartNullability); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "InvalidReturnPartNullability", + problemMessageTemplate: + r"""A value of type '#type' can't be returned from a function with return type '#type2' because '#type3' is nullable and '#type4' isn't.""", + withArguments: _withArgumentsInvalidReturnPartNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -3958,28 +4418,31 @@ Message _withArgumentsInvalidReturnPartNullability( String type2 = type2Parts.join(); String type3 = type3Parts.join(); String type4 = type4Parts.join(); - return new Message(codeInvalidReturnPartNullability, - problemMessage: - """A value of type '${type}' can't be returned from a function with return type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'type2': _type2, - 'type3': _type3, - 'type4': _type4 - }); + return new Message( + codeInvalidReturnPartNullability, + problemMessage: + """A value of type '${type}' can't be returned from a function with return type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + 'type4': _type4, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropExportInvalidInteropTypeArgument = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "JsInteropExportInvalidInteropTypeArgument", - problemMessageTemplate: - r"""Type argument '#type' needs to be a non-JS interop type.""", - correctionMessageTemplate: - r"""Use a non-JS interop class that uses `@JSExport` instead.""", - withArguments: _withArgumentsJsInteropExportInvalidInteropTypeArgument); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "JsInteropExportInvalidInteropTypeArgument", + problemMessageTemplate: + r"""Type argument '#type' needs to be a non-JS interop type.""", + correctionMessageTemplate: + r"""Use a non-JS interop class that uses `@JSExport` instead.""", + withArguments: _withArgumentsJsInteropExportInvalidInteropTypeArgument, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -3994,25 +4457,30 @@ Message _withArgumentsJsInteropExportInvalidInteropTypeArgument( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeJsInteropExportInvalidInteropTypeArgument, - problemMessage: - """Type argument '${type}' needs to be a non-JS interop type.""" + - labeler.originMessages, - correctionMessage: - """Use a non-JS interop class that uses `@JSExport` instead.""", - arguments: {'type': _type}); + return new Message( + codeJsInteropExportInvalidInteropTypeArgument, + problemMessage: + """Type argument '${type}' needs to be a non-JS interop type.""" + + labeler.originMessages, + correctionMessage: + """Use a non-JS interop class that uses `@JSExport` instead.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropExportInvalidTypeArgument = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "JsInteropExportInvalidTypeArgument", - problemMessageTemplate: - r"""Type argument '#type' needs to be an interface type.""", - correctionMessageTemplate: - r"""Use a non-JS interop class that uses `@JSExport` instead.""", - withArguments: _withArgumentsJsInteropExportInvalidTypeArgument); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "JsInteropExportInvalidTypeArgument", + problemMessageTemplate: + r"""Type argument '#type' needs to be an interface type.""", + correctionMessageTemplate: + r"""Use a non-JS interop class that uses `@JSExport` instead.""", + withArguments: _withArgumentsJsInteropExportInvalidTypeArgument, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4027,13 +4495,17 @@ Message _withArgumentsJsInteropExportInvalidTypeArgument( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeJsInteropExportInvalidTypeArgument, - problemMessage: - """Type argument '${type}' needs to be an interface type.""" + - labeler.originMessages, - correctionMessage: - """Use a non-JS interop class that uses `@JSExport` instead.""", - arguments: {'type': _type}); + return new Message( + codeJsInteropExportInvalidTypeArgument, + problemMessage: + """Type argument '${type}' needs to be an interface type.""" + + labeler.originMessages, + correctionMessage: + """Use a non-JS interop class that uses `@JSExport` instead.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4041,14 +4513,15 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateJsInteropExtensionTypeNotInterop = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "JsInteropExtensionTypeNotInterop", - problemMessageTemplate: - r"""Extension type '#name' is marked with a '@JS' annotation, but its representation type is not a valid JS interop type: '#type'.""", - correctionMessageTemplate: - r"""Try declaring a valid JS interop representation type, which may include 'dart:js_interop' types, '@staticInterop' types, 'dart:html' types, or other interop extension types.""", - withArguments: _withArgumentsJsInteropExtensionTypeNotInterop); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "JsInteropExtensionTypeNotInterop", + problemMessageTemplate: + r"""Extension type '#name' is marked with a '@JS' annotation, but its representation type is not a valid JS interop type: '#type'.""", + correctionMessageTemplate: + r"""Try declaring a valid JS interop representation type, which may include 'dart:js_interop' types, '@staticInterop' types, 'dart:html' types, or other interop extension types.""", + withArguments: _withArgumentsJsInteropExtensionTypeNotInterop, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -4068,24 +4541,31 @@ Message _withArgumentsJsInteropExtensionTypeNotInterop( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeJsInteropExtensionTypeNotInterop, - problemMessage: - """Extension type '${name}' is marked with a '@JS' annotation, but its representation type is not a valid JS interop type: '${type}'.""" + - labeler.originMessages, - correctionMessage: """Try declaring a valid JS interop representation type, which may include 'dart:js_interop' types, '@staticInterop' types, 'dart:html' types, or other interop extension types.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeJsInteropExtensionTypeNotInterop, + problemMessage: + """Extension type '${name}' is marked with a '@JS' annotation, but its representation type is not a valid JS interop type: '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try declaring a valid JS interop representation type, which may include 'dart:js_interop' types, '@staticInterop' types, 'dart:html' types, or other interop extension types.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropFunctionToJSRequiresStaticType = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "JsInteropFunctionToJSRequiresStaticType", - problemMessageTemplate: - r"""`Function.toJS` requires a statically known function type, but Type '#type' is not a precise function type, e.g., `void Function()`.""", - correctionMessageTemplate: - r"""Insert an explicit cast to the expected function type.""", - withArguments: _withArgumentsJsInteropFunctionToJSRequiresStaticType); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "JsInteropFunctionToJSRequiresStaticType", + problemMessageTemplate: + r"""`Function.toJS` requires a statically known function type, but Type '#type' is not a precise function type, e.g., `void Function()`.""", + correctionMessageTemplate: + r"""Insert an explicit cast to the expected function type.""", + withArguments: _withArgumentsJsInteropFunctionToJSRequiresStaticType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4100,24 +4580,30 @@ Message _withArgumentsJsInteropFunctionToJSRequiresStaticType( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeJsInteropFunctionToJSRequiresStaticType, - problemMessage: - """`Function.toJS` requires a statically known function type, but Type '${type}' is not a precise function type, e.g., `void Function()`.""" + - labeler.originMessages, - correctionMessage: """Insert an explicit cast to the expected function type.""", - arguments: {'type': _type}); + return new Message( + codeJsInteropFunctionToJSRequiresStaticType, + problemMessage: + """`Function.toJS` requires a statically known function type, but Type '${type}' is not a precise function type, e.g., `void Function()`.""" + + labeler.originMessages, + correctionMessage: + """Insert an explicit cast to the expected function type.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropIsAInvalidType = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "JsInteropIsAInvalidType", - problemMessageTemplate: - r"""Type argument '#type' needs to be an interop 'ExtensionType'.""", - correctionMessageTemplate: - r"""Use a valid interop extension type as the type argument instead.""", - withArguments: _withArgumentsJsInteropIsAInvalidType); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "JsInteropIsAInvalidType", + problemMessageTemplate: + r"""Type argument '#type' needs to be an interop 'ExtensionType'.""", + correctionMessageTemplate: + r"""Use a valid interop extension type as the type argument instead.""", + withArguments: _withArgumentsJsInteropIsAInvalidType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4132,24 +4618,30 @@ Message _withArgumentsJsInteropIsAInvalidType( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeJsInteropIsAInvalidType, - problemMessage: - """Type argument '${type}' needs to be an interop 'ExtensionType'.""" + - labeler.originMessages, - correctionMessage: """Use a valid interop extension type as the type argument instead.""", - arguments: {'type': _type}); + return new Message( + codeJsInteropIsAInvalidType, + problemMessage: + """Type argument '${type}' needs to be an interop 'ExtensionType'.""" + + labeler.originMessages, + correctionMessage: + """Use a valid interop extension type as the type argument instead.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropIsAObjectLiteralType = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "JsInteropIsAObjectLiteralType", - problemMessageTemplate: - r"""Type argument '#type' has an object literal constructor. Because 'isA' uses the type's name or '@JS()' rename, this may result in an incorrect type check.""", - correctionMessageTemplate: - r"""Use 'JSObject' as the type argument instead.""", - withArguments: _withArgumentsJsInteropIsAObjectLiteralType); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "JsInteropIsAObjectLiteralType", + problemMessageTemplate: + r"""Type argument '#type' has an object literal constructor. Because 'isA' uses the type's name or '@JS()' rename, this may result in an incorrect type check.""", + correctionMessageTemplate: + r"""Use 'JSObject' as the type argument instead.""", + withArguments: _withArgumentsJsInteropIsAObjectLiteralType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4164,12 +4656,16 @@ Message _withArgumentsJsInteropIsAObjectLiteralType( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeJsInteropIsAObjectLiteralType, - problemMessage: - """Type argument '${type}' has an object literal constructor. Because 'isA' uses the type's name or '@JS()' rename, this may result in an incorrect type check.""" + - labeler.originMessages, - correctionMessage: """Use 'JSObject' as the type argument instead.""", - arguments: {'type': _type}); + return new Message( + codeJsInteropIsAObjectLiteralType, + problemMessage: + """Type argument '${type}' has an object literal constructor. Because 'isA' uses the type's name or '@JS()' rename, this may result in an incorrect type check.""" + + labeler.originMessages, + correctionMessage: """Use 'JSObject' as the type argument instead.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4177,14 +4673,15 @@ const Template< Message Function( DartType _type, String string, bool isNonNullableByDefault)> templateJsInteropIsAPrimitiveExtensionType = const Template< - Message Function( - DartType _type, String string, bool isNonNullableByDefault)>( - "JsInteropIsAPrimitiveExtensionType", - problemMessageTemplate: - r"""Type argument '#type' wraps primitive JS type '#string', which is specially handled using 'typeof'.""", - correctionMessageTemplate: - r"""Use the primitive JS type '#string' as the type argument instead.""", - withArguments: _withArgumentsJsInteropIsAPrimitiveExtensionType); + Message Function( + DartType _type, String string, bool isNonNullableByDefault)>( + "JsInteropIsAPrimitiveExtensionType", + problemMessageTemplate: + r"""Type argument '#type' wraps primitive JS type '#string', which is specially handled using 'typeof'.""", + correctionMessageTemplate: + r"""Use the primitive JS type '#string' as the type argument instead.""", + withArguments: _withArgumentsJsInteropIsAPrimitiveExtensionType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -4203,25 +4700,31 @@ Message _withArgumentsJsInteropIsAPrimitiveExtensionType( List typeParts = labeler.labelType(_type); if (string.isEmpty) throw 'No string provided'; String type = typeParts.join(); - return new Message(codeJsInteropIsAPrimitiveExtensionType, - problemMessage: - """Type argument '${type}' wraps primitive JS type '${string}', which is specially handled using 'typeof'.""" + - labeler.originMessages, - correctionMessage: """Use the primitive JS type '${string}' as the type argument instead.""", - arguments: {'type': _type, 'string': string}); + return new Message( + codeJsInteropIsAPrimitiveExtensionType, + problemMessage: + """Type argument '${type}' wraps primitive JS type '${string}', which is specially handled using 'typeof'.""" + + labeler.originMessages, + correctionMessage: + """Use the primitive JS type '${string}' as the type argument instead.""", + arguments: { + 'type': _type, + 'string': string, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropStaticInteropExternalTypeViolation = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "JsInteropStaticInteropExternalTypeViolation", - problemMessageTemplate: - r"""Type '#type' is not a valid type in the signature of 'dart:js_interop' external APIs or APIs converted via 'toJS'.""", - correctionMessageTemplate: - r"""Use one of these valid types instead: JS types from 'dart:js_interop', '@staticInterop' types, 'dart:html' types when compiling to JS, void, bool, num, double, int, String, extension types that erases to one of these types, or a type parameter that is bound to a static interop or 'dart:html' type.""", - withArguments: - _withArgumentsJsInteropStaticInteropExternalTypeViolation); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "JsInteropStaticInteropExternalTypeViolation", + problemMessageTemplate: + r"""Type '#type' is not a valid type in the signature of 'dart:js_interop' external APIs or APIs converted via 'toJS'.""", + correctionMessageTemplate: + r"""Use one of these valid types instead: JS types from 'dart:js_interop', '@staticInterop' types, 'dart:html' types when compiling to JS, void, bool, num, double, int, String, extension types that erases to one of these types, or a type parameter that is bound to a static interop or 'dart:html' type.""", + withArguments: _withArgumentsJsInteropStaticInteropExternalTypeViolation, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4236,24 +4739,29 @@ Message _withArgumentsJsInteropStaticInteropExternalTypeViolation( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeJsInteropStaticInteropExternalTypeViolation, - problemMessage: - """Type '${type}' is not a valid type in the signature of 'dart:js_interop' external APIs or APIs converted via 'toJS'.""" + - labeler.originMessages, - correctionMessage: """Use one of these valid types instead: JS types from 'dart:js_interop', '@staticInterop' types, 'dart:html' types when compiling to JS, void, bool, num, double, int, String, extension types that erases to one of these types, or a type parameter that is bound to a static interop or 'dart:html' type.""", - arguments: {'type': _type}); + return new Message( + codeJsInteropStaticInteropExternalTypeViolation, + problemMessage: + """Type '${type}' is not a valid type in the signature of 'dart:js_interop' external APIs or APIs converted via 'toJS'.""" + + labeler.originMessages, + correctionMessage: + """Use one of these valid types instead: JS types from 'dart:js_interop', '@staticInterop' types, 'dart:html' types when compiling to JS, void, bool, num, double, int, String, extension types that erases to one of these types, or a type parameter that is bound to a static interop or 'dart:html' type.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropStaticInteropMockNotStaticInteropType = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "JsInteropStaticInteropMockNotStaticInteropType", - problemMessageTemplate: - r"""Type argument '#type' needs to be a `@staticInterop` type.""", - correctionMessageTemplate: r"""Use a `@staticInterop` class instead.""", - withArguments: - _withArgumentsJsInteropStaticInteropMockNotStaticInteropType); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "JsInteropStaticInteropMockNotStaticInteropType", + problemMessageTemplate: + r"""Type argument '#type' needs to be a `@staticInterop` type.""", + correctionMessageTemplate: r"""Use a `@staticInterop` class instead.""", + withArguments: _withArgumentsJsInteropStaticInteropMockNotStaticInteropType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4268,25 +4776,30 @@ Message _withArgumentsJsInteropStaticInteropMockNotStaticInteropType( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeJsInteropStaticInteropMockNotStaticInteropType, - problemMessage: - """Type argument '${type}' needs to be a `@staticInterop` type.""" + - labeler.originMessages, - correctionMessage: """Use a `@staticInterop` class instead.""", - arguments: {'type': _type}); + return new Message( + codeJsInteropStaticInteropMockNotStaticInteropType, + problemMessage: + """Type argument '${type}' needs to be a `@staticInterop` type.""" + + labeler.originMessages, + correctionMessage: """Use a `@staticInterop` class instead.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateJsInteropStaticInteropMockTypeParametersNotAllowed = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "JsInteropStaticInteropMockTypeParametersNotAllowed", - problemMessageTemplate: - r"""Type argument '#type' has type parameters that do not match their bound. createStaticInteropMock requires instantiating all type parameters to their bound to ensure mocking conformance.""", - correctionMessageTemplate: - r"""Remove the type parameter in the type argument or replace it with its bound.""", - withArguments: - _withArgumentsJsInteropStaticInteropMockTypeParametersNotAllowed); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "JsInteropStaticInteropMockTypeParametersNotAllowed", + problemMessageTemplate: + r"""Type argument '#type' has type parameters that do not match their bound. createStaticInteropMock requires instantiating all type parameters to their bound to ensure mocking conformance.""", + correctionMessageTemplate: + r"""Remove the type parameter in the type argument or replace it with its bound.""", + withArguments: + _withArgumentsJsInteropStaticInteropMockTypeParametersNotAllowed, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4301,12 +4814,17 @@ Message _withArgumentsJsInteropStaticInteropMockTypeParametersNotAllowed( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeJsInteropStaticInteropMockTypeParametersNotAllowed, - problemMessage: - """Type argument '${type}' has type parameters that do not match their bound. createStaticInteropMock requires instantiating all type parameters to their bound to ensure mocking conformance.""" + - labeler.originMessages, - correctionMessage: """Remove the type parameter in the type argument or replace it with its bound.""", - arguments: {'type': _type}); + return new Message( + codeJsInteropStaticInteropMockTypeParametersNotAllowed, + problemMessage: + """Type argument '${type}' has type parameters that do not match their bound. createStaticInteropMock requires instantiating all type parameters to their bound to ensure mocking conformance.""" + + labeler.originMessages, + correctionMessage: + """Remove the type parameter in the type argument or replace it with its bound.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4314,12 +4832,13 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateMainWrongParameterType = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "MainWrongParameterType", - problemMessageTemplate: - r"""The type '#type' of the first parameter of the 'main' method is not a supertype of '#type2'.""", - withArguments: _withArgumentsMainWrongParameterType); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "MainWrongParameterType", + problemMessageTemplate: + r"""The type '#type' of the first parameter of the 'main' method is not a supertype of '#type2'.""", + withArguments: _withArgumentsMainWrongParameterType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -4339,11 +4858,16 @@ Message _withArgumentsMainWrongParameterType( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeMainWrongParameterType, - problemMessage: - """The type '${type}' of the first parameter of the 'main' method is not a supertype of '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeMainWrongParameterType, + problemMessage: + """The type '${type}' of the first parameter of the 'main' method is not a supertype of '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4351,12 +4875,13 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateMainWrongParameterTypeExported = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "MainWrongParameterTypeExported", - problemMessageTemplate: - r"""The type '#type' of the first parameter of the exported 'main' method is not a supertype of '#type2'.""", - withArguments: _withArgumentsMainWrongParameterTypeExported); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "MainWrongParameterTypeExported", + problemMessageTemplate: + r"""The type '#type' of the first parameter of the exported 'main' method is not a supertype of '#type2'.""", + withArguments: _withArgumentsMainWrongParameterTypeExported, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -4376,11 +4901,16 @@ Message _withArgumentsMainWrongParameterTypeExported( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeMainWrongParameterTypeExported, - problemMessage: - """The type '${type}' of the first parameter of the exported 'main' method is not a supertype of '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeMainWrongParameterTypeExported, + problemMessage: + """The type '${type}' of the first parameter of the exported 'main' method is not a supertype of '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4388,22 +4918,24 @@ const Template< Message Function(DartType _type, DartType _type2, DartType _type3, bool isNonNullableByDefault)> templateMixinApplicationIncompatibleSupertype = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - bool isNonNullableByDefault)>( - "MixinApplicationIncompatibleSupertype", - problemMessageTemplate: - r"""'#type' doesn't implement '#type2' so it can't be used with '#type3'.""", - withArguments: _withArgumentsMixinApplicationIncompatibleSupertype); + Message Function(DartType _type, DartType _type2, DartType _type3, + bool isNonNullableByDefault)>( + "MixinApplicationIncompatibleSupertype", + problemMessageTemplate: + r"""'#type' doesn't implement '#type2' so it can't be used with '#type3'.""", + withArguments: _withArgumentsMixinApplicationIncompatibleSupertype, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, DartType _type3, bool isNonNullableByDefault)> codeMixinApplicationIncompatibleSupertype = const Code< - Message Function(DartType _type, DartType _type2, DartType _type3, - bool isNonNullableByDefault)>( - "MixinApplicationIncompatibleSupertype", - analyzerCodes: ["MIXIN_APPLICATION_NOT_IMPLEMENTED_INTERFACE"]); + Message Function(DartType _type, DartType _type2, DartType _type3, + bool isNonNullableByDefault)>( + "MixinApplicationIncompatibleSupertype", + analyzerCodes: ["MIXIN_APPLICATION_NOT_IMPLEMENTED_INTERFACE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMixinApplicationIncompatibleSupertype(DartType _type, @@ -4415,11 +4947,17 @@ Message _withArgumentsMixinApplicationIncompatibleSupertype(DartType _type, String type = typeParts.join(); String type2 = type2Parts.join(); String type3 = type3Parts.join(); - return new Message(codeMixinApplicationIncompatibleSupertype, - problemMessage: - """'${type}' doesn't implement '${type2}' so it can't be used with '${type3}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2, 'type3': _type3}); + return new Message( + codeMixinApplicationIncompatibleSupertype, + problemMessage: + """'${type}' doesn't implement '${type2}' so it can't be used with '${type3}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4427,20 +4965,24 @@ const Template< Message Function(String name, String name2, DartType _type, bool isNonNullableByDefault)> templateMixinInferenceNoMatchingClass = const Template< - Message Function(String name, String name2, DartType _type, - bool isNonNullableByDefault)>("MixinInferenceNoMatchingClass", - problemMessageTemplate: - r"""Type parameters couldn't be inferred for the mixin '#name' because '#name2' does not implement the mixin's supertype constraint '#type'.""", - withArguments: _withArgumentsMixinInferenceNoMatchingClass); + Message Function(String name, String name2, DartType _type, + bool isNonNullableByDefault)>( + "MixinInferenceNoMatchingClass", + problemMessageTemplate: + r"""Type parameters couldn't be inferred for the mixin '#name' because '#name2' does not implement the mixin's supertype constraint '#type'.""", + withArguments: _withArgumentsMixinInferenceNoMatchingClass, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(String name, String name2, DartType _type, bool isNonNullableByDefault)> codeMixinInferenceNoMatchingClass = const Code< - Message Function(String name, String name2, DartType _type, - bool isNonNullableByDefault)>("MixinInferenceNoMatchingClass", - analyzerCodes: ["MIXIN_INFERENCE_NO_POSSIBLE_SUBSTITUTION"]); + Message Function(String name, String name2, DartType _type, + bool isNonNullableByDefault)>( + "MixinInferenceNoMatchingClass", + analyzerCodes: ["MIXIN_INFERENCE_NO_POSSIBLE_SUBSTITUTION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsMixinInferenceNoMatchingClass( @@ -4452,11 +4994,17 @@ Message _withArgumentsMixinInferenceNoMatchingClass( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeMixinInferenceNoMatchingClass, - problemMessage: - """Type parameters couldn't be inferred for the mixin '${name}' because '${name2}' does not implement the mixin's supertype constraint '${type}'.""" + - labeler.originMessages, - arguments: {'name': name, 'name2': name2, 'type': _type}); + return new Message( + codeMixinInferenceNoMatchingClass, + problemMessage: + """Type parameters couldn't be inferred for the mixin '${name}' because '${name2}' does not implement the mixin's supertype constraint '${type}'.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'name2': name2, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4464,12 +5012,13 @@ const Template< Message Function( String string, DartType _type, bool isNonNullableByDefault)> templateNameNotFoundInRecordNameGet = const Template< - Message Function( - String string, DartType _type, bool isNonNullableByDefault)>( - "NameNotFoundInRecordNameGet", - problemMessageTemplate: - r"""Field name #string isn't found in records of type #type.""", - withArguments: _withArgumentsNameNotFoundInRecordNameGet); + Message Function( + String string, DartType _type, bool isNonNullableByDefault)>( + "NameNotFoundInRecordNameGet", + problemMessageTemplate: + r"""Field name #string isn't found in records of type #type.""", + withArguments: _withArgumentsNameNotFoundInRecordNameGet, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -4488,11 +5037,16 @@ Message _withArgumentsNameNotFoundInRecordNameGet( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeNameNotFoundInRecordNameGet, - problemMessage: - """Field name ${string} isn't found in records of type ${type}.""" + - labeler.originMessages, - arguments: {'string': string, 'type': _type}); + return new Message( + codeNameNotFoundInRecordNameGet, + problemMessage: + """Field name ${string} isn't found in records of type ${type}.""" + + labeler.originMessages, + arguments: { + 'string': string, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4500,22 +5054,26 @@ const Template< Message Function(DartType _type, String string, String string2, bool isNonNullableByDefault)> templateNonExhaustiveSwitchExpression = const Template< - Message Function(DartType _type, String string, String string2, - bool isNonNullableByDefault)>("NonExhaustiveSwitchExpression", - problemMessageTemplate: - r"""The type '#type' is not exhaustively matched by the switch cases since it doesn't match '#string'.""", - correctionMessageTemplate: - r"""Try adding a wildcard pattern or cases that match '#string2'.""", - withArguments: _withArgumentsNonExhaustiveSwitchExpression); + Message Function(DartType _type, String string, String string2, + bool isNonNullableByDefault)>( + "NonExhaustiveSwitchExpression", + problemMessageTemplate: + r"""The type '#type' is not exhaustively matched by the switch cases since it doesn't match '#string'.""", + correctionMessageTemplate: + r"""Try adding a wildcard pattern or cases that match '#string2'.""", + withArguments: _withArgumentsNonExhaustiveSwitchExpression, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, String string, String string2, bool isNonNullableByDefault)> codeNonExhaustiveSwitchExpression = const Code< - Message Function(DartType _type, String string, String string2, - bool isNonNullableByDefault)>("NonExhaustiveSwitchExpression", - analyzerCodes: ["NON_EXHAUSTIVE_SWITCH_EXPRESSION"]); + Message Function(DartType _type, String string, String string2, + bool isNonNullableByDefault)>( + "NonExhaustiveSwitchExpression", + analyzerCodes: ["NON_EXHAUSTIVE_SWITCH_EXPRESSION"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNonExhaustiveSwitchExpression(DartType _type, @@ -4525,12 +5083,19 @@ Message _withArgumentsNonExhaustiveSwitchExpression(DartType _type, if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; String type = typeParts.join(); - return new Message(codeNonExhaustiveSwitchExpression, - problemMessage: - """The type '${type}' is not exhaustively matched by the switch cases since it doesn't match '${string}'.""" + - labeler.originMessages, - correctionMessage: """Try adding a wildcard pattern or cases that match '${string2}'.""", - arguments: {'type': _type, 'string': string, 'string2': string2}); + return new Message( + codeNonExhaustiveSwitchExpression, + problemMessage: + """The type '${type}' is not exhaustively matched by the switch cases since it doesn't match '${string}'.""" + + labeler.originMessages, + correctionMessage: + """Try adding a wildcard pattern or cases that match '${string2}'.""", + arguments: { + 'type': _type, + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4538,22 +5103,26 @@ const Template< Message Function(DartType _type, String string, String string2, bool isNonNullableByDefault)> templateNonExhaustiveSwitchStatement = const Template< - Message Function(DartType _type, String string, String string2, - bool isNonNullableByDefault)>("NonExhaustiveSwitchStatement", - problemMessageTemplate: - r"""The type '#type' is not exhaustively matched by the switch cases since it doesn't match '#string'.""", - correctionMessageTemplate: - r"""Try adding a default case or cases that match '#string2'.""", - withArguments: _withArgumentsNonExhaustiveSwitchStatement); + Message Function(DartType _type, String string, String string2, + bool isNonNullableByDefault)>( + "NonExhaustiveSwitchStatement", + problemMessageTemplate: + r"""The type '#type' is not exhaustively matched by the switch cases since it doesn't match '#string'.""", + correctionMessageTemplate: + r"""Try adding a default case or cases that match '#string2'.""", + withArguments: _withArgumentsNonExhaustiveSwitchStatement, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, String string, String string2, bool isNonNullableByDefault)> codeNonExhaustiveSwitchStatement = const Code< - Message Function(DartType _type, String string, String string2, - bool isNonNullableByDefault)>("NonExhaustiveSwitchStatement", - analyzerCodes: ["NON_EXHAUSTIVE_SWITCH_STATEMENT"]); + Message Function(DartType _type, String string, String string2, + bool isNonNullableByDefault)>( + "NonExhaustiveSwitchStatement", + analyzerCodes: ["NON_EXHAUSTIVE_SWITCH_STATEMENT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNonExhaustiveSwitchStatement(DartType _type, @@ -4563,22 +5132,29 @@ Message _withArgumentsNonExhaustiveSwitchStatement(DartType _type, if (string.isEmpty) throw 'No string provided'; if (string2.isEmpty) throw 'No string provided'; String type = typeParts.join(); - return new Message(codeNonExhaustiveSwitchStatement, - problemMessage: - """The type '${type}' is not exhaustively matched by the switch cases since it doesn't match '${string}'.""" + - labeler.originMessages, - correctionMessage: """Try adding a default case or cases that match '${string2}'.""", - arguments: {'type': _type, 'string': string, 'string2': string2}); + return new Message( + codeNonExhaustiveSwitchStatement, + problemMessage: + """The type '${type}' is not exhaustively matched by the switch cases since it doesn't match '${string}'.""" + + labeler.originMessages, + correctionMessage: + """Try adding a default case or cases that match '${string2}'.""", + arguments: { + 'type': _type, + 'string': string, + 'string2': string2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNonNullAwareSpreadIsNull = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "NonNullAwareSpreadIsNull", - problemMessageTemplate: - r"""Can't spread a value with static type '#type'.""", - withArguments: _withArgumentsNonNullAwareSpreadIsNull); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "NonNullAwareSpreadIsNull", + problemMessageTemplate: r"""Can't spread a value with static type '#type'.""", + withArguments: _withArgumentsNonNullAwareSpreadIsNull, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4593,10 +5169,14 @@ Message _withArgumentsNonNullAwareSpreadIsNull( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeNonNullAwareSpreadIsNull, - problemMessage: """Can't spread a value with static type '${type}'.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeNonNullAwareSpreadIsNull, + problemMessage: """Can't spread a value with static type '${type}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4604,22 +5184,22 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateNonNullableInNullAware = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "NonNullableInNullAware", - problemMessageTemplate: - r"""Operand of null-aware operation '#name' has type '#type' which excludes null.""", - withArguments: _withArgumentsNonNullableInNullAware); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "NonNullableInNullAware", + problemMessageTemplate: + r"""Operand of null-aware operation '#name' has type '#type' which excludes null.""", + withArguments: _withArgumentsNonNullableInNullAware, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)> - codeNonNullableInNullAware = const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "NonNullableInNullAware", - severity: Severity.warning); + Message Function(String name, DartType _type, + bool isNonNullableByDefault)> codeNonNullableInNullAware = const Code< + Message Function(String name, DartType _type, bool isNonNullableByDefault)>( + "NonNullableInNullAware", + severity: Severity.warning, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsNonNullableInNullAware( @@ -4629,22 +5209,28 @@ Message _withArgumentsNonNullableInNullAware( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeNonNullableInNullAware, - problemMessage: - """Operand of null-aware operation '${name}' has type '${type}' which excludes null.""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type}); + return new Message( + codeNonNullableInNullAware, + problemMessage: + """Operand of null-aware operation '${name}' has type '${type}' which excludes null.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateNullableExpressionCallError = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "NullableExpressionCallError", - problemMessageTemplate: - r"""Can't use an expression of type '#type' as a function because it's potentially null.""", - correctionMessageTemplate: r"""Try calling using ?.call instead.""", - withArguments: _withArgumentsNullableExpressionCallError); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "NullableExpressionCallError", + problemMessageTemplate: + r"""Can't use an expression of type '#type' as a function because it's potentially null.""", + correctionMessageTemplate: r"""Try calling using ?.call instead.""", + withArguments: _withArgumentsNullableExpressionCallError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -4659,12 +5245,16 @@ Message _withArgumentsNullableExpressionCallError( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeNullableExpressionCallError, - problemMessage: - """Can't use an expression of type '${type}' as a function because it's potentially null.""" + - labeler.originMessages, - correctionMessage: """Try calling using ?.call instead.""", - arguments: {'type': _type}); + return new Message( + codeNullableExpressionCallError, + problemMessage: + """Can't use an expression of type '${type}' as a function because it's potentially null.""" + + labeler.originMessages, + correctionMessage: """Try calling using ?.call instead.""", + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4672,13 +5262,14 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateNullableMethodCallError = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "NullableMethodCallError", - problemMessageTemplate: - r"""Method '#name' cannot be called on '#type' because it is potentially null.""", - correctionMessageTemplate: r"""Try calling using ?. instead.""", - withArguments: _withArgumentsNullableMethodCallError); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "NullableMethodCallError", + problemMessageTemplate: + r"""Method '#name' cannot be called on '#type' because it is potentially null.""", + correctionMessageTemplate: r"""Try calling using ?. instead.""", + withArguments: _withArgumentsNullableMethodCallError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -4696,12 +5287,17 @@ Message _withArgumentsNullableMethodCallError( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeNullableMethodCallError, - problemMessage: - """Method '${name}' cannot be called on '${type}' because it is potentially null.""" + - labeler.originMessages, - correctionMessage: """Try calling using ?. instead.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeNullableMethodCallError, + problemMessage: + """Method '${name}' cannot be called on '${type}' because it is potentially null.""" + + labeler.originMessages, + correctionMessage: """Try calling using ?. instead.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4709,12 +5305,13 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateNullableOperatorCallError = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "NullableOperatorCallError", - problemMessageTemplate: - r"""Operator '#name' cannot be called on '#type' because it is potentially null.""", - withArguments: _withArgumentsNullableOperatorCallError); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "NullableOperatorCallError", + problemMessageTemplate: + r"""Operator '#name' cannot be called on '#type' because it is potentially null.""", + withArguments: _withArgumentsNullableOperatorCallError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -4734,11 +5331,16 @@ Message _withArgumentsNullableOperatorCallError( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeNullableOperatorCallError, - problemMessage: - """Operator '${name}' cannot be called on '${type}' because it is potentially null.""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type}); + return new Message( + codeNullableOperatorCallError, + problemMessage: + """Operator '${name}' cannot be called on '${type}' because it is potentially null.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4746,13 +5348,14 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateNullablePropertyAccessError = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "NullablePropertyAccessError", - problemMessageTemplate: - r"""Property '#name' cannot be accessed on '#type' because it is potentially null.""", - correctionMessageTemplate: r"""Try accessing using ?. instead.""", - withArguments: _withArgumentsNullablePropertyAccessError); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "NullablePropertyAccessError", + problemMessageTemplate: + r"""Property '#name' cannot be accessed on '#type' because it is potentially null.""", + correctionMessageTemplate: r"""Try accessing using ?. instead.""", + withArguments: _withArgumentsNullablePropertyAccessError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -4772,12 +5375,17 @@ Message _withArgumentsNullablePropertyAccessError( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeNullablePropertyAccessError, - problemMessage: - """Property '${name}' cannot be accessed on '${type}' because it is potentially null.""" + - labeler.originMessages, - correctionMessage: """Try accessing using ?. instead.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeNullablePropertyAccessError, + problemMessage: + """Property '${name}' cannot be accessed on '${type}' because it is potentially null.""" + + labeler.originMessages, + correctionMessage: """Try accessing using ?. instead.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4785,25 +5393,26 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateOptionalNonNullableWithoutInitializerError = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "OptionalNonNullableWithoutInitializerError", - problemMessageTemplate: - r"""The parameter '#name' can't have a value of 'null' because of its type '#type', but the implicit default value is 'null'.""", - correctionMessageTemplate: - r"""Try adding either an explicit non-'null' default value or the 'required' modifier.""", - withArguments: - _withArgumentsOptionalNonNullableWithoutInitializerError); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "OptionalNonNullableWithoutInitializerError", + problemMessageTemplate: + r"""The parameter '#name' can't have a value of 'null' because of its type '#type', but the implicit default value is 'null'.""", + correctionMessageTemplate: + r"""Try adding either an explicit non-'null' default value or the 'required' modifier.""", + withArguments: _withArgumentsOptionalNonNullableWithoutInitializerError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( String name, DartType _type, bool isNonNullableByDefault)> codeOptionalNonNullableWithoutInitializerError = const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "OptionalNonNullableWithoutInitializerError", - analyzerCodes: ["MISSING_DEFAULT_VALUE_FOR_PARAMETER"]); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "OptionalNonNullableWithoutInitializerError", + analyzerCodes: ["MISSING_DEFAULT_VALUE_FOR_PARAMETER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOptionalNonNullableWithoutInitializerError( @@ -4813,12 +5422,18 @@ Message _withArgumentsOptionalNonNullableWithoutInitializerError( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeOptionalNonNullableWithoutInitializerError, - problemMessage: - """The parameter '${name}' can't have a value of 'null' because of its type '${type}', but the implicit default value is 'null'.""" + - labeler.originMessages, - correctionMessage: """Try adding either an explicit non-'null' default value or the 'required' modifier.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeOptionalNonNullableWithoutInitializerError, + problemMessage: + """The parameter '${name}' can't have a value of 'null' because of its type '${type}', but the implicit default value is 'null'.""" + + labeler.originMessages, + correctionMessage: + """Try adding either an explicit non-'null' default value or the 'required' modifier.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4826,12 +5441,13 @@ const Template< Message Function( DartType _type, String name, bool isNonNullableByDefault)> templateOptionalSuperParameterWithoutInitializer = const Template< - Message Function( - DartType _type, String name, bool isNonNullableByDefault)>( - "OptionalSuperParameterWithoutInitializer", - problemMessageTemplate: - r"""Type '#type' of the optional super-initializer parameter '#name' doesn't allow 'null', but the parameter doesn't have a default value, and the default value can't be copied from the corresponding parameter of the super constructor.""", - withArguments: _withArgumentsOptionalSuperParameterWithoutInitializer); + Message Function( + DartType _type, String name, bool isNonNullableByDefault)>( + "OptionalSuperParameterWithoutInitializer", + problemMessageTemplate: + r"""Type '#type' of the optional super-initializer parameter '#name' doesn't allow 'null', but the parameter doesn't have a default value, and the default value can't be copied from the corresponding parameter of the super constructor.""", + withArguments: _withArgumentsOptionalSuperParameterWithoutInitializer, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -4851,11 +5467,16 @@ Message _withArgumentsOptionalSuperParameterWithoutInitializer( if (name.isEmpty) throw 'No name provided'; name = demangleMixinApplicationName(name); String type = typeParts.join(); - return new Message(codeOptionalSuperParameterWithoutInitializer, - problemMessage: - """Type '${type}' of the optional super-initializer parameter '${name}' doesn't allow 'null', but the parameter doesn't have a default value, and the default value can't be copied from the corresponding parameter of the super constructor.""" + - labeler.originMessages, - arguments: {'type': _type, 'name': name}); + return new Message( + codeOptionalSuperParameterWithoutInitializer, + problemMessage: + """Type '${type}' of the optional super-initializer parameter '${name}' doesn't allow 'null', but the parameter doesn't have a default value, and the default value can't be copied from the corresponding parameter of the super constructor.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4863,32 +5484,26 @@ const Template< Message Function(String name, String name2, DartType _type, DartType _type2, String name3, bool isNonNullableByDefault)> templateOverrideTypeMismatchParameter = const Template< - Message Function( - String name, - String name2, - DartType _type, - DartType _type2, - String name3, - bool isNonNullableByDefault)>("OverrideTypeMismatchParameter", - problemMessageTemplate: - r"""The parameter '#name' of the method '#name2' has type '#type', which does not match the corresponding type, '#type2', in the overridden method, '#name3'.""", - correctionMessageTemplate: - r"""Change to a supertype of '#type2', or, for a covariant parameter, a subtype.""", - withArguments: _withArgumentsOverrideTypeMismatchParameter); + Message Function(String name, String name2, DartType _type, + DartType _type2, String name3, bool isNonNullableByDefault)>( + "OverrideTypeMismatchParameter", + problemMessageTemplate: + r"""The parameter '#name' of the method '#name2' has type '#type', which does not match the corresponding type, '#type2', in the overridden method, '#name3'.""", + correctionMessageTemplate: + r"""Change to a supertype of '#type2', or, for a covariant parameter, a subtype.""", + withArguments: _withArgumentsOverrideTypeMismatchParameter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(String name, String name2, DartType _type, DartType _type2, String name3, bool isNonNullableByDefault)> codeOverrideTypeMismatchParameter = const Code< - Message Function( - String name, - String name2, - DartType _type, - DartType _type2, - String name3, - bool isNonNullableByDefault)>("OverrideTypeMismatchParameter", - analyzerCodes: ["INVALID_METHOD_OVERRIDE"]); + Message Function(String name, String name2, DartType _type, + DartType _type2, String name3, bool isNonNullableByDefault)>( + "OverrideTypeMismatchParameter", + analyzerCodes: ["INVALID_METHOD_OVERRIDE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOverrideTypeMismatchParameter( @@ -4909,18 +5524,21 @@ Message _withArgumentsOverrideTypeMismatchParameter( name3 = demangleMixinApplicationName(name3); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeOverrideTypeMismatchParameter, - problemMessage: - """The parameter '${name}' of the method '${name2}' has type '${type}', which does not match the corresponding type, '${type2}', in the overridden method, '${name3}'.""" + - labeler.originMessages, - correctionMessage: """Change to a supertype of '${type2}', or, for a covariant parameter, a subtype.""", - arguments: { - 'name': name, - 'name2': name2, - 'type': _type, - 'type2': _type2, - 'name3': name3 - }); + return new Message( + codeOverrideTypeMismatchParameter, + problemMessage: + """The parameter '${name}' of the method '${name2}' has type '${type}', which does not match the corresponding type, '${type2}', in the overridden method, '${name3}'.""" + + labeler.originMessages, + correctionMessage: + """Change to a supertype of '${type2}', or, for a covariant parameter, a subtype.""", + arguments: { + 'name': name, + 'name2': name2, + 'type': _type, + 'type2': _type2, + 'name3': name3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4928,29 +5546,25 @@ const Template< Message Function(String name, DartType _type, DartType _type2, String name2, bool isNonNullableByDefault)> templateOverrideTypeMismatchReturnType = const Template< - Message Function( - String name, - DartType _type, - DartType _type2, - String name2, - bool isNonNullableByDefault)>("OverrideTypeMismatchReturnType", - problemMessageTemplate: - r"""The return type of the method '#name' is '#type', which does not match the return type, '#type2', of the overridden method, '#name2'.""", - correctionMessageTemplate: r"""Change to a subtype of '#type2'.""", - withArguments: _withArgumentsOverrideTypeMismatchReturnType); + Message Function(String name, DartType _type, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "OverrideTypeMismatchReturnType", + problemMessageTemplate: + r"""The return type of the method '#name' is '#type', which does not match the return type, '#type2', of the overridden method, '#name2'.""", + correctionMessageTemplate: r"""Change to a subtype of '#type2'.""", + withArguments: _withArgumentsOverrideTypeMismatchReturnType, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(String name, DartType _type, DartType _type2, String name2, bool isNonNullableByDefault)> codeOverrideTypeMismatchReturnType = const Code< - Message Function( - String name, - DartType _type, - DartType _type2, - String name2, - bool isNonNullableByDefault)>("OverrideTypeMismatchReturnType", - analyzerCodes: ["INVALID_METHOD_OVERRIDE"]); + Message Function(String name, DartType _type, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "OverrideTypeMismatchReturnType", + analyzerCodes: ["INVALID_METHOD_OVERRIDE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOverrideTypeMismatchReturnType( @@ -4968,17 +5582,19 @@ Message _withArgumentsOverrideTypeMismatchReturnType( name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeOverrideTypeMismatchReturnType, - problemMessage: - """The return type of the method '${name}' is '${type}', which does not match the return type, '${type2}', of the overridden method, '${name2}'.""" + - labeler.originMessages, - correctionMessage: """Change to a subtype of '${type2}'.""", - arguments: { - 'name': name, - 'type': _type, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeOverrideTypeMismatchReturnType, + problemMessage: + """The return type of the method '${name}' is '${type}', which does not match the return type, '${type2}', of the overridden method, '${name2}'.""" + + labeler.originMessages, + correctionMessage: """Change to a subtype of '${type2}'.""", + arguments: { + 'name': name, + 'type': _type, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -4986,28 +5602,24 @@ const Template< Message Function(String name, DartType _type, DartType _type2, String name2, bool isNonNullableByDefault)> templateOverrideTypeMismatchSetter = const Template< - Message Function( - String name, - DartType _type, - DartType _type2, - String name2, - bool isNonNullableByDefault)>("OverrideTypeMismatchSetter", - problemMessageTemplate: - r"""The field '#name' has type '#type', which does not match the corresponding type, '#type2', in the overridden setter, '#name2'.""", - withArguments: _withArgumentsOverrideTypeMismatchSetter); + Message Function(String name, DartType _type, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "OverrideTypeMismatchSetter", + problemMessageTemplate: + r"""The field '#name' has type '#type', which does not match the corresponding type, '#type2', in the overridden setter, '#name2'.""", + withArguments: _withArgumentsOverrideTypeMismatchSetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(String name, DartType _type, DartType _type2, String name2, bool isNonNullableByDefault)> codeOverrideTypeMismatchSetter = const Code< - Message Function( - String name, - DartType _type, - DartType _type2, - String name2, - bool isNonNullableByDefault)>("OverrideTypeMismatchSetter", - analyzerCodes: ["INVALID_METHOD_OVERRIDE"]); + Message Function(String name, DartType _type, DartType _type2, + String name2, bool isNonNullableByDefault)>( + "OverrideTypeMismatchSetter", + analyzerCodes: ["INVALID_METHOD_OVERRIDE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsOverrideTypeMismatchSetter(String name, DartType _type, @@ -5021,16 +5633,18 @@ Message _withArgumentsOverrideTypeMismatchSetter(String name, DartType _type, name2 = demangleMixinApplicationName(name2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeOverrideTypeMismatchSetter, - problemMessage: - """The field '${name}' has type '${type}', which does not match the corresponding type, '${type2}', in the overridden setter, '${name2}'.""" + - labeler.originMessages, - arguments: { - 'name': name, - 'type': _type, - 'type2': _type2, - 'name2': name2 - }); + return new Message( + codeOverrideTypeMismatchSetter, + problemMessage: + """The field '${name}' has type '${type}', which does not match the corresponding type, '${type2}', in the overridden setter, '${name2}'.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + 'type2': _type2, + 'name2': name2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5038,12 +5652,13 @@ const Template< Message Function(DartType _type, String name, String name2, DartType _type2, String name3, bool isNonNullableByDefault)> templateOverrideTypeVariablesBoundMismatch = const Template< - Message Function(DartType _type, String name, String name2, - DartType _type2, String name3, bool isNonNullableByDefault)>( - "OverrideTypeVariablesBoundMismatch", - problemMessageTemplate: - r"""Declared bound '#type' of type variable '#name' of '#name2' doesn't match the bound '#type2' on overridden method '#name3'.""", - withArguments: _withArgumentsOverrideTypeVariablesBoundMismatch); + Message Function(DartType _type, String name, String name2, + DartType _type2, String name3, bool isNonNullableByDefault)>( + "OverrideTypeVariablesBoundMismatch", + problemMessageTemplate: + r"""Declared bound '#type' of type variable '#name' of '#name2' doesn't match the bound '#type2' on overridden method '#name3'.""", + withArguments: _withArgumentsOverrideTypeVariablesBoundMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -5074,17 +5689,19 @@ Message _withArgumentsOverrideTypeVariablesBoundMismatch( name3 = demangleMixinApplicationName(name3); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeOverrideTypeVariablesBoundMismatch, - problemMessage: - """Declared bound '${type}' of type variable '${name}' of '${name2}' doesn't match the bound '${type2}' on overridden method '${name3}'.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'name': name, - 'name2': name2, - 'type2': _type2, - 'name3': name3 - }); + return new Message( + codeOverrideTypeVariablesBoundMismatch, + problemMessage: + """Declared bound '${type}' of type variable '${name}' of '${name2}' doesn't match the bound '${type2}' on overridden method '${name3}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'name': name, + 'name2': name2, + 'type2': _type2, + 'name3': name3, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5092,26 +5709,26 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templatePatternTypeMismatchInIrrefutableContext = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "PatternTypeMismatchInIrrefutableContext", - problemMessageTemplate: - r"""The matched value of type '#type' isn't assignable to the required type '#type2'.""", - correctionMessageTemplate: - r"""Try changing the required type of the pattern, or the matched value type.""", - withArguments: _withArgumentsPatternTypeMismatchInIrrefutableContext); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "PatternTypeMismatchInIrrefutableContext", + problemMessageTemplate: + r"""The matched value of type '#type' isn't assignable to the required type '#type2'.""", + correctionMessageTemplate: + r"""Try changing the required type of the pattern, or the matched value type.""", + withArguments: _withArgumentsPatternTypeMismatchInIrrefutableContext, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codePatternTypeMismatchInIrrefutableContext = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "PatternTypeMismatchInIrrefutableContext", - analyzerCodes: [ - "PATTERN_TYPE_MISMATCH_IN_IRREFUTABLE_CONTEXT" - ]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "PatternTypeMismatchInIrrefutableContext", + analyzerCodes: ["PATTERN_TYPE_MISMATCH_IN_IRREFUTABLE_CONTEXT"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsPatternTypeMismatchInIrrefutableContext( @@ -5121,12 +5738,18 @@ Message _withArgumentsPatternTypeMismatchInIrrefutableContext( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codePatternTypeMismatchInIrrefutableContext, - problemMessage: - """The matched value of type '${type}' isn't assignable to the required type '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Try changing the required type of the pattern, or the matched value type.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codePatternTypeMismatchInIrrefutableContext, + problemMessage: + """The matched value of type '${type}' isn't assignable to the required type '${type2}'.""" + + labeler.originMessages, + correctionMessage: + """Try changing the required type of the pattern, or the matched value type.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5134,25 +5757,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateRedirectingFactoryIncompatibleTypeArgument = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "RedirectingFactoryIncompatibleTypeArgument", - problemMessageTemplate: - r"""The type '#type' doesn't extend '#type2'.""", - correctionMessageTemplate: - r"""Try using a different type as argument.""", - withArguments: - _withArgumentsRedirectingFactoryIncompatibleTypeArgument); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "RedirectingFactoryIncompatibleTypeArgument", + problemMessageTemplate: r"""The type '#type' doesn't extend '#type2'.""", + correctionMessageTemplate: r"""Try using a different type as argument.""", + withArguments: _withArgumentsRedirectingFactoryIncompatibleTypeArgument, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeRedirectingFactoryIncompatibleTypeArgument = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "RedirectingFactoryIncompatibleTypeArgument", - analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "RedirectingFactoryIncompatibleTypeArgument", + analyzerCodes: ["TYPE_ARGUMENT_NOT_MATCHING_BOUNDS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsRedirectingFactoryIncompatibleTypeArgument( @@ -5162,11 +5784,16 @@ Message _withArgumentsRedirectingFactoryIncompatibleTypeArgument( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeRedirectingFactoryIncompatibleTypeArgument, - problemMessage: """The type '${type}' doesn't extend '${type2}'.""" + - labeler.originMessages, - correctionMessage: """Try using a different type as argument.""", - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeRedirectingFactoryIncompatibleTypeArgument, + problemMessage: """The type '${type}' doesn't extend '${type2}'.""" + + labeler.originMessages, + correctionMessage: """Try using a different type as argument.""", + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5174,22 +5801,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateSpreadElementTypeMismatch = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadElementTypeMismatch", - problemMessageTemplate: - r"""Can't assign spread elements of type '#type' to collection elements of type '#type2'.""", - withArguments: _withArgumentsSpreadElementTypeMismatch); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadElementTypeMismatch", + problemMessageTemplate: + r"""Can't assign spread elements of type '#type' to collection elements of type '#type2'.""", + withArguments: _withArgumentsSpreadElementTypeMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeSpreadElementTypeMismatch = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadElementTypeMismatch", - analyzerCodes: ["LIST_ELEMENT_TYPE_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadElementTypeMismatch", + analyzerCodes: ["LIST_ELEMENT_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSpreadElementTypeMismatch( @@ -5199,11 +5828,16 @@ Message _withArgumentsSpreadElementTypeMismatch( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeSpreadElementTypeMismatch, - problemMessage: - """Can't assign spread elements of type '${type}' to collection elements of type '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeSpreadElementTypeMismatch, + problemMessage: + """Can't assign spread elements of type '${type}' to collection elements of type '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5211,22 +5845,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateSpreadElementTypeMismatchNullability = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadElementTypeMismatchNullability", - problemMessageTemplate: - r"""Can't assign spread elements of type '#type' to collection elements of type '#type2' because '#type' is nullable and '#type2' isn't.""", - withArguments: _withArgumentsSpreadElementTypeMismatchNullability); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadElementTypeMismatchNullability", + problemMessageTemplate: + r"""Can't assign spread elements of type '#type' to collection elements of type '#type2' because '#type' is nullable and '#type2' isn't.""", + withArguments: _withArgumentsSpreadElementTypeMismatchNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeSpreadElementTypeMismatchNullability = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadElementTypeMismatchNullability", - analyzerCodes: ["LIST_ELEMENT_TYPE_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadElementTypeMismatchNullability", + analyzerCodes: ["LIST_ELEMENT_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSpreadElementTypeMismatchNullability( @@ -5236,11 +5872,16 @@ Message _withArgumentsSpreadElementTypeMismatchNullability( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeSpreadElementTypeMismatchNullability, - problemMessage: - """Can't assign spread elements of type '${type}' to collection elements of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeSpreadElementTypeMismatchNullability, + problemMessage: + """Can't assign spread elements of type '${type}' to collection elements of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5248,22 +5889,24 @@ const Template< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> templateSpreadElementTypeMismatchPartNullability = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "SpreadElementTypeMismatchPartNullability", - problemMessageTemplate: - r"""Can't assign spread elements of type '#type' to collection elements of type '#type2' because '#type3' is nullable and '#type4' isn't.""", - withArguments: _withArgumentsSpreadElementTypeMismatchPartNullability); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "SpreadElementTypeMismatchPartNullability", + problemMessageTemplate: + r"""Can't assign spread elements of type '#type' to collection elements of type '#type2' because '#type3' is nullable and '#type4' isn't.""", + withArguments: _withArgumentsSpreadElementTypeMismatchPartNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> codeSpreadElementTypeMismatchPartNullability = const Code< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "SpreadElementTypeMismatchPartNullability", - analyzerCodes: ["LIST_ELEMENT_TYPE_NOT_ASSIGNABLE"]); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "SpreadElementTypeMismatchPartNullability", + analyzerCodes: ["LIST_ELEMENT_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSpreadElementTypeMismatchPartNullability( @@ -5281,16 +5924,18 @@ Message _withArgumentsSpreadElementTypeMismatchPartNullability( String type2 = type2Parts.join(); String type3 = type3Parts.join(); String type4 = type4Parts.join(); - return new Message(codeSpreadElementTypeMismatchPartNullability, - problemMessage: - """Can't assign spread elements of type '${type}' to collection elements of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'type2': _type2, - 'type3': _type3, - 'type4': _type4 - }); + return new Message( + codeSpreadElementTypeMismatchPartNullability, + problemMessage: + """Can't assign spread elements of type '${type}' to collection elements of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + 'type4': _type4, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5298,22 +5943,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateSpreadMapEntryElementKeyTypeMismatch = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadMapEntryElementKeyTypeMismatch", - problemMessageTemplate: - r"""Can't assign spread entry keys of type '#type' to map entry keys of type '#type2'.""", - withArguments: _withArgumentsSpreadMapEntryElementKeyTypeMismatch); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadMapEntryElementKeyTypeMismatch", + problemMessageTemplate: + r"""Can't assign spread entry keys of type '#type' to map entry keys of type '#type2'.""", + withArguments: _withArgumentsSpreadMapEntryElementKeyTypeMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeSpreadMapEntryElementKeyTypeMismatch = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadMapEntryElementKeyTypeMismatch", - analyzerCodes: ["MAP_KEY_TYPE_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadMapEntryElementKeyTypeMismatch", + analyzerCodes: ["MAP_KEY_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSpreadMapEntryElementKeyTypeMismatch( @@ -5323,11 +5970,16 @@ Message _withArgumentsSpreadMapEntryElementKeyTypeMismatch( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeSpreadMapEntryElementKeyTypeMismatch, - problemMessage: - """Can't assign spread entry keys of type '${type}' to map entry keys of type '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeSpreadMapEntryElementKeyTypeMismatch, + problemMessage: + """Can't assign spread entry keys of type '${type}' to map entry keys of type '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5335,23 +5987,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateSpreadMapEntryElementKeyTypeMismatchNullability = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadMapEntryElementKeyTypeMismatchNullability", - problemMessageTemplate: - r"""Can't assign spread entry keys of type '#type' to map entry keys of type '#type2' because '#type' is nullable and '#type2' isn't.""", - withArguments: - _withArgumentsSpreadMapEntryElementKeyTypeMismatchNullability); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadMapEntryElementKeyTypeMismatchNullability", + problemMessageTemplate: + r"""Can't assign spread entry keys of type '#type' to map entry keys of type '#type2' because '#type' is nullable and '#type2' isn't.""", + withArguments: _withArgumentsSpreadMapEntryElementKeyTypeMismatchNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeSpreadMapEntryElementKeyTypeMismatchNullability = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadMapEntryElementKeyTypeMismatchNullability", - analyzerCodes: ["MAP_KEY_TYPE_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadMapEntryElementKeyTypeMismatchNullability", + analyzerCodes: ["MAP_KEY_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSpreadMapEntryElementKeyTypeMismatchNullability( @@ -5361,11 +6014,16 @@ Message _withArgumentsSpreadMapEntryElementKeyTypeMismatchNullability( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeSpreadMapEntryElementKeyTypeMismatchNullability, - problemMessage: - """Can't assign spread entry keys of type '${type}' to map entry keys of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeSpreadMapEntryElementKeyTypeMismatchNullability, + problemMessage: + """Can't assign spread entry keys of type '${type}' to map entry keys of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5374,23 +6032,25 @@ const Template< DartType _type4, bool isNonNullableByDefault)> templateSpreadMapEntryElementKeyTypeMismatchPartNullability = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "SpreadMapEntryElementKeyTypeMismatchPartNullability", - problemMessageTemplate: - r"""Can't assign spread entry keys of type '#type' to map entry keys of type '#type2' because '#type3' is nullable and '#type4' isn't.""", - withArguments: - _withArgumentsSpreadMapEntryElementKeyTypeMismatchPartNullability); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "SpreadMapEntryElementKeyTypeMismatchPartNullability", + problemMessageTemplate: + r"""Can't assign spread entry keys of type '#type' to map entry keys of type '#type2' because '#type3' is nullable and '#type4' isn't.""", + withArguments: + _withArgumentsSpreadMapEntryElementKeyTypeMismatchPartNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> codeSpreadMapEntryElementKeyTypeMismatchPartNullability = const Code< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "SpreadMapEntryElementKeyTypeMismatchPartNullability", - analyzerCodes: ["MAP_KEY_TYPE_NOT_ASSIGNABLE"]); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "SpreadMapEntryElementKeyTypeMismatchPartNullability", + analyzerCodes: ["MAP_KEY_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSpreadMapEntryElementKeyTypeMismatchPartNullability( @@ -5408,40 +6068,43 @@ Message _withArgumentsSpreadMapEntryElementKeyTypeMismatchPartNullability( String type2 = type2Parts.join(); String type3 = type3Parts.join(); String type4 = type4Parts.join(); - return new Message(codeSpreadMapEntryElementKeyTypeMismatchPartNullability, - problemMessage: - """Can't assign spread entry keys of type '${type}' to map entry keys of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'type2': _type2, - 'type3': _type3, - 'type4': _type4 - }); + return new Message( + codeSpreadMapEntryElementKeyTypeMismatchPartNullability, + problemMessage: + """Can't assign spread entry keys of type '${type}' to map entry keys of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + 'type4': _type4, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> - templateSpreadMapEntryElementValueTypeMismatch = - const Template< - Message Function(DartType _type, DartType _type2, - bool isNonNullableByDefault)>( - "SpreadMapEntryElementValueTypeMismatch", - problemMessageTemplate: - r"""Can't assign spread entry values of type '#type' to map entry values of type '#type2'.""", - withArguments: _withArgumentsSpreadMapEntryElementValueTypeMismatch); + templateSpreadMapEntryElementValueTypeMismatch = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadMapEntryElementValueTypeMismatch", + problemMessageTemplate: + r"""Can't assign spread entry values of type '#type' to map entry values of type '#type2'.""", + withArguments: _withArgumentsSpreadMapEntryElementValueTypeMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeSpreadMapEntryElementValueTypeMismatch = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadMapEntryElementValueTypeMismatch", - analyzerCodes: ["MAP_VALUE_TYPE_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadMapEntryElementValueTypeMismatch", + analyzerCodes: ["MAP_VALUE_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSpreadMapEntryElementValueTypeMismatch( @@ -5451,11 +6114,16 @@ Message _withArgumentsSpreadMapEntryElementValueTypeMismatch( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeSpreadMapEntryElementValueTypeMismatch, - problemMessage: - """Can't assign spread entry values of type '${type}' to map entry values of type '${type2}'.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeSpreadMapEntryElementValueTypeMismatch, + problemMessage: + """Can't assign spread entry values of type '${type}' to map entry values of type '${type2}'.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5463,23 +6131,25 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateSpreadMapEntryElementValueTypeMismatchNullability = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadMapEntryElementValueTypeMismatchNullability", - problemMessageTemplate: - r"""Can't assign spread entry values of type '#type' to map entry values of type '#type2' because '#type' is nullable and '#type2' isn't.""", - withArguments: - _withArgumentsSpreadMapEntryElementValueTypeMismatchNullability); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadMapEntryElementValueTypeMismatchNullability", + problemMessageTemplate: + r"""Can't assign spread entry values of type '#type' to map entry values of type '#type2' because '#type' is nullable and '#type2' isn't.""", + withArguments: + _withArgumentsSpreadMapEntryElementValueTypeMismatchNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeSpreadMapEntryElementValueTypeMismatchNullability = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SpreadMapEntryElementValueTypeMismatchNullability", - analyzerCodes: ["MAP_VALUE_TYPE_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SpreadMapEntryElementValueTypeMismatchNullability", + analyzerCodes: ["MAP_VALUE_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSpreadMapEntryElementValueTypeMismatchNullability( @@ -5489,11 +6159,16 @@ Message _withArgumentsSpreadMapEntryElementValueTypeMismatchNullability( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeSpreadMapEntryElementValueTypeMismatchNullability, - problemMessage: - """Can't assign spread entry values of type '${type}' to map entry values of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeSpreadMapEntryElementValueTypeMismatchNullability, + problemMessage: + """Can't assign spread entry values of type '${type}' to map entry values of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5502,23 +6177,25 @@ const Template< DartType _type4, bool isNonNullableByDefault)> templateSpreadMapEntryElementValueTypeMismatchPartNullability = const Template< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "SpreadMapEntryElementValueTypeMismatchPartNullability", - problemMessageTemplate: - r"""Can't assign spread entry values of type '#type' to map entry values of type '#type2' because '#type3' is nullable and '#type4' isn't.""", - withArguments: - _withArgumentsSpreadMapEntryElementValueTypeMismatchPartNullability); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "SpreadMapEntryElementValueTypeMismatchPartNullability", + problemMessageTemplate: + r"""Can't assign spread entry values of type '#type' to map entry values of type '#type2' because '#type3' is nullable and '#type4' isn't.""", + withArguments: + _withArgumentsSpreadMapEntryElementValueTypeMismatchPartNullability, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function(DartType _type, DartType _type2, DartType _type3, DartType _type4, bool isNonNullableByDefault)> codeSpreadMapEntryElementValueTypeMismatchPartNullability = const Code< - Message Function(DartType _type, DartType _type2, DartType _type3, - DartType _type4, bool isNonNullableByDefault)>( - "SpreadMapEntryElementValueTypeMismatchPartNullability", - analyzerCodes: ["MAP_VALUE_TYPE_NOT_ASSIGNABLE"]); + Message Function(DartType _type, DartType _type2, DartType _type3, + DartType _type4, bool isNonNullableByDefault)>( + "SpreadMapEntryElementValueTypeMismatchPartNullability", + analyzerCodes: ["MAP_VALUE_TYPE_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSpreadMapEntryElementValueTypeMismatchPartNullability( @@ -5536,26 +6213,29 @@ Message _withArgumentsSpreadMapEntryElementValueTypeMismatchPartNullability( String type2 = type2Parts.join(); String type3 = type3Parts.join(); String type4 = type4Parts.join(); - return new Message(codeSpreadMapEntryElementValueTypeMismatchPartNullability, - problemMessage: - """Can't assign spread entry values of type '${type}' to map entry values of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + - labeler.originMessages, - arguments: { - 'type': _type, - 'type2': _type2, - 'type3': _type3, - 'type4': _type4 - }); + return new Message( + codeSpreadMapEntryElementValueTypeMismatchPartNullability, + problemMessage: + """Can't assign spread entry values of type '${type}' to map entry values of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + 'type3': _type3, + 'type4': _type4, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateSpreadMapEntryTypeMismatch = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "SpreadMapEntryTypeMismatch", - problemMessageTemplate: - r"""Unexpected type '#type' of a map spread entry. Expected 'dynamic' or a Map.""", - withArguments: _withArgumentsSpreadMapEntryTypeMismatch); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "SpreadMapEntryTypeMismatch", + problemMessageTemplate: + r"""Unexpected type '#type' of a map spread entry. Expected 'dynamic' or a Map.""", + withArguments: _withArgumentsSpreadMapEntryTypeMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5570,24 +6250,26 @@ Message _withArgumentsSpreadMapEntryTypeMismatch( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeSpreadMapEntryTypeMismatch, - problemMessage: - """Unexpected type '${type}' of a map spread entry. Expected 'dynamic' or a Map.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeSpreadMapEntryTypeMismatch, + problemMessage: + """Unexpected type '${type}' of a map spread entry. Expected 'dynamic' or a Map.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. -const Template< - Message Function( - DartType _type, - bool - isNonNullableByDefault)> templateSpreadTypeMismatch = const Template< +const Template + templateSpreadTypeMismatch = const Template< Message Function(DartType _type, bool isNonNullableByDefault)>( - "SpreadTypeMismatch", - problemMessageTemplate: - r"""Unexpected type '#type' of a spread. Expected 'dynamic' or an Iterable.""", - withArguments: _withArgumentsSpreadTypeMismatch); + "SpreadTypeMismatch", + problemMessageTemplate: + r"""Unexpected type '#type' of a spread. Expected 'dynamic' or an Iterable.""", + withArguments: _withArgumentsSpreadTypeMismatch, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5602,36 +6284,40 @@ Message _withArgumentsSpreadTypeMismatch( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeSpreadTypeMismatch, - problemMessage: - """Unexpected type '${type}' of a spread. Expected 'dynamic' or an Iterable.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeSpreadTypeMismatch, + problemMessage: + """Unexpected type '${type}' of a spread. Expected 'dynamic' or an Iterable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - DartType _type, - DartType _type2, - bool - isNonNullableByDefault)> templateSuperBoundedHint = const Template< + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)> + templateSuperBoundedHint = const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SuperBoundedHint", - problemMessageTemplate: - r"""If you want '#type' to be a super-bounded type, note that the inverted type '#type2' must then satisfy its bounds, which it does not.""", - withArguments: _withArgumentsSuperBoundedHint); + "SuperBoundedHint", + problemMessageTemplate: + r"""If you want '#type' to be a super-bounded type, note that the inverted type '#type2' must then satisfy its bounds, which it does not.""", + withArguments: _withArgumentsSuperBoundedHint, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeSuperBoundedHint = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SuperBoundedHint", - severity: Severity.context); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SuperBoundedHint", + severity: Severity.context, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSuperBoundedHint( @@ -5641,11 +6327,16 @@ Message _withArgumentsSuperBoundedHint( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeSuperBoundedHint, - problemMessage: - """If you want '${type}' to be a super-bounded type, note that the inverted type '${type2}' must then satisfy its bounds, which it does not.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeSuperBoundedHint, + problemMessage: + """If you want '${type}' to be a super-bounded type, note that the inverted type '${type2}' must then satisfy its bounds, which it does not.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5653,12 +6344,13 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateSuperExtensionTypeIsIllegalAliased = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "SuperExtensionTypeIsIllegalAliased", - problemMessageTemplate: - r"""The type '#name' which is an alias of '#type' can't be implemented by an extension type.""", - withArguments: _withArgumentsSuperExtensionTypeIsIllegalAliased); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "SuperExtensionTypeIsIllegalAliased", + problemMessageTemplate: + r"""The type '#name' which is an alias of '#type' can't be implemented by an extension type.""", + withArguments: _withArgumentsSuperExtensionTypeIsIllegalAliased, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -5678,11 +6370,16 @@ Message _withArgumentsSuperExtensionTypeIsIllegalAliased( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeSuperExtensionTypeIsIllegalAliased, - problemMessage: - """The type '${name}' which is an alias of '${type}' can't be implemented by an extension type.""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type}); + return new Message( + codeSuperExtensionTypeIsIllegalAliased, + problemMessage: + """The type '${name}' which is an alias of '${type}' can't be implemented by an extension type.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5690,12 +6387,13 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateSuperExtensionTypeIsNullableAliased = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "SuperExtensionTypeIsNullableAliased", - problemMessageTemplate: - r"""The type '#name' which is an alias of '#type' can't be implemented by an extension type because it is nullable.""", - withArguments: _withArgumentsSuperExtensionTypeIsNullableAliased); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "SuperExtensionTypeIsNullableAliased", + problemMessageTemplate: + r"""The type '#name' which is an alias of '#type' can't be implemented by an extension type because it is nullable.""", + withArguments: _withArgumentsSuperExtensionTypeIsNullableAliased, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -5715,11 +6413,16 @@ Message _withArgumentsSuperExtensionTypeIsNullableAliased( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeSuperExtensionTypeIsNullableAliased, - problemMessage: - """The type '${name}' which is an alias of '${type}' can't be implemented by an extension type because it is nullable.""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type}); + return new Message( + codeSuperExtensionTypeIsNullableAliased, + problemMessage: + """The type '${name}' which is an alias of '${type}' can't be implemented by an extension type because it is nullable.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5727,22 +6430,24 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateSupertypeIsIllegalAliased = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "SupertypeIsIllegalAliased", - problemMessageTemplate: - r"""The type '#name' which is an alias of '#type' can't be used as supertype.""", - withArguments: _withArgumentsSupertypeIsIllegalAliased); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "SupertypeIsIllegalAliased", + problemMessageTemplate: + r"""The type '#name' which is an alias of '#type' can't be used as supertype.""", + withArguments: _withArgumentsSupertypeIsIllegalAliased, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( String name, DartType _type, bool isNonNullableByDefault)> codeSupertypeIsIllegalAliased = const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "SupertypeIsIllegalAliased", - analyzerCodes: ["EXTENDS_NON_CLASS"]); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "SupertypeIsIllegalAliased", + analyzerCodes: ["EXTENDS_NON_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSupertypeIsIllegalAliased( @@ -5752,11 +6457,16 @@ Message _withArgumentsSupertypeIsIllegalAliased( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeSupertypeIsIllegalAliased, - problemMessage: - """The type '${name}' which is an alias of '${type}' can't be used as supertype.""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type}); + return new Message( + codeSupertypeIsIllegalAliased, + problemMessage: + """The type '${name}' which is an alias of '${type}' can't be used as supertype.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5764,22 +6474,24 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateSupertypeIsNullableAliased = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "SupertypeIsNullableAliased", - problemMessageTemplate: - r"""The type '#name' which is an alias of '#type' can't be used as supertype because it is nullable.""", - withArguments: _withArgumentsSupertypeIsNullableAliased); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "SupertypeIsNullableAliased", + problemMessageTemplate: + r"""The type '#name' which is an alias of '#type' can't be used as supertype because it is nullable.""", + withArguments: _withArgumentsSupertypeIsNullableAliased, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( String name, DartType _type, bool isNonNullableByDefault)> codeSupertypeIsNullableAliased = const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "SupertypeIsNullableAliased", - analyzerCodes: ["EXTENDS_NON_CLASS"]); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "SupertypeIsNullableAliased", + analyzerCodes: ["EXTENDS_NON_CLASS"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSupertypeIsNullableAliased( @@ -5789,11 +6501,16 @@ Message _withArgumentsSupertypeIsNullableAliased( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeSupertypeIsNullableAliased, - problemMessage: - """The type '${name}' which is an alias of '${type}' can't be used as supertype because it is nullable.""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type}); + return new Message( + codeSupertypeIsNullableAliased, + problemMessage: + """The type '${name}' which is an alias of '${type}' can't be used as supertype because it is nullable.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5801,22 +6518,24 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateSwitchExpressionNotAssignable = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SwitchExpressionNotAssignable", - problemMessageTemplate: - r"""Type '#type' of the switch expression isn't assignable to the type '#type2' of this case expression.""", - withArguments: _withArgumentsSwitchExpressionNotAssignable); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SwitchExpressionNotAssignable", + problemMessageTemplate: + r"""Type '#type' of the switch expression isn't assignable to the type '#type2' of this case expression.""", + withArguments: _withArgumentsSwitchExpressionNotAssignable, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> codeSwitchExpressionNotAssignable = const Code< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SwitchExpressionNotAssignable", - analyzerCodes: ["SWITCH_EXPRESSION_NOT_ASSIGNABLE"]); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SwitchExpressionNotAssignable", + analyzerCodes: ["SWITCH_EXPRESSION_NOT_ASSIGNABLE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsSwitchExpressionNotAssignable( @@ -5826,11 +6545,16 @@ Message _withArgumentsSwitchExpressionNotAssignable( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeSwitchExpressionNotAssignable, - problemMessage: - """Type '${type}' of the switch expression isn't assignable to the type '${type2}' of this case expression.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeSwitchExpressionNotAssignable, + problemMessage: + """Type '${type}' of the switch expression isn't assignable to the type '${type2}' of this case expression.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5838,12 +6562,13 @@ const Template< Message Function( DartType _type, DartType _type2, bool isNonNullableByDefault)> templateSwitchExpressionNotSubtype = const Template< - Message Function( - DartType _type, DartType _type2, bool isNonNullableByDefault)>( - "SwitchExpressionNotSubtype", - problemMessageTemplate: - r"""Type '#type' of the case expression is not a subtype of type '#type2' of this switch expression.""", - withArguments: _withArgumentsSwitchExpressionNotSubtype); + Message Function( + DartType _type, DartType _type2, bool isNonNullableByDefault)>( + "SwitchExpressionNotSubtype", + problemMessageTemplate: + r"""Type '#type' of the case expression is not a subtype of type '#type2' of this switch expression.""", + withArguments: _withArgumentsSwitchExpressionNotSubtype, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -5863,21 +6588,27 @@ Message _withArgumentsSwitchExpressionNotSubtype( List type2Parts = labeler.labelType(_type2); String type = typeParts.join(); String type2 = type2Parts.join(); - return new Message(codeSwitchExpressionNotSubtype, - problemMessage: - """Type '${type}' of the case expression is not a subtype of type '${type2}' of this switch expression.""" + - labeler.originMessages, - arguments: {'type': _type, 'type2': _type2}); + return new Message( + codeSwitchExpressionNotSubtype, + problemMessage: + """Type '${type}' of the case expression is not a subtype of type '${type2}' of this switch expression.""" + + labeler.originMessages, + arguments: { + 'type': _type, + 'type2': _type2, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template templateThrowingNotAssignableToObjectError = const Template< - Message Function(DartType _type, bool isNonNullableByDefault)>( - "ThrowingNotAssignableToObjectError", - problemMessageTemplate: - r"""Can't throw a value of '#type' since it is neither dynamic nor non-nullable.""", - withArguments: _withArgumentsThrowingNotAssignableToObjectError); + Message Function(DartType _type, bool isNonNullableByDefault)>( + "ThrowingNotAssignableToObjectError", + problemMessageTemplate: + r"""Can't throw a value of '#type' since it is neither dynamic nor non-nullable.""", + withArguments: _withArgumentsThrowingNotAssignableToObjectError, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code @@ -5892,11 +6623,15 @@ Message _withArgumentsThrowingNotAssignableToObjectError( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeThrowingNotAssignableToObjectError, - problemMessage: - """Can't throw a value of '${type}' since it is neither dynamic nor non-nullable.""" + - labeler.originMessages, - arguments: {'type': _type}); + return new Message( + codeThrowingNotAssignableToObjectError, + problemMessage: + """Can't throw a value of '${type}' since it is neither dynamic nor non-nullable.""" + + labeler.originMessages, + arguments: { + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5904,14 +6639,15 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateUndefinedExtensionGetter = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedExtensionGetter", - problemMessageTemplate: - r"""The getter '#name' isn't defined for the extension '#type'.""", - correctionMessageTemplate: - r"""Try correcting the name to the name of an existing getter, or defining a getter or field named '#name'.""", - withArguments: _withArgumentsUndefinedExtensionGetter); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedExtensionGetter", + problemMessageTemplate: + r"""The getter '#name' isn't defined for the extension '#type'.""", + correctionMessageTemplate: + r"""Try correcting the name to the name of an existing getter, or defining a getter or field named '#name'.""", + withArguments: _withArgumentsUndefinedExtensionGetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -5929,12 +6665,18 @@ Message _withArgumentsUndefinedExtensionGetter( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeUndefinedExtensionGetter, - problemMessage: - """The getter '${name}' isn't defined for the extension '${type}'.""" + - labeler.originMessages, - correctionMessage: """Try correcting the name to the name of an existing getter, or defining a getter or field named '${name}'.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeUndefinedExtensionGetter, + problemMessage: + """The getter '${name}' isn't defined for the extension '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try correcting the name to the name of an existing getter, or defining a getter or field named '${name}'.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5942,14 +6684,15 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateUndefinedExtensionMethod = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedExtensionMethod", - problemMessageTemplate: - r"""The method '#name' isn't defined for the extension '#type'.""", - correctionMessageTemplate: - r"""Try correcting the name to the name of an existing method, or defining a method name '#name'.""", - withArguments: _withArgumentsUndefinedExtensionMethod); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedExtensionMethod", + problemMessageTemplate: + r"""The method '#name' isn't defined for the extension '#type'.""", + correctionMessageTemplate: + r"""Try correcting the name to the name of an existing method, or defining a method name '#name'.""", + withArguments: _withArgumentsUndefinedExtensionMethod, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -5967,12 +6710,18 @@ Message _withArgumentsUndefinedExtensionMethod( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeUndefinedExtensionMethod, - problemMessage: - """The method '${name}' isn't defined for the extension '${type}'.""" + - labeler.originMessages, - correctionMessage: """Try correcting the name to the name of an existing method, or defining a method name '${name}'.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeUndefinedExtensionMethod, + problemMessage: + """The method '${name}' isn't defined for the extension '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try correcting the name to the name of an existing method, or defining a method name '${name}'.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -5980,14 +6729,15 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateUndefinedExtensionOperator = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedExtensionOperator", - problemMessageTemplate: - r"""The operator '#name' isn't defined for the extension '#type'.""", - correctionMessageTemplate: - r"""Try correcting the operator to an existing operator, or defining a '#name' operator.""", - withArguments: _withArgumentsUndefinedExtensionOperator); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedExtensionOperator", + problemMessageTemplate: + r"""The operator '#name' isn't defined for the extension '#type'.""", + correctionMessageTemplate: + r"""Try correcting the operator to an existing operator, or defining a '#name' operator.""", + withArguments: _withArgumentsUndefinedExtensionOperator, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -6007,12 +6757,18 @@ Message _withArgumentsUndefinedExtensionOperator( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeUndefinedExtensionOperator, - problemMessage: - """The operator '${name}' isn't defined for the extension '${type}'.""" + - labeler.originMessages, - correctionMessage: """Try correcting the operator to an existing operator, or defining a '${name}' operator.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeUndefinedExtensionOperator, + problemMessage: + """The operator '${name}' isn't defined for the extension '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try correcting the operator to an existing operator, or defining a '${name}' operator.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. @@ -6020,14 +6776,15 @@ const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> templateUndefinedExtensionSetter = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedExtensionSetter", - problemMessageTemplate: - r"""The setter '#name' isn't defined for the extension '#type'.""", - correctionMessageTemplate: - r"""Try correcting the name to the name of an existing setter, or defining a setter or field named '#name'.""", - withArguments: _withArgumentsUndefinedExtensionSetter); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedExtensionSetter", + problemMessageTemplate: + r"""The setter '#name' isn't defined for the extension '#type'.""", + correctionMessageTemplate: + r"""Try correcting the name to the name of an existing setter, or defining a setter or field named '#name'.""", + withArguments: _withArgumentsUndefinedExtensionSetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< @@ -6045,39 +6802,41 @@ Message _withArgumentsUndefinedExtensionSetter( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeUndefinedExtensionSetter, - problemMessage: - """The setter '${name}' isn't defined for the extension '${type}'.""" + - labeler.originMessages, - correctionMessage: """Try correcting the name to the name of an existing setter, or defining a setter or field named '${name}'.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeUndefinedExtensionSetter, + problemMessage: + """The setter '${name}' isn't defined for the extension '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try correcting the name to the name of an existing setter, or defining a setter or field named '${name}'.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - String name, - DartType _type, - bool - isNonNullableByDefault)> templateUndefinedGetter = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedGetter", - problemMessageTemplate: - r"""The getter '#name' isn't defined for the class '#type'.""", - correctionMessageTemplate: - r"""Try correcting the name to the name of an existing getter, or defining a getter or field named '#name'.""", - withArguments: _withArgumentsUndefinedGetter); + Message Function(String name, DartType _type, + bool isNonNullableByDefault)> templateUndefinedGetter = const Template< + Message Function(String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedGetter", + problemMessageTemplate: + r"""The getter '#name' isn't defined for the class '#type'.""", + correctionMessageTemplate: + r"""Try correcting the name to the name of an existing getter, or defining a getter or field named '#name'.""", + withArguments: _withArgumentsUndefinedGetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)> - codeUndefinedGetter = const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedGetter", - analyzerCodes: ["UNDEFINED_GETTER"]); + Message Function(String name, DartType _type, + bool isNonNullableByDefault)> codeUndefinedGetter = const Code< + Message Function(String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedGetter", + analyzerCodes: ["UNDEFINED_GETTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUndefinedGetter( @@ -6087,40 +6846,41 @@ Message _withArgumentsUndefinedGetter( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeUndefinedGetter, - problemMessage: - """The getter '${name}' isn't defined for the class '${type}'.""" + - labeler.originMessages, - correctionMessage: - """Try correcting the name to the name of an existing getter, or defining a getter or field named '${name}'.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeUndefinedGetter, + problemMessage: + """The getter '${name}' isn't defined for the class '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try correcting the name to the name of an existing getter, or defining a getter or field named '${name}'.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - String name, - DartType _type, - bool - isNonNullableByDefault)> templateUndefinedMethod = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedMethod", - problemMessageTemplate: - r"""The method '#name' isn't defined for the class '#type'.""", - correctionMessageTemplate: - r"""Try correcting the name to the name of an existing method, or defining a method named '#name'.""", - withArguments: _withArgumentsUndefinedMethod); + Message Function(String name, DartType _type, + bool isNonNullableByDefault)> templateUndefinedMethod = const Template< + Message Function(String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedMethod", + problemMessageTemplate: + r"""The method '#name' isn't defined for the class '#type'.""", + correctionMessageTemplate: + r"""Try correcting the name to the name of an existing method, or defining a method named '#name'.""", + withArguments: _withArgumentsUndefinedMethod, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)> - codeUndefinedMethod = const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedMethod", - analyzerCodes: ["UNDEFINED_METHOD"]); + Message Function(String name, DartType _type, + bool isNonNullableByDefault)> codeUndefinedMethod = const Code< + Message Function(String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedMethod", + analyzerCodes: ["UNDEFINED_METHOD"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUndefinedMethod( @@ -6130,40 +6890,43 @@ Message _withArgumentsUndefinedMethod( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeUndefinedMethod, - problemMessage: - """The method '${name}' isn't defined for the class '${type}'.""" + - labeler.originMessages, - correctionMessage: - """Try correcting the name to the name of an existing method, or defining a method named '${name}'.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeUndefinedMethod, + problemMessage: + """The method '${name}' isn't defined for the class '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try correcting the name to the name of an existing method, or defining a method named '${name}'.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - String name, - DartType _type, - bool - isNonNullableByDefault)> templateUndefinedOperator = const Template< + Message Function( + String name, DartType _type, bool isNonNullableByDefault)> + templateUndefinedOperator = const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedOperator", - problemMessageTemplate: - r"""The operator '#name' isn't defined for the class '#type'.""", - correctionMessageTemplate: - r"""Try correcting the operator to an existing operator, or defining a '#name' operator.""", - withArguments: _withArgumentsUndefinedOperator); + "UndefinedOperator", + problemMessageTemplate: + r"""The operator '#name' isn't defined for the class '#type'.""", + correctionMessageTemplate: + r"""Try correcting the operator to an existing operator, or defining a '#name' operator.""", + withArguments: _withArgumentsUndefinedOperator, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)> - codeUndefinedOperator = const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedOperator", - analyzerCodes: ["UNDEFINED_METHOD"]); + Message Function(String name, DartType _type, + bool isNonNullableByDefault)> codeUndefinedOperator = const Code< + Message Function(String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedOperator", + analyzerCodes: ["UNDEFINED_METHOD"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUndefinedOperator( @@ -6173,40 +6936,41 @@ Message _withArgumentsUndefinedOperator( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeUndefinedOperator, - problemMessage: - """The operator '${name}' isn't defined for the class '${type}'.""" + - labeler.originMessages, - correctionMessage: - """Try correcting the operator to an existing operator, or defining a '${name}' operator.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeUndefinedOperator, + problemMessage: + """The operator '${name}' isn't defined for the class '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try correcting the operator to an existing operator, or defining a '${name}' operator.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< - Message Function( - String name, - DartType _type, - bool - isNonNullableByDefault)> templateUndefinedSetter = const Template< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedSetter", - problemMessageTemplate: - r"""The setter '#name' isn't defined for the class '#type'.""", - correctionMessageTemplate: - r"""Try correcting the name to the name of an existing setter, or defining a setter or field named '#name'.""", - withArguments: _withArgumentsUndefinedSetter); + Message Function(String name, DartType _type, + bool isNonNullableByDefault)> templateUndefinedSetter = const Template< + Message Function(String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedSetter", + problemMessageTemplate: + r"""The setter '#name' isn't defined for the class '#type'.""", + correctionMessageTemplate: + r"""Try correcting the name to the name of an existing setter, or defining a setter or field named '#name'.""", + withArguments: _withArgumentsUndefinedSetter, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)> - codeUndefinedSetter = const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "UndefinedSetter", - analyzerCodes: ["UNDEFINED_SETTER"]); + Message Function(String name, DartType _type, + bool isNonNullableByDefault)> codeUndefinedSetter = const Code< + Message Function(String name, DartType _type, bool isNonNullableByDefault)>( + "UndefinedSetter", + analyzerCodes: ["UNDEFINED_SETTER"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsUndefinedSetter( @@ -6216,40 +6980,43 @@ Message _withArgumentsUndefinedSetter( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeUndefinedSetter, - problemMessage: - """The setter '${name}' isn't defined for the class '${type}'.""" + - labeler.originMessages, - correctionMessage: - """Try correcting the name to the name of an existing setter, or defining a setter or field named '${name}'.""", - arguments: {'name': name, 'type': _type}); + return new Message( + codeUndefinedSetter, + problemMessage: + """The setter '${name}' isn't defined for the class '${type}'.""" + + labeler.originMessages, + correctionMessage: + """Try correcting the name to the name of an existing setter, or defining a setter or field named '${name}'.""", + arguments: { + 'name': name, + 'type': _type, + }, + ); } // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template< Message Function( String name, DartType _type, bool isNonNullableByDefault)> - templateWrongTypeParameterVarianceInSuperinterface = - const Template< - Message Function(String name, DartType _type, - bool isNonNullableByDefault)>( - "WrongTypeParameterVarianceInSuperinterface", - problemMessageTemplate: - r"""'#name' can't be used contravariantly or invariantly in '#type'.""", - withArguments: - _withArgumentsWrongTypeParameterVarianceInSuperinterface); + templateWrongTypeParameterVarianceInSuperinterface = const Template< + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "WrongTypeParameterVarianceInSuperinterface", + problemMessageTemplate: + r"""'#name' can't be used contravariantly or invariantly in '#type'.""", + withArguments: _withArgumentsWrongTypeParameterVarianceInSuperinterface, +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code< Message Function( String name, DartType _type, bool isNonNullableByDefault)> codeWrongTypeParameterVarianceInSuperinterface = const Code< - Message Function( - String name, DartType _type, bool isNonNullableByDefault)>( - "WrongTypeParameterVarianceInSuperinterface", - analyzerCodes: [ - "WRONG_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE" - ]); + Message Function( + String name, DartType _type, bool isNonNullableByDefault)>( + "WrongTypeParameterVarianceInSuperinterface", + analyzerCodes: ["WRONG_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE"], +); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. Message _withArgumentsWrongTypeParameterVarianceInSuperinterface( @@ -6259,9 +7026,14 @@ Message _withArgumentsWrongTypeParameterVarianceInSuperinterface( TypeLabeler labeler = new TypeLabeler(isNonNullableByDefault); List typeParts = labeler.labelType(_type); String type = typeParts.join(); - return new Message(codeWrongTypeParameterVarianceInSuperinterface, - problemMessage: - """'${name}' can't be used contravariantly or invariantly in '${type}'.""" + - labeler.originMessages, - arguments: {'name': name, 'type': _type}); + return new Message( + codeWrongTypeParameterVarianceInSuperinterface, + problemMessage: + """'${name}' can't be used contravariantly or invariantly in '${type}'.""" + + labeler.originMessages, + arguments: { + 'name': name, + 'type': _type, + }, + ); } diff --git a/pkg/front_end/lib/src/kernel_generator_impl.dart b/pkg/front_end/lib/src/kernel_generator_impl.dart index 9038ab878c9..6fd4ce94181 100644 --- a/pkg/front_end/lib/src/kernel_generator_impl.dart +++ b/pkg/front_end/lib/src/kernel_generator_impl.dart @@ -217,6 +217,8 @@ Future _buildInternal( showOffsets: options.debugDumpShowOffsets); } options.ticker.logMs("Generated component"); + } else { + component = summaryComponent; } // TODO(johnniwinther): Should we reuse the macro executor on subsequent // compilations where possible? diff --git a/pkg/front_end/presubmit_helper.dart b/pkg/front_end/presubmit_helper.dart new file mode 100644 index 00000000000..0a75e6efb0e --- /dev/null +++ b/pkg/front_end/presubmit_helper.dart @@ -0,0 +1,674 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// Warning: This file has to start up fast so we can't import lots of stuff. +import 'dart:async'; +import 'dart:convert'; +import 'dart:io'; +import 'dart:isolate'; + +import 'test/utils/io_utils.dart'; + +Future main(List args) async { + Stopwatch stopwatch = new Stopwatch()..start(); + // Expect something like /full/path/to/sdk/pkg/some_dir/whatever/else + if (args.length != 1) throw "Need exactly one argument."; + + final List changedFiles = _getChangedFiles(); + String callerPath = args[0].replaceAll("\\", "/"); + if (!_shouldRun(changedFiles, callerPath)) { + return; + } + + List workItems = []; + + // This run is now the only run that will actually run any smoke tests. + // First collect all relevant smoke tests. + // Note that this is *not* perfect, e.g. it might think there's no reason for + // a test because the tested hasn't changed even though the actual test has. + // E.g. if you only update the spelling dictionary no spell test will be run + // because the files being spell-tested hasn't changed. + workItems.addIfNotNull(_createExplicitCreationTestWork(changedFiles)); + workItems.addIfNotNull(_createMessagesTestWork(changedFiles)); + workItems.addIfNotNull(_createSpellingTestNotSourceWork(changedFiles)); + workItems.addIfNotNull(_createSpellingTestSourceWork(changedFiles)); + workItems.addIfNotNull(_createLintWork(changedFiles)); + workItems.addIfNotNull(_createDepsTestWork(changedFiles)); + bool shouldRunGenerateFilesTest = _shouldRunGenerateFilesTest(changedFiles); + + // Then run them if we have any. + if (workItems.isEmpty && !shouldRunGenerateFilesTest) { + print("Nothing to do."); + return; + } + + List futures = []; + if (shouldRunGenerateFilesTest) { + print("Running generated_files_up_to_date_git_test in different process."); + futures.add(_run( + "pkg/front_end/test/generated_files_up_to_date_git_test.dart", + const [])); + } + + if (workItems.isNotEmpty) { + print("Will now run ${workItems.length} tests."); + futures.add(_executePendingWorkItems(workItems)); + } + + await Future.wait(futures); + print("All done in ${stopwatch.elapsed}"); +} + +/// Map from a dir name in "pkg" to the inner-dir we want to include in the +/// explicit creation test. +const Map _explicitCreationDirs = { + "frontend_server": "", + "front_end": "lib/", + "_fe_analyzer_shared": "lib/", +}; + +/// This is currently a representative list of the dependencies, but do update +/// if it turns out to be needed. +const Set _generatedFilesUpToDateFiles = { + "pkg/_fe_analyzer_shared/lib/src/experiments/flags.dart", + "pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart", + "pkg/_fe_analyzer_shared/lib/src/parser/listener.dart", + "pkg/_fe_analyzer_shared/lib/src/parser/parser_impl.dart", + "pkg/front_end/lib/src/api_prototype/experimental_flags_generated.dart", + "pkg/front_end/lib/src/fasta/fasta_codes_cfe_generated.dart", + "pkg/front_end/lib/src/fasta/util/parser_ast_helper.dart", + "pkg/front_end/messages.yaml", + "pkg/front_end/test/generated_files_up_to_date_git_test.dart", + "pkg/front_end/test/parser_test_listener_creator.dart", + "pkg/front_end/test/parser_test_listener.dart", + "pkg/front_end/test/parser_test_parser_creator.dart", + "pkg/front_end/test/parser_test_parser.dart", + "pkg/front_end/tool/_fasta/generate_messages.dart", + "pkg/front_end/tool/_fasta/parser_ast_helper_creator.dart", + "pkg/front_end/tool/generate_ast_coverage.dart", + "pkg/front_end/tool/generate_ast_equivalence.dart", + "pkg/front_end/tool/visitor_generator.dart", + "pkg/kernel/lib/ast.dart", + "pkg/kernel/lib/default_language_version.dart", + "pkg/kernel/lib/src/ast/patterns.dart", + "pkg/kernel/lib/src/coverage.dart", + "pkg/kernel/lib/src/equivalence.dart", + "sdk/lib/libraries.json", + "tools/experimental_features.yaml", +}; + +/// Map from a dir name in "pkg" to the inner-dir we want to include in the +/// lint test. +const Map _lintDirs = { + "frontend_server": "", + "front_end": "lib/", + "kernel": "lib/", + "_fe_analyzer_shared": "lib/", +}; + +/// Map from a dir name in "pkg" to the inner-dirs we want to include in the +/// spelling (source) test. +const Map> _spellDirs = { + "frontend_server": ["lib/", "bin/"], + "kernel": ["lib/", "bin/"], + "front_end": ["lib/"], + "_fe_analyzer_shared": ["lib/"], +}; + +/// Set of dirs in "pkg" we care about. +const Set _usDirs = { + "kernel", + "frontend_server", + "front_end", + "_fe_analyzer_shared", +}; + +final Uri _repoDir = computeRepoDirUri(); + +String get _dartVm => Platform.executable; + +DepsTestWork? _createDepsTestWork(List changedFiles) { + bool foundFiles = false; + for (String path in changedFiles) { + if (!path.endsWith(".dart")) continue; + if (path.startsWith("pkg/front_end/lib/")) { + foundFiles = true; + break; + } + } + + if (!foundFiles) return null; + + return new DepsTestWork(); +} + +ExplicitCreationWork? _createExplicitCreationTestWork( + List changedFiles) { + Set includedDirs = {}; + for (MapEntry entry in _explicitCreationDirs.entries) { + includedDirs.add(_repoDir.resolve("pkg/${entry.key}/${entry.value}")); + } + + Set files = {}; + for (String path in changedFiles) { + if (!path.endsWith(".dart")) continue; + bool found = false; + for (MapEntry usDirEntry in _explicitCreationDirs.entries) { + if (path.startsWith("pkg/${usDirEntry.key}/${usDirEntry.value}")) { + found = true; + break; + } + } + if (!found) continue; + files.add(_repoDir.resolve(path)); + } + + if (files.isEmpty) return null; + + return new ExplicitCreationWork( + includedFiles: files, + includedDirectoryUris: includedDirs, + repoDir: _repoDir); +} + +LintWork? _createLintWork(List changedFiles) { + List filters = []; + pathLoop: + for (String path in changedFiles) { + if (!path.endsWith(".dart")) continue; + for (MapEntry entry in _lintDirs.entries) { + if (path.startsWith("pkg/${entry.key}/${entry.value}")) { + String filter = path.substring("pkg/".length, path.length - 5); + filters.add("lint/$filter/..."); + continue pathLoop; + } + } + } + + if (filters.isEmpty) return null; + + return new LintWork(filters: filters, repoDir: _repoDir); +} + +MessagesWork? _createMessagesTestWork(List changedFiles) { + // TODO(jensj): Could we detect what ones are changed/added and only test + // those? + for (String file in changedFiles) { + if (file == "pkg/front_end/messages.yaml") { + return new MessagesWork(repoDir: _repoDir); + } + } + + // messages.yaml not changed. + return null; +} + +SpellNotSourceWork? _createSpellingTestNotSourceWork( + List changedFiles) { + // TODO(jensj): Not here, but I'll add the note here. + // package:testing takes *a long time* listing files because it does + // ``` + // if (suite.exclude.any((RegExp r) => path.contains(r))) continue; + // if (suite.pattern.any((RegExp r) => path.contains(r))) {} + // ``` + // for each file it finds. Maybe it should do something more efficient, + // and maybe it should even take given filters into account at this point? + // + // Also it lists all files in the specified "path", so for instance for the + // src spell one we have to list all files in "pkg/", then filter it down to + // stuff in one of the dirs we care about. + List filters = []; + for (String path in changedFiles) { + if (!path.endsWith(".dart")) continue; + if (path.startsWith("pkg/front_end/") && + !path.startsWith("pkg/front_end/lib/")) { + // Remove front of path and ".dart". + String filter = path.substring("pkg/front_end/".length, path.length - 5); + filters.add("spelling_test_not_src/$filter"); + } + } + + if (filters.isEmpty) return null; + + return new SpellNotSourceWork(filters: filters, repoDir: _repoDir); +} + +SpellSourceWork? _createSpellingTestSourceWork(List changedFiles) { + List filters = []; + pathLoop: + for (String path in changedFiles) { + if (!path.endsWith(".dart")) continue; + for (MapEntry> entry in _spellDirs.entries) { + for (String subPath in entry.value) { + if (path.startsWith("pkg/${entry.key}/$subPath")) { + String filter = path.substring("pkg/".length, path.length - 5); + filters.add("spelling_test_src/$filter"); + continue pathLoop; + } + } + } + } + + if (filters.isEmpty) return null; + + return new SpellSourceWork(filters: filters, repoDir: _repoDir); +} + +Future _executePendingWorkItems(List workItems) async { + int currentlyRunning = 0; + SpawnHelper spawnHelper = new SpawnHelper(); + print("Waiting for spawn to start up."); + Stopwatch stopwatch = new Stopwatch()..start(); + await spawnHelper + .spawn(_repoDir.resolve("pkg/front_end/presubmit_helper_spawn.dart"), + (dynamic ok) { + if (ok is! bool) { + exitCode = 1; + print("Error got message of type ${ok.runtimeType}"); + return; + } + currentlyRunning--; + if (!ok) { + exitCode = 1; + } + }); + print("Isolate started in ${stopwatch.elapsed}"); + + for (Work workItem in workItems) { + print("Executing ${workItem.name}."); + currentlyRunning++; + spawnHelper.send(json.encode(workItem.toJson())); + } + + while (currentlyRunning > 0) { + await Future.delayed(const Duration(milliseconds: 42)); + } + spawnHelper.close(); +} + +/// Queries git about changes against upstream, or origin/main if no upstream is +/// set. This is similar (but different), I believe, to what +/// `git cl presubmit` does. +List _getChangedFiles() { + ProcessResult result = Process.runSync( + "git", + [ + "-c", + "core.quotePath=false", + "diff", + "--name-status", + "--no-renames", + "@{u}...HEAD" + ], + runInShell: true); + if (result.exitCode != 0) { + result = Process.runSync( + "git", + [ + "-c", + "core.quotePath=false", + "diff", + "--name-status", + "--no-renames", + "origin/main...HEAD" + ], + runInShell: true); + } + if (result.exitCode != 0) { + throw "Failure"; + } + + List paths = []; + for (String line in result.stdout.toString().split("\n")) { + List split = line.split("\t"); + if (split.length != 2) continue; + String path = split[1].trim().replaceAll("\\", "/"); + paths.add(path); + } + return paths; +} + +/// If [inner] is a dir or file inside [outer] this returns the index into +/// `inner.pathSegments` corresponding to the folder- or filename directly +/// inside [outer]. +/// If [inner] is not inside [outer] it returns null. +int? _getPathSegmentIndexIfSubEntry(Uri outer, Uri inner) { + List outerPathSegments = outer.pathSegments; + List innerPathSegments = inner.pathSegments; + if (innerPathSegments.length < outerPathSegments.length) return null; + int end = outerPathSegments.length; + if (outerPathSegments.last == "") end--; + for (int i = 0; i < end; i++) { + if (outerPathSegments[i] != innerPathSegments[i]) { + return null; + } + } + return end; +} + +Future _run( + String script, + List scriptArguments, +) async { + List arguments = []; + arguments.add("$script"); + arguments.addAll(scriptArguments); + + Stopwatch stopwatch = new Stopwatch()..start(); + ProcessResult result = await Process.run(_dartVm, arguments, + workingDirectory: _repoDir.toFilePath()); + String runWhat = "${_dartVm} ${arguments.join(' ')}"; + if (result.exitCode != 0) { + exitCode = result.exitCode; + print("-----"); + print("Running: $runWhat: " + "Failed with exit code ${result.exitCode} " + "in ${stopwatch.elapsedMilliseconds} ms."); + String stdout = result.stdout.toString(); + stdout = stdout.trim(); + if (stdout.isNotEmpty) { + print("--- stdout start ---"); + print(stdout); + print("--- stdout end ---"); + } + + String stderr = result.stderr.toString().trim(); + if (stderr.isNotEmpty) { + print("--- stderr start ---"); + print(stderr); + print("--- stderr end ---"); + } + } else { + print("Running: $runWhat: Done in ${stopwatch.elapsedMilliseconds} ms."); + } +} + +// This script is potentially called from several places (once from each), +// but we only want to actually run it once. To that end we - from the changed +// files figure out which would call this script, and only if the caller is +// the top one (just alphabetically sorted) we actually run. +bool _shouldRun(final List changedFiles, final String callerPath) { + Uri pkgDir = _repoDir.resolve("pkg/"); + Uri callerUri = Uri.base.resolveUri(Uri.file(callerPath)); + int? endPathIndex = _getPathSegmentIndexIfSubEntry(pkgDir, callerUri); + if (endPathIndex == null) { + throw "Unsupported path"; + } + final String callerPkgDir = callerUri.pathSegments[endPathIndex]; + if (!_usDirs.contains(callerPkgDir)) { + throw "Unsupported dir: $callerPkgDir -- expected one of $_usDirs."; + } + + final Set changedUsDirsSet = {}; + for (String path in changedFiles) { + if (!path.startsWith("pkg/")) continue; + List paths = path.split("/"); + if (paths.length < 2) continue; + if (_usDirs.contains(paths[1])) { + changedUsDirsSet.add(paths[1]); + } + } + + if (changedUsDirsSet.isEmpty) { + print("We have no changes."); + return false; + } + + final List changedUsDirs = changedUsDirsSet.toList()..sort(); + if (changedUsDirs.first != callerPkgDir) { + print("We expect this file to be called elsewhere which will do the work."); + return false; + } + return true; +} + +/// The `generated_files_up_to_date_git_test.dart` file imports +/// package:dart_style which imports package:analyzer --- so it's a lot of extra +/// stuff to compile (and thus an expensive script to start). +/// Therefore it's not done in the same way as the other things, but instead +/// launched separately. +bool _shouldRunGenerateFilesTest(List changedFiles) { + for (String path in changedFiles) { + if (_generatedFilesUpToDateFiles.contains(path)) { + return true; + } + } + + return false; +} + +class DepsTestWork extends Work { + DepsTestWork(); + + @override + String get name => "Deps test"; + + @override + Map toJson() { + return { + "WorkTypeIndex": WorkEnum.DepsTest.index, + }; + } + + static Work fromJson(Map json) { + return new DepsTestWork(); + } +} + +class ExplicitCreationWork extends Work { + final Set includedFiles; + final Set includedDirectoryUris; + final Uri repoDir; + + ExplicitCreationWork( + {required this.includedFiles, + required this.includedDirectoryUris, + required this.repoDir}); + + @override + String get name => "explicit creation test"; + + @override + Map toJson() { + return { + "WorkTypeIndex": WorkEnum.ExplicitCreation.index, + "includedFiles": includedFiles.map((e) => e.toString()).toList(), + "includedDirectoryUris": + includedDirectoryUris.map((e) => e.toString()).toList(), + "repoDir": repoDir.toString(), + }; + } + + static Work fromJson(Map json) { + return new ExplicitCreationWork( + includedFiles: Set.from( + (json["includedFiles"] as Iterable).map((e) => Uri.parse(e))), + includedDirectoryUris: Set.from( + (json["includedDirectoryUris"] as Iterable).map((e) => Uri.parse(e))), + repoDir: Uri.parse(json["repoDir"] as String), + ); + } +} + +class LintWork extends Work { + final List filters; + final Uri repoDir; + + LintWork({required this.filters, required this.repoDir}); + + @override + String get name => "Lint test"; + + @override + Map toJson() { + return { + "WorkTypeIndex": WorkEnum.Lint.index, + "filters": filters, + "repoDir": repoDir.toString(), + }; + } + + static Work fromJson(Map json) { + return new LintWork( + filters: List.from(json["filters"] as Iterable), + repoDir: Uri.parse(json["repoDir"] as String), + ); + } +} + +class MessagesWork extends Work { + final Uri repoDir; + + MessagesWork({required this.repoDir}); + + @override + String get name => "messages test"; + + @override + Map toJson() { + return { + "WorkTypeIndex": WorkEnum.Messages.index, + "repoDir": repoDir.toString(), + }; + } + + static Work fromJson(Map json) { + return new MessagesWork( + repoDir: Uri.parse(json["repoDir"] as String), + ); + } +} + +class SpawnHelper { + bool _spawned = false; + late ReceivePort _receivePort; + late SendPort _sendPort; + late void Function(dynamic data) onData; + final List data = []; + + void close() { + if (!_spawned) throw "Not spawned!"; + _receivePort.close(); + } + + void send(Object? message) { + if (!_spawned) throw "Not spawned!"; + _sendPort.send(message); + } + + Future spawn(Uri spawnUri, void Function(dynamic data) onData) async { + if (_spawned) throw "Already spawned!"; + _spawned = true; + this.onData = onData; + _receivePort = ReceivePort(); + await Isolate.spawnUri(spawnUri, const [], _receivePort.sendPort); + final Completer sendPortCompleter = Completer(); + _receivePort.listen((dynamic receivedData) { + if (!sendPortCompleter.isCompleted) { + sendPortCompleter.complete(receivedData); + } else { + onData(receivedData); + } + }); + _sendPort = await sendPortCompleter.future; + } +} + +class SpellNotSourceWork extends Work { + final List filters; + final Uri repoDir; + + SpellNotSourceWork({required this.filters, required this.repoDir}); + + @override + String get name => "spell test not source"; + + @override + Map toJson() { + return { + "WorkTypeIndex": WorkEnum.SpellingNotSource.index, + "filters": filters, + "repoDir": repoDir.toString(), + }; + } + + static Work fromJson(Map json) { + return new SpellNotSourceWork( + filters: List.from(json["filters"] as Iterable), + repoDir: Uri.parse(json["repoDir"] as String), + ); + } +} + +class SpellSourceWork extends Work { + final List filters; + final Uri repoDir; + + SpellSourceWork({required this.filters, required this.repoDir}); + + @override + String get name => "spell test source"; + + @override + Map toJson() { + return { + "WorkTypeIndex": WorkEnum.SpellingSource.index, + "filters": filters, + "repoDir": repoDir.toString(), + }; + } + + static Work fromJson(Map json) { + return new SpellSourceWork( + filters: List.from(json["filters"] as Iterable), + repoDir: Uri.parse(json["repoDir"] as String), + ); + } +} + +sealed class Work { + String get name; + + Map toJson(); + + static Work workFromJson(Map json) { + dynamic workTypeIndex = json["WorkTypeIndex"]; + if (workTypeIndex is! int || + workTypeIndex < 0 || + workTypeIndex >= WorkEnum.values.length) { + throw "Cannot convert to a Work object."; + } + WorkEnum workType = WorkEnum.values[workTypeIndex]; + switch (workType) { + case WorkEnum.ExplicitCreation: + return ExplicitCreationWork.fromJson(json); + case WorkEnum.Messages: + return MessagesWork.fromJson(json); + case WorkEnum.SpellingNotSource: + return SpellNotSourceWork.fromJson(json); + case WorkEnum.SpellingSource: + return SpellSourceWork.fromJson(json); + case WorkEnum.Lint: + return LintWork.fromJson(json); + case WorkEnum.DepsTest: + return DepsTestWork.fromJson(json); + } + } +} + +enum WorkEnum { + ExplicitCreation, + Messages, + SpellingNotSource, + SpellingSource, + Lint, + DepsTest, +} + +extension on List { + void addIfNotNull(Work? element) { + if (element == null) return; + add(element); + } +} diff --git a/pkg/front_end/presubmit_helper_spawn.dart b/pkg/front_end/presubmit_helper_spawn.dart new file mode 100644 index 00000000000..43ed899954b --- /dev/null +++ b/pkg/front_end/presubmit_helper_spawn.dart @@ -0,0 +1,211 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +import 'dart:convert'; +import 'dart:isolate' show Isolate, ReceivePort, SendPort; + +import 'package:testing/src/log.dart' show Logger; +import 'package:testing/src/suite.dart'; +import 'package:testing/testing.dart' as testing; + +import 'presubmit_helper.dart'; +import 'test/deps_git_test.dart' as deps_test; +import 'test/explicit_creation_impl.dart' show runExplicitCreationTest; +import 'test/fasta/messages_suite.dart' as messages_suite; +import 'test/lint_suite.dart' as lint_suite; +import 'test/spelling_test_not_src_suite.dart' as spelling_test_not_src; +import 'test/spelling_test_src_suite.dart' as spelling_test_src; + +Future main(List args, [SendPort? sendPort]) async { + if (sendPort == null) throw "Need a send-port."; + var isolateReceivePort = ReceivePort(); + isolateReceivePort.listen((rawData) async { + if (rawData is! String) { + print("Got unexpected data of type ${rawData.runtimeType}"); + sendPort.send(false); + return; + } + Work work = Work.workFromJson(json.decode(rawData)); + Stopwatch stopwatch = new Stopwatch()..start(); + switch (work) { + case ExplicitCreationWork(): + int explicitCreationErrorsFound = -1; + try { + explicitCreationErrorsFound = await Isolate.run(() => + runExplicitCreationTest( + includedFiles: work.includedFiles, + includedDirectoryUris: work.includedDirectoryUris, + repoDir: work.repoDir)); + } catch (e) { + // This will make it send false. + explicitCreationErrorsFound = -1; + } + print("Sending ok = ${explicitCreationErrorsFound == 0} " + "for ${work.name} after ${stopwatch.elapsed}"); + sendPort.send(explicitCreationErrorsFound == 0); + + case MessagesWork(): + bool ok; + try { + ok = await Isolate.run(() async { + ErrorNotingLogger logger = new ErrorNotingLogger(); + await testing.runMe( + const ["-DfastOnly=true"], + messages_suite.createContext, + me: work.repoDir + .resolve("pkg/front_end/test/fasta/messages_suite.dart"), + configurationPath: "../../testing.json", + logger: logger, + ); + return !logger.gotFailure; + }); + } catch (e) { + ok = false; + } + print("Sending ok = $ok " + "for ${work.name} after ${stopwatch.elapsed}"); + sendPort.send(ok); + case SpellNotSourceWork(): + bool ok; + try { + ok = await Isolate.run(() async { + ErrorNotingLogger logger = new ErrorNotingLogger(); + await testing.runMe( + ["--", ...work.filters], + spelling_test_not_src.createContext, + me: work.repoDir.resolve( + "pkg/front_end/test/spelling_test_not_src_suite.dart"), + configurationPath: "../testing.json", + logger: logger, + ); + return !logger.gotFailure; + }); + } catch (e) { + ok = false; + } + print("Sending ok = $ok " + "for ${work.name} after ${stopwatch.elapsed}"); + sendPort.send(ok); + case SpellSourceWork(): + bool ok; + try { + ok = await Isolate.run(() async { + ErrorNotingLogger logger = new ErrorNotingLogger(); + await testing.runMe( + ["--", ...work.filters], + spelling_test_src.createContext, + me: work.repoDir + .resolve("pkg/front_end/test/spelling_test_src_suite.dart"), + configurationPath: "../testing.json", + logger: logger, + ); + return !logger.gotFailure; + }); + } catch (e) { + ok = false; + } + print("Sending ok = $ok " + "for ${work.name} after ${stopwatch.elapsed}"); + sendPort.send(ok); + case LintWork(): + bool ok; + try { + ok = await Isolate.run(() async { + ErrorNotingLogger logger = new ErrorNotingLogger(); + await testing.runMe( + ["--", ...work.filters], + lint_suite.createContext, + me: work.repoDir.resolve("pkg/front_end/test/lint_suite.dart"), + configurationPath: "../testing.json", + logger: logger, + ); + return !logger.gotFailure; + }); + } catch (e) { + ok = false; + } + print("Sending ok = $ok " + "for ${work.name} after ${stopwatch.elapsed}"); + sendPort.send(ok); + case DepsTestWork(): + bool ok; + try { + ok = await Isolate.run(() { + return deps_test.main(); + }); + } catch (e) { + ok = false; + } + print("Sending ok = $ok " + "for ${work.name} after ${stopwatch.elapsed}"); + sendPort.send(ok); + } + }); + sendPort.send(isolateReceivePort.sendPort); +} + +class ErrorNotingLogger implements Logger { + bool gotFailure = false; + + @override + void logExpectedResult(Suite suite, testing.TestDescription description, + testing.Result result, Set expectedOutcomes) {} + + @override + void logMessage(Object message) {} + + @override + void logNumberedLines(String text) {} + + @override + void logProgress(String message) {} + + @override + void logStepComplete( + int completed, + int failed, + int total, + Suite suite, + testing.TestDescription description, + testing.Step step) {} + + @override + void logStepStart( + int completed, + int failed, + int total, + Suite suite, + testing.TestDescription description, + testing.Step step) {} + + @override + void logSuiteComplete(Suite suite) {} + + @override + void logSuiteStarted(Suite suite) {} + + @override + void logTestComplete(int completed, int failed, int total, Suite suite, + testing.TestDescription description) {} + + @override + void logTestStart(int completed, int failed, int total, Suite suite, + testing.TestDescription description) {} + + @override + void logUncaughtError(error, StackTrace stackTrace) { + gotFailure = true; + } + + @override + void logUnexpectedResult(Suite suite, testing.TestDescription description, + testing.Result result, Set expectedOutcomes) { + gotFailure = true; + } + + @override + void noticeFrameworkCatchError(error, StackTrace stackTrace) { + gotFailure = true; + } +} diff --git a/pkg/front_end/test/compiler_test_helper.dart b/pkg/front_end/test/compiler_test_helper.dart index 71d5f73a63b..c2d2b0c954a 100644 --- a/pkg/front_end/test/compiler_test_helper.dart +++ b/pkg/front_end/test/compiler_test_helper.dart @@ -6,12 +6,14 @@ import 'dart:io'; import 'package:front_end/src/api_prototype/compiler_options.dart' as api; import 'package:front_end/src/api_prototype/file_system.dart' as api; +import 'package:front_end/src/api_prototype/incremental_kernel_generator.dart'; import 'package:front_end/src/base/processed_options.dart'; import 'package:front_end/src/compute_platform_binaries_location.dart' show computePlatformBinariesLocation; import 'package:front_end/src/fasta/compiler_context.dart'; import 'package:front_end/src/fasta/constant_context.dart'; import 'package:front_end/src/fasta/dill/dill_target.dart'; +import 'package:front_end/src/fasta/incremental_compiler.dart'; import 'package:front_end/src/fasta/kernel/body_builder.dart'; import 'package:front_end/src/fasta/kernel/body_builder_context.dart'; import 'package:front_end/src/fasta/kernel/kernel_target.dart'; @@ -54,6 +56,10 @@ api.CompilerOptions getOptions( return options; } +/// [splitCompileAndCompileLess] Will use the incremental compiler to compile +/// an outline of everything, then compile the bodies of the [input]. This also +/// makes the compile pipeline skip transformations as for instance the VMs +/// mixin transformation isn't compatible (and will actively crash). Future compile( {required List inputs, void Function(api.DiagnosticMessage message)? onDiagnostic, @@ -62,7 +68,8 @@ Future compile( bool compileSdk = false, KernelTargetCreator kernelTargetCreator = KernelTargetTest.new, BodyBuilderCreator bodyBuilderCreator = defaultBodyBuilderCreator, - api.FileSystem? fileSystem}) async { + api.FileSystem? fileSystem, + bool splitCompileAndCompileLess = false}) async { Ticker ticker = new Ticker(isVerbose: false); api.CompilerOptions compilerOptions = getOptions( repoDir: repoDir, @@ -76,30 +83,97 @@ Future compile( return await CompilerContext.runWithOptions(processedOptions, (CompilerContext c) async { - UriTranslator uriTranslator = await c.options.getUriTranslator(); - DillTarget dillTarget = - new DillTarget(ticker, uriTranslator, c.options.target); - KernelTarget kernelTarget = kernelTargetCreator( - c.fileSystem, false, dillTarget, uriTranslator, bodyBuilderCreator); + if (splitCompileAndCompileLess) { + TestIncrementalCompiler outlineIncrementalCompiler = + new TestIncrementalCompiler(bodyBuilderCreator, c, outlineOnly: true); + // Outline + IncrementalCompilerResult outlineResult = await outlineIncrementalCompiler + .computeDelta(entryPoints: c.options.inputs); + print("Build outline of " + "${outlineResult.component.libraries.length} libraries"); - Uri? platform = c.options.sdkSummary; - if (platform != null) { - var bytes = new File.fromUri(platform).readAsBytesSync(); - var platformComponent = loadComponentFromBytes(bytes); - dillTarget.loader - .appendLibraries(platformComponent, byteCount: bytes.length); + // Full of the asked inputs. + TestIncrementalCompiler incrementalCompiler = + new TestIncrementalCompiler.fromComponent( + bodyBuilderCreator, c, outlineResult.component); + for (Uri uri in c.options.inputs) { + incrementalCompiler.invalidate(uri); + } + IncrementalCompilerResult result = await incrementalCompiler.computeDelta( + entryPoints: c.options.inputs, fullComponent: true); + print("Build bodies of " + "${incrementalCompiler.recorderForTesting.rebuildBodiesCount} " + "libraries."); + + return new BuildResult(component: result.component); + } else { + UriTranslator uriTranslator = await c.options.getUriTranslator(); + DillTarget dillTarget = + new DillTarget(ticker, uriTranslator, c.options.target); + KernelTarget kernelTarget = kernelTargetCreator( + c.fileSystem, false, dillTarget, uriTranslator, bodyBuilderCreator); + + Uri? platform = c.options.sdkSummary; + if (platform != null) { + var bytes = new File.fromUri(platform).readAsBytesSync(); + var platformComponent = loadComponentFromBytes(bytes); + dillTarget.loader + .appendLibraries(platformComponent, byteCount: bytes.length); + } + + kernelTarget.setEntryPoints(c.options.inputs); + dillTarget.buildOutlines(); + BuildResult buildResult = await kernelTarget.buildOutlines(); + buildResult = await kernelTarget.buildComponent( + macroApplications: buildResult.macroApplications); + buildResult.macroApplications?.close(); + return buildResult; } - - kernelTarget.setEntryPoints(c.options.inputs); - dillTarget.buildOutlines(); - BuildResult buildResult = await kernelTarget.buildOutlines(); - buildResult = await kernelTarget.buildComponent( - macroApplications: buildResult.macroApplications); - buildResult.macroApplications?.close(); - return buildResult; }); } +class TestIncrementalCompiler extends IncrementalCompiler { + final BodyBuilderCreator bodyBuilderCreator; + + @override + final TestRecorderForTesting recorderForTesting = + new TestRecorderForTesting(); + + TestIncrementalCompiler( + this.bodyBuilderCreator, + CompilerContext context, { + Uri? initializeFromDillUri, + required bool outlineOnly, + }) : super(context, initializeFromDillUri, outlineOnly); + + TestIncrementalCompiler.fromComponent( + this.bodyBuilderCreator, super.context, super._componentToInitializeFrom) + : super.fromComponent(); + + @override + bool get skipExperimentalInvalidationChecksForTesting => true; + + @override + IncrementalKernelTarget createIncrementalKernelTarget( + api.FileSystem fileSystem, + bool includeComments, + DillTarget dillTarget, + UriTranslator uriTranslator) { + return new KernelTargetTest(fileSystem, includeComments, dillTarget, + uriTranslator, bodyBuilderCreator) + ..skipTransformations = true; + } +} + +class TestRecorderForTesting extends RecorderForTesting { + int rebuildBodiesCount = 0; + + @override + void recordRebuildBodiesCount(int count) { + rebuildBodiesCount = count; + } +} + typedef KernelTargetCreator = KernelTargetTest Function( api.FileSystem fileSystem, bool includeComments, @@ -107,22 +181,29 @@ typedef KernelTargetCreator = KernelTargetTest Function( UriTranslator uriTranslator, BodyBuilderCreator bodyBuilderCreator); -class KernelTargetTest extends KernelTarget { +class KernelTargetTest extends IncrementalKernelTarget { final BodyBuilderCreator bodyBuilderCreator; + bool skipTransformations = false; KernelTargetTest( - api.FileSystem fileSystem, - bool includeComments, - DillTarget dillTarget, - UriTranslator uriTranslator, - this.bodyBuilderCreator) - : super(fileSystem, includeComments, dillTarget, uriTranslator); + api.FileSystem fileSystem, + bool includeComments, + DillTarget dillTarget, + UriTranslator uriTranslator, + this.bodyBuilderCreator, + ) : super(fileSystem, includeComments, dillTarget, uriTranslator); @override SourceLoader createLoader() { return new SourceLoaderTest( fileSystem, includeComments, this, bodyBuilderCreator); } + + @override + void runBuildTransformations() { + if (skipTransformations) return; + super.runBuildTransformations(); + } } class SourceLoaderTest extends SourceLoader { diff --git a/pkg/front_end/test/deps_git_test.dart b/pkg/front_end/test/deps_git_test.dart index 00dfdf099e3..02be89459ff 100644 --- a/pkg/front_end/test/deps_git_test.dart +++ b/pkg/front_end/test/deps_git_test.dart @@ -43,7 +43,8 @@ Set allowlistedExternalDartFiles = { "pkg/meta/lib/meta_meta.dart", }; -Future main() async { +/// Returns true on no errors and false if errors was found. +Future main() async { Ticker ticker = new Ticker(isVerbose: false); CompilerOptions compilerOptions = getOptions(); @@ -139,7 +140,9 @@ Future main() async { print(" - $uri"); } exitCode = 1; + return false; } + return true; } CompilerOptions getOptions() { diff --git a/pkg/front_end/test/explicit_creation_git_test.dart b/pkg/front_end/test/explicit_creation_git_test.dart index b5e3654cd13..ded5acd44cd 100644 --- a/pkg/front_end/test/explicit_creation_git_test.dart +++ b/pkg/front_end/test/explicit_creation_git_test.dart @@ -4,44 +4,30 @@ import 'dart:io'; -import 'package:_fe_analyzer_shared/src/messages/severity.dart'; -import 'package:_fe_analyzer_shared/src/scanner/token.dart'; -import 'package:front_end/src/api_prototype/compiler_options.dart' as api; -import 'package:front_end/src/fasta/builder/declaration_builders.dart'; -import 'package:front_end/src/fasta/builder/type_builder.dart'; -import 'package:front_end/src/fasta/fasta_codes.dart' as fasta; -import 'package:front_end/src/fasta/kernel/body_builder.dart'; -import 'package:front_end/src/fasta/kernel/constness.dart'; -import 'package:front_end/src/fasta/kernel/expression_generator_helper.dart'; -import 'package:kernel/kernel.dart'; - -import 'compiler_test_helper.dart'; import 'testing_utils.dart' show getGitFiles; -import "utils/io_utils.dart"; - -final Uri repoDir = computeRepoDirUri(); - -Set libUris = {}; -Set ignoredLibUris = {}; - -int errorCount = 0; +import "utils/io_utils.dart" show computeRepoDirUri; +import "explicit_creation_impl.dart" show runExplicitCreationTest; Future main(List args) async { - ignoredLibUris.add(repoDir.resolve("pkg/frontend_server/test/fixtures/")); + final Uri repoDir = computeRepoDirUri(); + + Set libUris = {}; if (args.isEmpty) { libUris.add(repoDir.resolve("pkg/front_end/lib/")); libUris.add(repoDir.resolve("pkg/_fe_analyzer_shared/lib/")); libUris.add(repoDir.resolve("pkg/frontend_server/")); } else { - if (args[0] == "--front-end-only") { - libUris.add(repoDir.resolve("pkg/front_end/lib/")); - } else if (args[0] == "--shared-only") { - libUris.add(repoDir.resolve("pkg/_fe_analyzer_shared/lib/")); - } else if (args[0] == "--frontend_server-only") { - libUris.add(repoDir.resolve("pkg/frontend_server/")); - } else { - throw "Unsupported arguments: $args"; + for (String arg in args) { + if (arg == "--front-end-only") { + libUris.add(repoDir.resolve("pkg/front_end/lib/")); + } else if (arg == "--shared-only") { + libUris.add(repoDir.resolve("pkg/_fe_analyzer_shared/lib/")); + } else if (arg == "--frontend_server-only") { + libUris.add(repoDir.resolve("pkg/frontend_server/")); + } else { + throw "Unsupported arguments: $args"; + } } } @@ -58,104 +44,10 @@ Future main(List args) async { } } } - for (Uri uri in ignoredLibUris) { - List entities = - new Directory.fromUri(uri).listSync(recursive: true); - for (FileSystemEntity entity in entities) { - if (entity is File && entity.path.endsWith(".dart")) { - inputs.remove(entity.uri); - } - } - } - Uri packageConfigUri = repoDir.resolve(".dart_tool/package_config.json"); - if (!new File.fromUri(packageConfigUri).existsSync()) { - throw "Couldn't find .dart_tool/package_config.json"; - } - - Stopwatch stopwatch = new Stopwatch()..start(); - - await compile( - inputs: inputs.toList(), - // Compile sdk because when this is run from a lint it uses the checked-in - // sdk and we might not have a suitable compiled platform.dill file. - compileSdk: true, - packagesFileUri: packageConfigUri, - onDiagnostic: (api.DiagnosticMessage message) { - if (message.severity == Severity.error) { - print(message.plainTextFormatted.join('\n')); - errorCount++; - exitCode = 1; - } - }, - repoDir: repoDir, - bodyBuilderCreator: ( - create: BodyBuilderTester.new, - createForField: BodyBuilderTester.forField, - createForOutlineExpression: BodyBuilderTester.forOutlineExpression - )); - - print("Done in ${stopwatch.elapsedMilliseconds} ms. " - "Found $errorCount errors."); -} - -class BodyBuilderTester = BodyBuilderTest with BodyBuilderTestMixin; - -mixin BodyBuilderTestMixin on BodyBuilder { - @override - Expression buildConstructorInvocation( - TypeDeclarationBuilder? type, - Token nameToken, - Token nameLastToken, - Arguments? arguments, - String name, - List? typeArguments, - int charOffset, - Constness constness, - {bool isTypeArgumentsInForest = false, - TypeDeclarationBuilder? typeAliasBuilder, - required UnresolvedKind unresolvedKind}) { - Token maybeNewOrConst = nameToken.previous!; - bool doReport = true; - if (maybeNewOrConst is KeywordToken) { - if (maybeNewOrConst.lexeme == "new" || - maybeNewOrConst.lexeme == "const") { - doReport = false; - } - } else if (maybeNewOrConst is SimpleToken) { - if (maybeNewOrConst.lexeme == "@") { - doReport = false; - } - } - if (doReport) { - bool match = false; - for (Uri libUri in libUris) { - if (uri.toString().startsWith(libUri.toString())) { - match = true; - break; - } - } - if (match) { - for (Uri libUri in ignoredLibUris) { - if (uri.toString().startsWith(libUri.toString())) { - match = false; - break; - } - } - } - if (!match) { - doReport = false; - } - } - if (doReport) { - addProblem( - fasta.templateUnspecified.withArguments("Should use new or const"), - nameToken.charOffset, - nameToken.length); - } - return super.buildConstructorInvocation(type, nameToken, nameLastToken, - arguments, name, typeArguments, charOffset, constness, - isTypeArgumentsInForest: isTypeArgumentsInForest, - unresolvedKind: unresolvedKind); + int explicitCreationErrorsFound = await runExplicitCreationTest( + includedFiles: inputs, includedDirectoryUris: libUris, repoDir: repoDir); + if (explicitCreationErrorsFound > 0) { + exitCode = 1; } } diff --git a/pkg/front_end/test/explicit_creation_impl.dart b/pkg/front_end/test/explicit_creation_impl.dart new file mode 100644 index 00000000000..eb978176e9b --- /dev/null +++ b/pkg/front_end/test/explicit_creation_impl.dart @@ -0,0 +1,163 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +import 'dart:io' show File; + +import 'package:_fe_analyzer_shared/src/messages/severity.dart' show Severity; +import 'package:_fe_analyzer_shared/src/scanner/token.dart' + show KeywordToken, SimpleToken, Token; +import 'package:front_end/src/api_prototype/compiler_options.dart' as api + show DiagnosticMessage; +import 'package:front_end/src/fasta/builder/declaration_builders.dart' + show TypeDeclarationBuilder; +import 'package:front_end/src/fasta/builder/type_builder.dart' show TypeBuilder; +import 'package:front_end/src/fasta/fasta_codes.dart' as fasta + show templateUnspecified; +import 'package:front_end/src/fasta/kernel/body_builder.dart' show BodyBuilder; +import 'package:front_end/src/fasta/kernel/constness.dart' show Constness; +import 'package:front_end/src/fasta/kernel/expression_generator_helper.dart' + show UnresolvedKind; +import 'package:front_end/src/fasta/kernel/kernel_target.dart' show BuildResult; +import 'package:kernel/kernel.dart' show Arguments, Expression; + +import 'compiler_test_helper.dart' show BodyBuilderTest, compile; + +Set _includedDirectoryUris = {}; +Set _ignoredDirectoryUris = {}; + +/// Run the explicit creation test (i.e. reporting missing 'new' tokens). +/// +/// Explicitly compiles [includedFiles], reporting only errors for files in a +/// path in [includedDirectoryUris] and not in [ignoredDirectoryUris]. +/// Note that this means that there can be reported errors in files not +/// explicitly included in [includedFiles], although that is not guaranteed. +/// +/// Returns the number of errors found. +Future runExplicitCreationTest( + {required Set includedFiles, + required Set includedDirectoryUris, + required Uri repoDir}) async { + _includedDirectoryUris.clear(); + _includedDirectoryUris.addAll(includedDirectoryUris); + _ignoredDirectoryUris.clear(); + _ignoredDirectoryUris + .add(repoDir.resolve("pkg/frontend_server/test/fixtures/")); + int errorCount = 0; + + Uri packageConfigUri = repoDir.resolve(".dart_tool/package_config.json"); + if (!new File.fromUri(packageConfigUri).existsSync()) { + throw "Couldn't find .dart_tool/package_config.json"; + } + + Set includedFilesFiltered = {}; + for (Uri uri in includedFiles) { + bool include = true; + for (Uri ignoredDir in _ignoredDirectoryUris) { + if (uri.toString().startsWith(ignoredDir.toString())) { + include = false; + break; + } + } + if (include) { + includedFilesFiltered.add(uri); + } + } + + Stopwatch stopwatch = new Stopwatch()..start(); + + // TODO(jensj): While we need to compile the outline as normal, it should be + // sufficient to compile the body of the paths mentioned in [includedFiles]. + + // TODO(jensj): The target has to be VM or we can't compile the sdk, + // but probably we don't actually need to run any vm-specific transformations + // for instance. + + BuildResult result = await compile( + inputs: includedFilesFiltered.toList(), + // Compile sdk because when this is run from a lint it uses the checked-in + // sdk and we might not have a suitable compiled platform.dill file. + compileSdk: true, + packagesFileUri: packageConfigUri, + onDiagnostic: (api.DiagnosticMessage message) { + if (message.severity == Severity.error) { + print(message.plainTextFormatted.join('\n')); + errorCount++; + } + }, + repoDir: repoDir, + bodyBuilderCreator: ( + create: BodyBuilderTester.new, + createForField: BodyBuilderTester.forField, + createForOutlineExpression: BodyBuilderTester.forOutlineExpression + ), + splitCompileAndCompileLess: true); + + print("Done in ${stopwatch.elapsedMilliseconds} ms. " + "Found $errorCount errors."); + + print("Compiled ${result.component?.libraries.length} libraries."); + + return errorCount; +} + +class BodyBuilderTester = BodyBuilderTest with BodyBuilderTestMixin; + +mixin BodyBuilderTestMixin on BodyBuilder { + @override + Expression buildConstructorInvocation( + TypeDeclarationBuilder? type, + Token nameToken, + Token nameLastToken, + Arguments? arguments, + String name, + List? typeArguments, + int charOffset, + Constness constness, + {bool isTypeArgumentsInForest = false, + TypeDeclarationBuilder? typeAliasBuilder, + required UnresolvedKind unresolvedKind}) { + Token maybeNewOrConst = nameToken.previous!; + bool doReport = true; + if (maybeNewOrConst is KeywordToken) { + if (maybeNewOrConst.lexeme == "new" || + maybeNewOrConst.lexeme == "const") { + doReport = false; + } + } else if (maybeNewOrConst is SimpleToken) { + if (maybeNewOrConst.lexeme == "@") { + doReport = false; + } + } + if (doReport) { + bool match = false; + for (Uri libUri in _includedDirectoryUris) { + if (uri.toString().startsWith(libUri.toString())) { + match = true; + break; + } + } + if (match) { + for (Uri libUri in _ignoredDirectoryUris) { + if (uri.toString().startsWith(libUri.toString())) { + match = false; + break; + } + } + } + if (!match) { + doReport = false; + } + } + if (doReport) { + addProblem( + fasta.templateUnspecified.withArguments("Should use new or const"), + nameToken.charOffset, + nameToken.length); + } + return super.buildConstructorInvocation(type, nameToken, nameLastToken, + arguments, name, typeArguments, charOffset, constness, + isTypeArgumentsInForest: isTypeArgumentsInForest, + unresolvedKind: unresolvedKind); + } +} diff --git a/pkg/front_end/test/generated_files_up_to_date_git_test.dart b/pkg/front_end/test/generated_files_up_to_date_git_test.dart index 30efbd1e390..ee4f70e447b 100644 --- a/pkg/front_end/test/generated_files_up_to_date_git_test.dart +++ b/pkg/front_end/test/generated_files_up_to_date_git_test.dart @@ -18,7 +18,8 @@ import 'utils/io_utils.dart' show computeRepoDirUri; final Uri repoDir = computeRepoDirUri(); -Future main() async { +/// Returns true on no errors and false if errors was found. +Future main() async { messages(); experimentalFlags(); directParserAstHelper(); @@ -27,6 +28,7 @@ Future main() async { AstModel astModel = await deriveAstModel(repoDir); await astEquivalence(astModel); await astCoverage(astModel); + return _checkFoundErrors == false; } void parserTestParser() { @@ -105,6 +107,8 @@ void messages() { "dart pkg/front_end/tool/fasta.dart generate-messages"); } +bool _checkFoundErrors = false; + void check(String generated, Uri generatedFile, String run) { String actual = new File.fromUri(generatedFile) .readAsStringSync() @@ -122,5 +126,6 @@ is out of date. To regenerate the file, run ------------------------ """); exitCode = 1; + _checkFoundErrors = true; } } diff --git a/pkg/front_end/test/spell_checking_list_tests.txt b/pkg/front_end/test/spell_checking_list_tests.txt index 5957206efa1..af163706629 100644 --- a/pkg/front_end/test/spell_checking_list_tests.txt +++ b/pkg/front_end/test/spell_checking_list_tests.txt @@ -30,6 +30,7 @@ aligns allocations allowlist allowlisting +alphabetically alt amend amended @@ -236,6 +237,7 @@ dijkstra dijkstras dinteractive dirname +dirs disagree disagreement disconnect @@ -525,9 +527,11 @@ nondefault nonexisting noo noted +noting nottest nq null'ed +numbered numerator nums ob @@ -640,6 +644,7 @@ rendition reorder reordering repaint +representative repro reproduce reproduction @@ -795,6 +800,7 @@ ugly unassignment unawaited unbreak +uncaught unconverted uncover uncovers @@ -813,6 +819,7 @@ unusual unversioned upgrade upload +upstream upward uuid val diff --git a/pkg/front_end/tool/_fasta/generate_messages.dart b/pkg/front_end/tool/_fasta/generate_messages.dart index 4c32480ffc1..6642de10027 100644 --- a/pkg/front_end/tool/_fasta/generate_messages.dart +++ b/pkg/front_end/tool/_fasta/generate_messages.dart @@ -426,7 +426,7 @@ const Code code$name = message$name; // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const MessageCode message$name = - const MessageCode(\"$name\", ${codeArguments.join(', ')}); + const MessageCode(\"$name\", ${codeArguments.join(', ')},); """, isShared: canBeShared); } @@ -450,13 +450,17 @@ const MessageCode message$name = messageArguments .add("correctionMessage: ${interpolate(correctionMessage)}"); } - messageArguments.add("arguments: { ${arguments.join(', ')} }"); + messageArguments.add("arguments: { ${arguments.join(', ')}, }"); + + if (codeArguments.isNotEmpty) { + codeArguments.add(""); + } return new Template(""" // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Template template$name = const Template( - ${templateArguments.join(', ')}); + ${templateArguments.join(', ')},); // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. const Code code$name = @@ -468,7 +472,7 @@ Message _withArguments$name(${parameters.join(', ')}) { ${conversions.join('\n ')} return new Message( code$name, - ${messageArguments.join(', ')}); + ${messageArguments.join(', ')},); } """, isShared: canBeShared); } diff --git a/pkg/front_end/tool/ast_model.dart b/pkg/front_end/tool/ast_model.dart index f2aafe7540b..f87685b46e1 100644 --- a/pkg/front_end/tool/ast_model.dart +++ b/pkg/front_end/tool/ast_model.dart @@ -566,9 +566,12 @@ Future deriveAstModel(Uri repoDir, {bool printDump = false}) async { }; InternalCompilerResult compilerResult = (await kernelForProgramInternal( - astLibraryUri, options, - retainDataForTesting: true, - requireMain: false)) as InternalCompilerResult; + astLibraryUri, + options, + retainDataForTesting: true, + requireMain: false, + buildComponent: false, + )) as InternalCompilerResult; if (errorsFound) { throw 'Errors found'; } diff --git a/pkg/frontend_server/PRESUBMIT.py b/pkg/frontend_server/PRESUBMIT.py index 0cd0fbfd291..a04d974e09d 100644 --- a/pkg/frontend_server/PRESUBMIT.py +++ b/pkg/frontend_server/PRESUBMIT.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 -# Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file +# Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. -"""frontend_server specific presubmit script. +"""CFE et al presubmit python script. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl. @@ -30,45 +30,35 @@ def load_source(modname, filename): def runSmokeTest(input_api, output_api): - hasChangedFiles = False - for git_file in input_api.AffectedTextFiles(): - filename = git_file.AbsoluteLocalPath() - if filename.endswith(".dart"): - hasChangedFiles = True - break + local_root = input_api.change.RepositoryRoot() + utils = load_source('utils', os.path.join(local_root, 'tools', 'utils.py')) + dart = os.path.join(utils.CheckedInSdkPath(), 'bin', 'dart') + test_helper = os.path.join(local_root, 'pkg', 'front_end', + 'presubmit_helper.dart') - if hasChangedFiles: - local_root = input_api.change.RepositoryRoot() - utils = load_source('utils', - os.path.join(local_root, 'tools', 'utils.py')) - dart = os.path.join(utils.CheckedInSdkPath(), 'bin', 'dart') - smoke_test = os.path.join(local_root, 'pkg', 'frontend_server', 'test', - 'quick_smoke_git_test.dart') + windows = utils.GuessOS() == 'win32' + if windows: + dart += '.exe' - windows = utils.GuessOS() == 'win32' - if windows: - dart += '.exe' + if not os.path.isfile(dart): + print('WARNING: dart not found: %s' % dart) + return [] - if not os.path.isfile(dart): - print('WARNING: dart not found: %s' % dart) - return [] + if not os.path.isfile(test_helper): + print('WARNING: CFE et al presubmit_helper not found: %s' % test_helper) + return [] - if not os.path.isfile(smoke_test): - print('WARNING: frontend_server smoke test not found: %s' % - smoke_test) - return [] + args = [dart, test_helper, input_api.PresubmitLocalPath()] + process = subprocess.Popen(args, + stdout=subprocess.PIPE, + stdin=subprocess.PIPE) + outs, _ = process.communicate() - args = [dart, smoke_test] - process = subprocess.Popen(args, - stdout=subprocess.PIPE, - stdin=subprocess.PIPE) - outs, _ = process.communicate() - - if process.returncode != 0: - return [ - output_api.PresubmitError('Kernel smoke test failure(s):', - long_text=outs) - ] + if process.returncode != 0: + return [ + output_api.PresubmitError('CFE et al presubmit script failure(s):', + long_text=outs) + ] return [] diff --git a/pkg/kernel/PRESUBMIT.py b/pkg/kernel/PRESUBMIT.py index 381237b37e4..a04d974e09d 100644 --- a/pkg/kernel/PRESUBMIT.py +++ b/pkg/kernel/PRESUBMIT.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 -# Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file +# Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. -"""Kernel specific presubmit script. +"""CFE et al presubmit python script. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into gcl. @@ -30,42 +30,35 @@ def load_source(modname, filename): def runSmokeTest(input_api, output_api): - hasChangedFiles = False - for git_file in input_api.AffectedTextFiles(): - filename = git_file.AbsoluteLocalPath() - if filename.endswith(".dart"): - hasChangedFiles = True - break + local_root = input_api.change.RepositoryRoot() + utils = load_source('utils', os.path.join(local_root, 'tools', 'utils.py')) + dart = os.path.join(utils.CheckedInSdkPath(), 'bin', 'dart') + test_helper = os.path.join(local_root, 'pkg', 'front_end', + 'presubmit_helper.dart') - if hasChangedFiles: - local_root = input_api.change.RepositoryRoot() - utils = load_source('utils', - os.path.join(local_root, 'tools', 'utils.py')) - dart = os.path.join(utils.CheckedInSdkPath(), 'bin', 'dart') - smoke_test = os.path.join(local_root, 'pkg', 'kernel', 'tool', - 'smoke_test_quick.dart') + windows = utils.GuessOS() == 'win32' + if windows: + dart += '.exe' - windows = utils.GuessOS() == 'win32' - if windows: - dart += '.exe' + if not os.path.isfile(dart): + print('WARNING: dart not found: %s' % dart) + return [] - if not os.path.isfile(dart): - print('WARNING: dart not found: %s' % dart) - return [] + if not os.path.isfile(test_helper): + print('WARNING: CFE et al presubmit_helper not found: %s' % test_helper) + return [] - if not os.path.isfile(smoke_test): - print('WARNING: kernel smoke test not found: %s' % smoke_test) - return [] + args = [dart, test_helper, input_api.PresubmitLocalPath()] + process = subprocess.Popen(args, + stdout=subprocess.PIPE, + stdin=subprocess.PIPE) + outs, _ = process.communicate() - args = [dart, smoke_test] - process = subprocess.Popen( - args, stdout=subprocess.PIPE, stdin=subprocess.PIPE) - outs, _ = process.communicate() - - if process.returncode != 0: - return [output_api.PresubmitError( - 'Kernel smoke test failure(s):', - long_text=outs)] + if process.returncode != 0: + return [ + output_api.PresubmitError('CFE et al presubmit script failure(s):', + long_text=outs) + ] return []