blob: 3ba6203787952713b7f2f3f5566169d652d3cc08 [file] [log] [blame]
// Copyright (c) 2021, 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.
// NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
//
// Instead modify 'pkg/front_end/messages.yaml' and run
// 'pkg/front_end/tool/fasta generate-messages' to update.
// ignore_for_file: lines_longer_than_80_chars
part of _fe_analyzer_shared.messages.codes;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeAbstractClassConstructorTearOff =
messageAbstractClassConstructorTearOff;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateAbstractClassInstantiation =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeAbstractClassInstantiation =
const Code<Message Function(String name)>(
"AbstractClassInstantiation",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeAbstractExtensionField = messageAbstractExtensionField;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageAbstractExtensionField = const MessageCode(
"AbstractExtensionField",
analyzerCodes: <String>["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<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeAbstractFinalInterfaceClass =
messageAbstractFinalInterfaceClass;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeAbstractNotSync = messageAbstractNotSync;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageAbstractNotSync = const MessageCode(
"AbstractNotSync",
analyzerCodes: <String>["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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)>
codeAbstractRedirectedClassInstantiation =
const Code<Message Function(String name)>(
"AbstractRedirectedClassInstantiation",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateAccessError =
const Template<Message Function(String name)>(
"AccessError",
problemMessageTemplate: r"""Access error: '#name'.""",
withArguments: _withArgumentsAccessError,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeAccessError =
const Code<Message Function(String name)>(
"AccessError",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeAnnotationOnFunctionTypeTypeVariable =
messageAnnotationOnFunctionTypeTypeVariable;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeAnonymousBreakTargetOutsideFunction =
messageAnonymousBreakTargetOutsideFunction;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageAnonymousBreakTargetOutsideFunction =
const MessageCode(
"AnonymousBreakTargetOutsideFunction",
analyzerCodes: <String>["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<Null> codeAnonymousContinueTargetOutsideFunction =
messageAnonymousContinueTargetOutsideFunction;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageAnonymousContinueTargetOutsideFunction =
const MessageCode(
"AnonymousContinueTargetOutsideFunction",
analyzerCodes: <String>["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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(int codePoint)> codeAsciiControlCharacter =
const Code<Message Function(int codePoint)>(
"AsciiControlCharacter",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeAwaitAsIdentifier = messageAwaitAsIdentifier;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageAwaitAsIdentifier = const MessageCode(
"AwaitAsIdentifier",
analyzerCodes: <String>["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<Null> codeAwaitForNotAsync = messageAwaitForNotAsync;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageAwaitForNotAsync = const MessageCode(
"AwaitForNotAsync",
analyzerCodes: <String>["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<Null> codeAwaitInLateLocalInitializer =
messageAwaitInLateLocalInitializer;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeAwaitNotAsync = messageAwaitNotAsync;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageAwaitNotAsync = const MessageCode(
"AwaitNotAsync",
analyzerCodes: <String>["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<Null> codeAwaitOfExtensionTypeNotFuture =
messageAwaitOfExtensionTypeNotFuture;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageAwaitOfExtensionTypeNotFuture = const MessageCode(
"AwaitOfExtensionTypeNotFuture",
analyzerCodes: <String>["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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)>
codeBaseClassImplementedOutsideOfLibrary =
const Code<Message Function(String name)>(
"BaseClassImplementedOutsideOfLibrary",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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'.""",
);
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)>
codeBaseMixinImplementedOutsideOfLibrary =
const Code<Message Function(String name)>(
"BaseMixinImplementedOutsideOfLibrary",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name, String name2)>
templateBaseOrFinalClassImplementedOutsideOfLibraryCause =
const Template<Message Function(String name, String name2)>(
"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<Message Function(String name, String name2)>
codeBaseOrFinalClassImplementedOutsideOfLibraryCause =
const Code<Message Function(String name, String name2)>(
"BaseOrFinalClassImplementedOutsideOfLibraryCause",
severity: Severity.context,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsBaseOrFinalClassImplementedOutsideOfLibraryCause(
String name, String name2) {
if (name.isEmpty) throw 'No name provided';
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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String string, String string2)>
codeBinaryOperatorWrittenOut =
const Code<Message Function(String string, String string2)>(
"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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name, String name2)>
codeBoundIssueViaCycleNonSimplicity =
const Code<Message Function(String name, String name2)>(
"BoundIssueViaCycleNonSimplicity",
analyzerCodes: <String>["NOT_INSTANTIATED_BOUND"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsBoundIssueViaCycleNonSimplicity(
String name, String name2) {
if (name.isEmpty) throw 'No name provided';
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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeBoundIssueViaLoopNonSimplicity =
const Code<Message Function(String name)>(
"BoundIssueViaLoopNonSimplicity",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateBoundIssueViaRawTypeWithNonSimpleBounds =
const Template<Message Function(String name)>(
"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<Message Function(String name)>
codeBoundIssueViaRawTypeWithNonSimpleBounds =
const Code<Message Function(String name)>(
"BoundIssueViaRawTypeWithNonSimpleBounds",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateBreakTargetOutsideFunction =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeBreakTargetOutsideFunction =
const Code<Message Function(String name)>(
"BreakTargetOutsideFunction",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(Token token)> templateBuiltInIdentifierAsType =
const Template<Message Function(Token token)>(
"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<Message Function(Token token)> codeBuiltInIdentifierAsType =
const Code<Message Function(Token token)>(
"BuiltInIdentifierAsType",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(Token token)>
templateBuiltInIdentifierInDeclaration =
const Template<Message Function(Token token)>(
"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<Message Function(Token token)> codeBuiltInIdentifierInDeclaration =
const Code<Message Function(Token token)>(
"BuiltInIdentifierInDeclaration",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateCandidateFoundIsDefaultConstructor =
const Template<Message Function(String name)>(
"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<Message Function(String name)>
codeCandidateFoundIsDefaultConstructor =
const Code<Message Function(String name)>(
"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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateCannotAssignToConstVariable =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeCannotAssignToConstVariable =
const Code<Message Function(String name)>(
"CannotAssignToConstVariable",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeCannotAssignToExtensionThis =
messageCannotAssignToExtensionThis;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageCannotAssignToExtensionThis = const MessageCode(
"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<Message Function(String name)>(
"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<Message Function(String name)> codeCannotAssignToFinalVariable =
const Code<Message Function(String name)>(
"CannotAssignToFinalVariable",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeCannotAssignToParenthesizedExpression =
messageCannotAssignToParenthesizedExpression;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageCannotAssignToParenthesizedExpression =
const MessageCode(
"CannotAssignToParenthesizedExpression",
analyzerCodes: <String>["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<Null> codeCannotAssignToSuper = messageCannotAssignToSuper;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageCannotAssignToSuper = const MessageCode(
"CannotAssignToSuper",
analyzerCodes: <String>["NOT_AN_LVALUE"],
problemMessage: r"""Can't assign to super.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeCannotAssignToTypeLiteral =
messageCannotAssignToTypeLiteral;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String string)>
templateCannotReadSdkSpecification =
const Template<Message Function(String string)>(
"CannotReadSdkSpecification",
problemMessageTemplate:
r"""Unable to read the 'libraries.json' specification file:
#string.""",
withArguments: _withArgumentsCannotReadSdkSpecification,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String string)> codeCannotReadSdkSpecification =
const Code<Message Function(String string)>(
"CannotReadSdkSpecification",
);
// 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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateCantHaveNamedParameters =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeCantHaveNamedParameters =
const Code<Message Function(String name)>(
"CantHaveNamedParameters",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateCantHaveOptionalParameters =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeCantHaveOptionalParameters =
const Code<Message Function(String name)>(
"CantHaveOptionalParameters",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeCantInferPackagesFromManyInputs =
messageCantInferPackagesFromManyInputs;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeCantInferPackagesFromPackageUri =
messageCantInferPackagesFromPackageUri;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateCantInferReturnTypeDueToNoCombinedSignature =
const Template<Message Function(String name)>(
"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<Message Function(String name)>
codeCantInferReturnTypeDueToNoCombinedSignature =
const Code<Message Function(String name)>(
"CantInferReturnTypeDueToNoCombinedSignature",
analyzerCodes: <String>["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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String string)> codeCantInferTypeDueToCircularity =
const Code<Message Function(String string)>(
"CantInferTypeDueToCircularity",
analyzerCodes: <String>["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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)>
codeCantInferTypeDueToNoCombinedSignature =
const Code<Message Function(String name)>(
"CantInferTypeDueToNoCombinedSignature",
analyzerCodes: <String>["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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)>
codeCantInferTypesDueToNoCombinedSignature =
const Code<Message Function(String name)>(
"CantInferTypesDueToNoCombinedSignature",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(Uri uri_, String string)> templateCantReadFile =
const Template<Message Function(Uri uri_, String string)>(
"CantReadFile",
problemMessageTemplate: r"""Error when reading '#uri': #string""",
withArguments: _withArgumentsCantReadFile,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(Uri uri_, String string)> codeCantReadFile =
const Code<Message Function(Uri uri_, String string)>(
"CantReadFile",
analyzerCodes: <String>["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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeCantUseClassAsMixin =
const Code<Message Function(String name)>(
"CantUseClassAsMixin",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(Token token)>
templateCantUseControlFlowOrSpreadAsConstant =
const Template<Message Function(Token token)>(
"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<Message Function(Token token)>
codeCantUseControlFlowOrSpreadAsConstant =
const Code<Message Function(Token token)>(
"CantUseControlFlowOrSpreadAsConstant",
analyzerCodes: <String>["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,
},
);
}
// 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.
""",
withArguments: _withArgumentsCantUseDeferredPrefixAsConstant,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(Token token)> codeCantUseDeferredPrefixAsConstant =
const Code<Message Function(Token token)>(
"CantUseDeferredPrefixAsConstant",
analyzerCodes: <String>["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.
""",
arguments: {
'lexeme': token,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeCantUsePrefixAsExpression =
messageCantUsePrefixAsExpression;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageCantUsePrefixAsExpression = const MessageCode(
"CantUsePrefixAsExpression",
analyzerCodes: <String>["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<Null> codeCantUsePrefixWithNullAware =
messageCantUsePrefixWithNullAware;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageCantUsePrefixWithNullAware = const MessageCode(
"CantUsePrefixWithNullAware",
analyzerCodes: <String>["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<Null> 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'.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeCatchSyntaxExtraParameters =
messageCatchSyntaxExtraParameters;
// 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'.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeClassImplementsDeferredClass =
messageClassImplementsDeferredClass;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageClassImplementsDeferredClass = const MessageCode(
"ClassImplementsDeferredClass",
analyzerCodes: <String>["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<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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'.""",
);
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name, String name2)>
codeCombinedMemberSignatureFailed =
const Code<Message Function(String name, String name2)>(
"CombinedMemberSignatureFailed",
analyzerCodes: <String>["INCONSISTENT_INHERITANCE"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsCombinedMemberSignatureFailed(String name, String name2) {
if (name.isEmpty) throw 'No name provided';
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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeCompilingWithoutSoundNullSafety =
messageCompilingWithoutSoundNullSafety;
// 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""",
);
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String string, String string2)>
codeConflictingModifiers =
const Code<Message Function(String string, String string2)>(
"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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateConflictsWithConstructor =
const Template<Message Function(String name)>(
"ConflictsWithConstructor",
problemMessageTemplate: r"""Conflicts with constructor '#name'.""",
withArguments: _withArgumentsConflictsWithConstructor,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeConflictsWithConstructor =
const Code<Message Function(String name)>(
"ConflictsWithConstructor",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateConflictsWithFactory =
const Template<Message Function(String name)>(
"ConflictsWithFactory",
problemMessageTemplate: r"""Conflicts with factory '#name'.""",
withArguments: _withArgumentsConflictsWithFactory,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeConflictsWithFactory =
const Code<Message Function(String name)>(
"ConflictsWithFactory",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateConflictsWithImplicitSetter =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeConflictsWithImplicitSetter =
const Code<Message Function(String name)>(
"ConflictsWithImplicitSetter",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateConflictsWithMember =
const Template<Message Function(String name)>(
"ConflictsWithMember",
problemMessageTemplate: r"""Conflicts with member '#name'.""",
withArguments: _withArgumentsConflictsWithMember,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeConflictsWithMember =
const Code<Message Function(String name)>(
"ConflictsWithMember",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateConflictsWithSetter =
const Template<Message Function(String name)>(
"ConflictsWithSetter",
problemMessageTemplate: r"""Conflicts with setter '#name'.""",
withArguments: _withArgumentsConflictsWithSetter,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeConflictsWithSetter =
const Code<Message Function(String name)>(
"ConflictsWithSetter",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateConflictsWithTypeVariable =
const Template<Message Function(String name)>(
"ConflictsWithTypeVariable",
problemMessageTemplate: r"""Conflicts with type variable '#name'.""",
withArguments: _withArgumentsConflictsWithTypeVariable,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeConflictsWithTypeVariable =
const Code<Message Function(String name)>(
"ConflictsWithTypeVariable",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConflictsWithTypeVariableCause =
messageConflictsWithTypeVariableCause;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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).""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstConstructorLateFinalFieldCause =
messageConstConstructorLateFinalFieldCause;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstConstructorNonFinalField =
messageConstConstructorNonFinalField;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstConstructorNonFinalField = const MessageCode(
"ConstConstructorNonFinalField",
analyzerCodes: <String>["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<Null> codeConstConstructorNonFinalFieldCause =
messageConstConstructorNonFinalFieldCause;
// 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'.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstConstructorRedirectionToNonConst =
messageConstConstructorRedirectionToNonConst;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstConstructorWithBody = messageConstConstructorWithBody;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstConstructorWithBody = const MessageCode(
"ConstConstructorWithBody",
analyzerCodes: <String>["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<Null> codeConstConstructorWithNonConstSuper =
messageConstConstructorWithNonConstSuper;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstConstructorWithNonConstSuper = const MessageCode(
"ConstConstructorWithNonConstSuper",
analyzerCodes: <String>["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<Null> codeConstEvalCircularity = messageConstEvalCircularity;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstEvalCircularity = const MessageCode(
"ConstEvalCircularity",
analyzerCodes: <String>["RECURSIVE_COMPILE_TIME_CONSTANT"],
problemMessage: r"""Constant expression depends on itself.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstEvalContext = messageConstEvalContext;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstEvalContext = const MessageCode(
"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.
""",
withArguments: _withArgumentsConstEvalDeferredLibrary,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String nameOKEmpty)> codeConstEvalDeferredLibrary =
const Code<Message Function(String nameOKEmpty)>(
"ConstEvalDeferredLibrary",
analyzerCodes: <String>[
"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.
""",
arguments: {
'nameOKEmpty': nameOKEmpty,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String string)> templateConstEvalError =
const Template<Message Function(String string)>(
"ConstEvalError",
problemMessageTemplate: r"""Error evaluating constant expression: #string""",
withArguments: _withArgumentsConstEvalError,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String string)> codeConstEvalError =
const Code<Message Function(String string)>(
"ConstEvalError",
);
// 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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstEvalExtension = messageConstEvalExtension;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstEvalExtension = const MessageCode(
"ConstEvalExtension",
analyzerCodes: <String>["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<Null> codeConstEvalExternalConstructor =
messageConstEvalExternalConstructor;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstEvalFailedAssertion = messageConstEvalFailedAssertion;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstEvalFailedAssertion = const MessageCode(
"ConstEvalFailedAssertion",
analyzerCodes: <String>["CONST_EVAL_THROWS_EXCEPTION"],
problemMessage: r"""This assertion failed.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String stringOKEmpty)>
templateConstEvalFailedAssertionWithMessage =
const Template<Message Function(String stringOKEmpty)>(
"ConstEvalFailedAssertionWithMessage",
problemMessageTemplate:
r"""This assertion failed with message: #stringOKEmpty""",
withArguments: _withArgumentsConstEvalFailedAssertionWithMessage,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String stringOKEmpty)>
codeConstEvalFailedAssertionWithMessage =
const Code<Message Function(String stringOKEmpty)>(
"ConstEvalFailedAssertionWithMessage",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstEvalFailedAssertionWithNonStringMessage =
messageConstEvalFailedAssertionWithNonStringMessage;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstEvalFailedAssertionWithNonStringMessage =
const MessageCode(
"ConstEvalFailedAssertionWithNonStringMessage",
analyzerCodes: <String>["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<Message Function(String nameOKEmpty)>
templateConstEvalGetterNotFound =
const Template<Message Function(String nameOKEmpty)>(
"ConstEvalGetterNotFound",
problemMessageTemplate: r"""Variable get not found: '#nameOKEmpty'""",
withArguments: _withArgumentsConstEvalGetterNotFound,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String nameOKEmpty)> codeConstEvalGetterNotFound =
const Code<Message Function(String nameOKEmpty)>(
"ConstEvalGetterNotFound",
);
// 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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String nameOKEmpty)>
templateConstEvalInvalidStaticInvocation =
const Template<Message Function(String nameOKEmpty)>(
"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<Message Function(String nameOKEmpty)>
codeConstEvalInvalidStaticInvocation =
const Code<Message Function(String nameOKEmpty)>(
"ConstEvalInvalidStaticInvocation",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String string, String string2, String string3)>
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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String string, String string2, String string3)>
codeConstEvalNegativeShift =
const Code<Message Function(String string, String string2, String string3)>(
"ConstEvalNegativeShift",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsConstEvalNegativeShift(
String string, String string2, String string3) {
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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String nameOKEmpty)>
codeConstEvalNonConstantVariableGet =
const Code<Message Function(String nameOKEmpty)>(
"ConstEvalNonConstantVariableGet",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstEvalNotListOrSetInSpread =
messageConstEvalNotListOrSetInSpread;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstEvalNotListOrSetInSpread = const MessageCode(
"ConstEvalNotListOrSetInSpread",
analyzerCodes: <String>["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<Null> codeConstEvalNotMapInSpread = messageConstEvalNotMapInSpread;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstEvalNotMapInSpread = const MessageCode(
"ConstEvalNotMapInSpread",
analyzerCodes: <String>["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<Null> codeConstEvalNullValue = messageConstEvalNullValue;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstEvalNullValue = const MessageCode(
"ConstEvalNullValue",
analyzerCodes: <String>["CONST_EVAL_THROWS_EXCEPTION"],
problemMessage: r"""Null value during constant evaluation.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstEvalStartingPoint = messageConstEvalStartingPoint;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstEvalStartingPoint = const MessageCode(
"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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String string, String string2)>
codeConstEvalTruncateError =
const Code<Message Function(String string, String string2)>(
"ConstEvalTruncateError",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String stringOKEmpty)>
templateConstEvalUnhandledCoreException =
const Template<Message Function(String stringOKEmpty)>(
"ConstEvalUnhandledCoreException",
problemMessageTemplate: r"""Unhandled core exception: #stringOKEmpty""",
withArguments: _withArgumentsConstEvalUnhandledCoreException,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String stringOKEmpty)>
codeConstEvalUnhandledCoreException =
const Code<Message Function(String stringOKEmpty)>(
"ConstEvalUnhandledCoreException",
);
// 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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String string, String string2)>
codeConstEvalZeroDivisor =
const Code<Message Function(String string, String string2)>(
"ConstEvalZeroDivisor",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstFactoryRedirectionToNonConst =
messageConstFactoryRedirectionToNonConst;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstFactoryRedirectionToNonConst = const MessageCode(
"ConstFactoryRedirectionToNonConst",
analyzerCodes: <String>["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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeConstFieldWithoutInitializer =
const Code<Message Function(String name)>(
"ConstFieldWithoutInitializer",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstInstanceField = messageConstInstanceField;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstInstanceField = const MessageCode(
"ConstInstanceField",
analyzerCodes: <String>["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<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstructorCyclic = messageConstructorCyclic;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstructorCyclic = const MessageCode(
"ConstructorCyclic",
analyzerCodes: <String>["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<Message Function(String name)>
templateConstructorInitializeSameInstanceVariableSeveralTimes =
const Template<Message Function(String name)>(
"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<Message Function(String name)>
codeConstructorInitializeSameInstanceVariableSeveralTimes =
const Code<Message Function(String name)>(
"ConstructorInitializeSameInstanceVariableSeveralTimes",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateConstructorNotFound =
const Template<Message Function(String name)>(
"ConstructorNotFound",
problemMessageTemplate: r"""Couldn't find constructor '#name'.""",
withArguments: _withArgumentsConstructorNotFound,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeConstructorNotFound =
const Code<Message Function(String name)>(
"ConstructorNotFound",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstructorNotSync = messageConstructorNotSync;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageConstructorNotSync = const MessageCode(
"ConstructorNotSync",
analyzerCodes: <String>["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<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstructorWithReturnType =
messageConstructorWithReturnType;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstructorWithTypeArguments =
messageConstructorWithTypeArguments;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeConstructorWithTypeParameters =
messageConstructorWithTypeParameters;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateConstructorWithWrongNameContext =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeConstructorWithWrongNameContext =
const Code<Message Function(String name)>(
"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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeContinueLabelInvalid = messageContinueLabelInvalid;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageContinueLabelInvalid = const MessageCode(
"ContinueLabelInvalid",
analyzerCodes: <String>["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<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateContinueTargetOutsideFunction =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeContinueTargetOutsideFunction =
const Code<Message Function(String name)>(
"ContinueTargetOutsideFunction",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeContinueWithoutLabelInCase =
messageContinueWithoutLabelInCase;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String string, String string2)>
templateCouldNotParseUri =
const Template<Message Function(String string, String string2)>(
"CouldNotParseUri",
problemMessageTemplate: r"""Couldn't parse URI '#string':
#string2.""",
withArguments: _withArgumentsCouldNotParseUri,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String string, String string2)>
codeCouldNotParseUri =
const Code<Message Function(String string, String string2)>(
"CouldNotParseUri",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name, String string)>
templateCycleInTypeVariables =
const Template<Message Function(String name, String string)>(
"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<Message Function(String name, String string)>
codeCycleInTypeVariables =
const Code<Message Function(String name, String string)>(
"CycleInTypeVariables",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateCyclicClassHierarchy =
const Template<Message Function(String name)>(
"CyclicClassHierarchy",
problemMessageTemplate: r"""'#name' is a supertype of itself.""",
withArguments: _withArgumentsCyclicClassHierarchy,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeCyclicClassHierarchy =
const Code<Message Function(String name)>(
"CyclicClassHierarchy",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateCyclicRedirectingFactoryConstructors =
const Template<Message Function(String name)>(
"CyclicRedirectingFactoryConstructors",
problemMessageTemplate: r"""Cyclic definition of factory '#name'.""",
withArguments: _withArgumentsCyclicRedirectingFactoryConstructors,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)>
codeCyclicRedirectingFactoryConstructors =
const Code<Message Function(String name)>(
"CyclicRedirectingFactoryConstructors",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeCyclicRepresentationDependency =
messageCyclicRepresentationDependency;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateCyclicTypedef =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeCyclicTypedef =
const Code<Message Function(String name)>(
"CyclicTypedef",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeDartFfiLibraryInDart2Wasm =
messageDartFfiLibraryInDart2Wasm;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageDartFfiLibraryInDart2Wasm = const MessageCode(
"DartFfiLibraryInDart2Wasm",
problemMessage: r"""'dart:ffi' can't be imported when compiling to Wasm.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name, String string)>
templateDebugTrace =
const Template<Message Function(String name, String string)>(
"DebugTrace",
problemMessageTemplate: r"""Fatal '#name' at:
#string""",
withArguments: _withArgumentsDebugTrace,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name, String string)> codeDebugTrace =
const Code<Message Function(String name, String string)>(
"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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeDeclaredMemberConflictsWithInheritedMember =
messageDeclaredMemberConflictsWithInheritedMember;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageDeclaredMemberConflictsWithInheritedMember =
const MessageCode(
"DeclaredMemberConflictsWithInheritedMember",
analyzerCodes: <String>["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<Null> codeDeclaredMemberConflictsWithInheritedMemberCause =
messageDeclaredMemberConflictsWithInheritedMemberCause;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeDeclaredMemberConflictsWithInheritedMembersCause =
messageDeclaredMemberConflictsWithInheritedMembersCause;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeDeclaredMemberConflictsWithOverriddenMembersCause =
messageDeclaredMemberConflictsWithOverriddenMembersCause;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeDefaultInSwitchExpression =
messageDefaultInSwitchExpression;
// 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 `_`.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateDefaultValueInRedirectingFactoryConstructor =
const Template<Message Function(String name)>(
"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<Message Function(String name)>
codeDefaultValueInRedirectingFactoryConstructor =
const Code<Message Function(String name)>(
"DefaultValueInRedirectingFactoryConstructor",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeDeferredExtensionImport =
const Code<Message Function(String name)>(
"DeferredExtensionImport",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
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,
},
);
}
// 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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeDeferredPrefixDuplicated =
const Code<Message Function(String name)>(
"DeferredPrefixDuplicated",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateDeferredPrefixDuplicatedCause =
const Template<Message Function(String name)>(
"DeferredPrefixDuplicatedCause",
problemMessageTemplate: r"""'#name' is used here.""",
withArguments: _withArgumentsDeferredPrefixDuplicatedCause,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeDeferredPrefixDuplicatedCause =
const Code<Message Function(String name)>(
"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,
},
);
}
// 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,
#num2%12.3 bytes/ms, and
#num3%12.3 ms/libraries.""",
withArguments: _withArgumentsDillOutlineSummary,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<
Message Function(int count, int count2, num _num1, num _num2,
num _num3)> codeDillOutlineSummary = const Code<
Message Function(int count, int count2, num _num1, num _num2, num _num3)>(
"DillOutlineSummary",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsDillOutlineSummary(
int count, int count2, num _num1, num _num2, num _num3) {
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,
${num2} bytes/ms, and
${num3} ms/libraries.""",
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,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(String name)> codeDirectCycleInTypeVariables =
const Code<Message Function(String name)>(
"DirectCycleInTypeVariables",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeDirectiveAfterDeclaration =
messageDirectiveAfterDeclaration;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateDuplicateLabelInSwitchStatement =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeDuplicateLabelInSwitchStatement =
const Code<Message Function(String name)>(
"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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateDuplicatePatternAssignmentVariable =
const Template<Message Function(String name)>(
"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<Message Function(String name)>
codeDuplicatePatternAssignmentVariable =
const Code<Message Function(String name)>(
"DuplicatePatternAssignmentVariable",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeDuplicatePatternAssignmentVariableContext =
messageDuplicatePatternAssignmentVariableContext;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)>
templateDuplicateRecordPatternField =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeDuplicateRecordPatternField =
const Code<Message Function(String name)>(
"DuplicateRecordPatternField",
analyzerCodes: <String>["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,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeDuplicateRecordPatternFieldContext =
messageDuplicateRecordPatternFieldContext;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeDuplicateRestElementInPattern =
messageDuplicateRestElementInPattern;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const MessageCode messageDuplicateRestElementInPattern = const MessageCode(
"DuplicateRestElementInPattern",
analyzerCodes: <String>["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<Null> codeDuplicateRestElementInPatternContext =
messageDuplicateRestElementInPatternContext;
// 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.""",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(String name)> templateDuplicatedDeclaration =
const Template<Message Function(String name)>(
"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<Message Function(String name)> codeDuplicatedDeclaration =
const Code<Message Function(String name)>(
"DuplicatedDeclaration",
analyzerCodes: <String>["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);