| // Copyright (c) 2018, 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 Template<Message Function(String name)> |
| templateAbstractClassInstantiation = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| 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", templateAbstractClassInstantiation, |
| 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, |
| message: """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, |
| message: r"""Members of classes can't be declared to be 'abstract'.""", |
| tip: |
| 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", |
| message: r"""Extension fields can't be declared 'abstract'.""", |
| tip: r"""Try removing the 'abstract' 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"], |
| message: 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)>( |
| messageTemplate: |
| 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", |
| templateAbstractRedirectedClassInstantiation, |
| 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, |
| message: |
| """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> codeAbstractStaticField = messageAbstractStaticField; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageAbstractStaticField = const MessageCode( |
| "AbstractStaticField", |
| message: r"""Static fields can't be declared 'abstract'.""", |
| tip: 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)>( |
| messageTemplate: 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", |
| templateAccessError, |
| ); |
| |
| // 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, |
| message: """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, |
| message: 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", |
| message: |
| 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> 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"], |
| message: 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"], |
| message: 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)>( |
| messageTemplate: |
| 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", templateAsciiControlCharacter, |
| 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, |
| message: |
| """The control character ${unicode} can only be used in strings and comments.""", |
| arguments: {'codePoint': 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", |
| message: 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", |
| message: 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"], |
| message: |
| 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"], |
| message: |
| r"""The asynchronous for-in can only be used in functions marked with 'async' or 'async*'.""", |
| tip: |
| 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", |
| message: |
| 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"], |
| message: r"""'await' can only be used in 'async' or 'async*' methods."""); |
| |
| // 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)>( |
| messageTemplate: |
| 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'.""", |
| tipTemplate: |
| 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", |
| templateBoundIssueViaCycleNonSimplicity, |
| 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, |
| message: |
| """Generic type '${name}' can't be used without type arguments in the bounds of its own type variables. It is referenced indirectly through '${name2}'.""", |
| tip: """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)>( |
| messageTemplate: |
| r"""Generic type '#name' can't be used without type arguments in the bounds of its own type variables.""", |
| tipTemplate: 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", |
| templateBoundIssueViaLoopNonSimplicity, |
| 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, |
| message: |
| """Generic type '${name}' can't be used without type arguments in the bounds of its own type variables.""", |
| tip: """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)>( |
| messageTemplate: |
| r"""Generic type '#name' can't be used without type arguments in a type variable bound.""", |
| tipTemplate: 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", |
| templateBoundIssueViaRawTypeWithNonSimpleBounds, |
| 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, |
| message: |
| """Generic type '${name}' can't be used without type arguments in a type variable bound.""", |
| tip: """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, |
| message: |
| r"""A break statement can't be used outside of a loop or switch statement.""", |
| tip: 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)>( |
| messageTemplate: 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", templateBreakTargetOutsideFunction, |
| 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, |
| message: """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)>( |
| messageTemplate: |
| 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", templateBuiltInIdentifierAsType, |
| 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, |
| message: |
| """The built-in identifier '${lexeme}' can't be used as a type.""", |
| arguments: {'token': 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)>( |
| messageTemplate: 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", |
| templateBuiltInIdentifierInDeclaration, |
| 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, |
| message: """Can't use '${lexeme}' as a name here.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeBytecodeLimitExceededTooManyArguments = |
| messageBytecodeLimitExceededTooManyArguments; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageBytecodeLimitExceededTooManyArguments = |
| const MessageCode("BytecodeLimitExceededTooManyArguments", |
| message: r"""Dart bytecode limit exceeded: too many arguments."""); |
| |
| // 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, |
| message: 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)>( |
| messageTemplate: |
| 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", |
| templateCandidateFoundIsDefaultConstructor, |
| 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, |
| message: |
| """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)>( |
| messageTemplate: 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", |
| templateCannotAssignToConstVariable, |
| ); |
| |
| // 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, |
| message: """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", |
| message: 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)>( |
| messageTemplate: 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", |
| templateCannotAssignToFinalVariable, |
| ); |
| |
| // 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, |
| message: """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"], |
| message: 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"], |
| message: 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", |
| message: 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)>( |
| messageTemplate: |
| 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", |
| templateCannotReadSdkSpecification, |
| ); |
| |
| // 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, |
| message: """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", |
| message: |
| 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", |
| message: |
| r"""Not enough type information to disambiguate between literal set and literal map.""", |
| tip: |
| r"""Try providing type arguments for the literal explicitly to disambiguate it."""); |
| |
| // 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", |
| message: r"""Can't infer a packages file when compiling multiple inputs.""", |
| tip: 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", |
| message: r"""Can't infer a packages file from an input 'package:*' URI.""", |
| tip: 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)> |
| templateCantInferReturnTypeDueToInconsistentOverrides = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Can't infer a return type for '#name' as some of the inherited members have different types.""", |
| tipTemplate: r"""Try adding an explicit type.""", |
| withArguments: |
| _withArgumentsCantInferReturnTypeDueToInconsistentOverrides); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeCantInferReturnTypeDueToInconsistentOverrides = |
| const Code<Message Function(String name)>( |
| "CantInferReturnTypeDueToInconsistentOverrides", |
| templateCantInferReturnTypeDueToInconsistentOverrides, |
| analyzerCodes: <String>["INVALID_METHOD_OVERRIDE"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsCantInferReturnTypeDueToInconsistentOverrides( |
| String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeCantInferReturnTypeDueToInconsistentOverrides, |
| message: |
| """Can't infer a return type for '${name}' as some of the inherited members have different types.""", |
| tip: """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)>( |
| messageTemplate: |
| r"""Can't infer the type of '#string': circularity found during type inference.""", |
| tipTemplate: 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", templateCantInferTypeDueToCircularity, |
| 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, |
| message: |
| """Can't infer the type of '${string}': circularity found during type inference.""", |
| tip: """Specify the type explicitly.""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateCantInferTypeDueToInconsistentOverrides = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Can't infer a type for '#name' as some of the inherited members have different types.""", |
| tipTemplate: r"""Try adding an explicit type.""", |
| withArguments: _withArgumentsCantInferTypeDueToInconsistentOverrides); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeCantInferTypeDueToInconsistentOverrides = |
| const Code<Message Function(String name)>( |
| "CantInferTypeDueToInconsistentOverrides", |
| templateCantInferTypeDueToInconsistentOverrides, |
| analyzerCodes: <String>["INVALID_METHOD_OVERRIDE"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsCantInferTypeDueToInconsistentOverrides(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeCantInferTypeDueToInconsistentOverrides, |
| message: |
| """Can't infer a type for '${name}' as some of the inherited members have different types.""", |
| tip: """Try adding an explicit type.""", |
| 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)>( |
| messageTemplate: 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", templateCantReadFile, |
| 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, |
| message: """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(Token token)> |
| templateCantUseControlFlowOrSpreadAsConstant = |
| const Template<Message Function(Token token)>( |
| messageTemplate: |
| 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", |
| templateCantUseControlFlowOrSpreadAsConstant, |
| 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, |
| message: """'${lexeme}' is not supported in constant expressions.""", |
| arguments: {'token': 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)>( |
| messageTemplate: |
| r"""'#lexeme' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", |
| tipTemplate: |
| 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", |
| templateCantUseDeferredPrefixAsConstant, |
| 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, |
| message: |
| """'${lexeme}' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", |
| tip: """Try moving the constant from the deferred library, or removing 'deferred' from the import. |
| """, |
| arguments: {'token': 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"], |
| message: 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"], |
| message: r"""A prefix can't be used with null-aware operators.""", |
| tip: 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, |
| message: |
| r"""'catch' must be followed by '(identifier)' or '(identifier, identifier)'.""", |
| tip: |
| 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, |
| message: |
| r"""'catch' must be followed by '(identifier)' or '(identifier, identifier)'.""", |
| tip: |
| 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> codeClassInClass = messageClassInClass; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageClassInClass = const MessageCode("ClassInClass", |
| index: 53, |
| message: r"""Classes can't be declared inside other classes.""", |
| tip: 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, |
| message: r"""For-in loops use 'in' rather than a colon.""", |
| tip: 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)>( |
| messageTemplate: |
| r"""Class '#name' inherits multiple members named '#name2' with incompatible signatures.""", |
| tipTemplate: 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", templateCombinedMemberSignatureFailed, |
| 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, |
| message: |
| """Class '${name}' inherits multiple members named '${name2}' with incompatible signatures.""", |
| tip: """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 Template< |
| Message Function( |
| String string, |
| String |
| string2)> templateConflictingModifiers = const Template< |
| Message Function(String string, String string2)>( |
| messageTemplate: |
| r"""Members can't be declared to be both '#string' and '#string2'.""", |
| tipTemplate: 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", templateConflictingModifiers, |
| 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, |
| message: |
| """Members can't be declared to be both '${string}' and '${string2}'.""", |
| tip: """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)>( |
| messageTemplate: 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", templateConflictsWithConstructor, |
| 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, |
| message: """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)>( |
| messageTemplate: 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", |
| templateConflictsWithFactory, |
| ); |
| |
| // 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, |
| message: """Conflicts with factory '${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)>( |
| messageTemplate: 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", templateConflictsWithMember, |
| 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, |
| message: """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)>( |
| messageTemplate: 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", templateConflictsWithSetter, |
| 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, |
| message: """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)>( |
| messageTemplate: 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", templateConflictsWithTypeVariable, |
| 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, |
| message: """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, |
| message: 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, |
| message: r"""Members can't be declared to be both 'const' and 'final'.""", |
| tip: 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, |
| message: r"""Classes can't be declared to be 'const'.""", |
| tip: |
| 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, |
| message: r"""Field is late, but 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", |
| message: r"""Constructor is marked 'const' so fields can't be late."""); |
| |
| // 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"], |
| message: 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, |
| message: 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", |
| message: |
| 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"], |
| message: r"""A const constructor can't have a body.""", |
| tip: 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"], |
| message: |
| 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"], |
| message: 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", message: r"""While analyzing:"""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String |
| name)> templateConstEvalDeferredLibrary = const Template< |
| Message Function(String name)>( |
| messageTemplate: |
| r"""'#name' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", |
| tipTemplate: |
| 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 name)> codeConstEvalDeferredLibrary = |
| const Code<Message Function(String name)>( |
| "ConstEvalDeferredLibrary", templateConstEvalDeferredLibrary, |
| analyzerCodes: <String>[ |
| "NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY" |
| ]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsConstEvalDeferredLibrary(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeConstEvalDeferredLibrary, |
| message: |
| """'${name}' can't be used in a constant expression because it's marked as 'deferred' which means it isn't available until loaded.""", |
| tip: """Try moving the constant from the deferred library, or removing 'deferred' from the import. |
| """, |
| arguments: {'name': name}); |
| } |
| |
| // 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"], |
| message: |
| r"""Extension operations can't be used 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"], |
| message: r"""This assertion failed."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> |
| templateConstEvalFailedAssertionWithMessage = |
| const Template<Message Function(String string)>( |
| messageTemplate: r"""This assertion failed with message: #string""", |
| withArguments: _withArgumentsConstEvalFailedAssertionWithMessage); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> |
| codeConstEvalFailedAssertionWithMessage = |
| const Code<Message Function(String string)>( |
| "ConstEvalFailedAssertionWithMessage", |
| templateConstEvalFailedAssertionWithMessage, |
| analyzerCodes: <String>["CONST_EVAL_THROWS_EXCEPTION"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsConstEvalFailedAssertionWithMessage(String string) { |
| if (string.isEmpty) throw 'No string provided'; |
| return new Message(codeConstEvalFailedAssertionWithMessage, |
| message: """This assertion failed with message: ${string}""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String |
| name)> templateConstEvalInvalidStaticInvocation = const Template< |
| Message Function(String name)>( |
| messageTemplate: |
| r"""The invocation of '#name' 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 name)> codeConstEvalInvalidStaticInvocation = |
| const Code<Message Function(String name)>( |
| "ConstEvalInvalidStaticInvocation", |
| templateConstEvalInvalidStaticInvocation, |
| analyzerCodes: <String>["CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsConstEvalInvalidStaticInvocation(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeConstEvalInvalidStaticInvocation, |
| message: |
| """The invocation of '${name}' is not allowed in a constant expression.""", |
| arguments: {'name': name}); |
| } |
| |
| // 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)>( |
| messageTemplate: |
| 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", |
| templateConstEvalNegativeShift, |
| ); |
| |
| // 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, |
| message: |
| """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 |
| string)> templateConstEvalNonConstantVariableGet = const Template< |
| Message Function(String string)>( |
| messageTemplate: |
| r"""The variable '#string' 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 string)> |
| codeConstEvalNonConstantVariableGet = |
| const Code<Message Function(String string)>( |
| "ConstEvalNonConstantVariableGet", |
| templateConstEvalNonConstantVariableGet, |
| analyzerCodes: <String>["NON_CONSTANT_VALUE_IN_INITIALIZER"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsConstEvalNonConstantVariableGet(String string) { |
| if (string.isEmpty) throw 'No string provided'; |
| return new Message(codeConstEvalNonConstantVariableGet, |
| message: |
| """The variable '${string}' is not a constant, only constant expressions are allowed.""", |
| arguments: {'string': string}); |
| } |
| |
| // 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"], |
| message: |
| 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"], |
| message: 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"], |
| message: 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", |
| message: 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)>( |
| messageTemplate: |
| 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", |
| templateConstEvalTruncateError, |
| ); |
| |
| // 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, |
| message: |
| """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", |
| message: r"""Could not evaluate constant expression."""); |
| |
| // 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)>( |
| messageTemplate: |
| 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", templateConstEvalZeroDivisor, |
| 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, |
| message: |
| """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, |
| message: |
| r"""Only redirecting factory constructors can be declared to be 'const'.""", |
| tip: |
| 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"], |
| message: |
| r"""Constant factory constructor can't delegate to a non-constant constructor.""", |
| tip: |
| 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)>( |
| messageTemplate: r"""The const variable '#name' must be initialized.""", |
| tipTemplate: |
| 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", templateConstFieldWithoutInitializer, |
| 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, |
| message: """The const variable '${name}' must be initialized.""", |
| tip: """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"], |
| message: r"""Only static fields can be declared as const.""", |
| tip: |
| 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, |
| message: |
| r"""Getters, setters and methods can't be declared to be 'const'.""", |
| tip: 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"], |
| message: r"""Redirecting constructors can't be cyclic.""", |
| tip: |
| 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)> templateConstructorNotFound = |
| const Template<Message Function(String name)>( |
| messageTemplate: 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", templateConstructorNotFound, |
| 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, |
| message: """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"], |
| message: |
| r"""Constructor bodies can't use 'async', 'async*', or 'sync*'."""); |
| |
| // 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, |
| message: r"""Constructors can't have a return type.""", |
| tip: 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", |
| analyzerCodes: <String>["WRONG_NUMBER_OF_TYPE_ARGUMENTS_CONSTRUCTOR"], |
| message: |
| r"""A constructor invocation can't have type arguments on the constructor name.""", |
| tip: r"""Try to place the type arguments on 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, |
| message: r"""Constructors can't have type parameters.""", |
| tip: 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, |
| message: |
| 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)>( |
| messageTemplate: 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", |
| templateConstructorWithWrongNameContext, |
| 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, |
| message: """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> codeContinueLabelNotTarget = messageContinueLabelNotTarget; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageContinueLabelNotTarget = const MessageCode( |
| "ContinueLabelNotTarget", |
| analyzerCodes: <String>["LABEL_UNDEFINED"], |
| message: r"""Target of continue must be a label."""); |
| |
| // 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, |
| message: |
| r"""A continue statement can't be used outside of a loop or switch statement.""", |
| tip: 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)>( |
| messageTemplate: |
| 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", templateContinueTargetOutsideFunction, |
| 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, |
| message: """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, |
| message: |
| r"""A continue statement in a switch statement must have a label as a target.""", |
| tip: |
| 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)>( |
| messageTemplate: 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", |
| templateCouldNotParseUri, |
| ); |
| |
| // 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, |
| message: """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, |
| message: |
| r"""Members can't be declared to be both 'covariant' and 'static'.""", |
| tip: 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, |
| message: |
| r"""Getters, setters and methods can't be declared to be 'covariant'.""", |
| tip: 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)>( |
| messageTemplate: r"""Type '#name' is a bound of itself via '#string'.""", |
| tipTemplate: |
| r"""Try breaking the cycle by removing at least on 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", templateCycleInTypeVariables, |
| 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, |
| message: """Type '${name}' is a bound of itself via '${string}'.""", |
| tip: |
| """Try breaking the cycle by removing at least on 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)>( |
| messageTemplate: 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", templateCyclicClassHierarchy, |
| 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, |
| message: """'${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)>( |
| messageTemplate: 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", |
| templateCyclicRedirectingFactoryConstructors, |
| 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, |
| message: """Cyclic definition of factory '${name}'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateCyclicTypedef = |
| const Template<Message Function(String name)>( |
| messageTemplate: 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", templateCyclicTypedef, |
| 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, |
| message: """The typedef '${name}' has a reference to itself.""", |
| arguments: {'name': name}); |
| } |
| |
| // 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)>( |
| messageTemplate: 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", templateDebugTrace, |
| 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, message: """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"], |
| message: |
| 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, |
| message: 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, |
| message: r"""This is one of the inherited members."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeDefaultListConstructorError = |
| messageDefaultListConstructorError; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageDefaultListConstructorError = const MessageCode( |
| "DefaultListConstructorError", |
| message: r"""Can't use the default List constructor.""", |
| tip: r"""Try using List.filled instead."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateDefaultValueInRedirectingFactoryConstructor = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Can't have a default value here because any default values of '#name' would be used instead.""", |
| tipTemplate: 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", |
| templateDefaultValueInRedirectingFactoryConstructor, |
| 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, |
| message: |
| """Can't have a default value here because any default values of '${name}' would be used instead.""", |
| tip: """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, |
| message: |
| r"""The deferred keyword should come immediately before the prefix ('as' clause).""", |
| tip: 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)>( |
| messageTemplate: |
| r"""Extension '#name' cannot be imported through a deferred import.""", |
| tipTemplate: 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", |
| templateDeferredExtensionImport, |
| ); |
| |
| // 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, |
| message: |
| """Extension '${name}' cannot be imported through a deferred import.""", |
| tip: """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)>( |
| messageTemplate: |
| 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", templateDeferredPrefixDuplicated, |
| 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, |
| message: |
| """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)>( |
| messageTemplate: 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", templateDeferredPrefixDuplicatedCause, |
| 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, |
| message: """'${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)>( |
| messageTemplate: |
| 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", |
| templateDillOutlineSummary, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDillOutlineSummary( |
| int count, int count2, num _num1, num _num2, num _num3) { |
| if (count == null) throw 'No count provided'; |
| if (count2 == null) throw 'No count provided'; |
| if (_num1 == null) throw 'No number provided'; |
| String num1 = _num1.toStringAsFixed(3); |
| if (_num2 == null) throw 'No number provided'; |
| String num2 = _num2.toStringAsFixed(3).padLeft(12); |
| if (_num3 == null) throw 'No number provided'; |
| String num3 = _num3.toStringAsFixed(3).padLeft(12); |
| return new Message(codeDillOutlineSummary, |
| message: |
| """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)>( |
| messageTemplate: r"""Type '#name' can't use itself as a bound.""", |
| tipTemplate: |
| r"""Try breaking the cycle by removing at least on 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", templateDirectCycleInTypeVariables, |
| 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, |
| message: """Type '${name}' can't use itself as a bound.""", |
| tip: |
| """Try breaking the cycle by removing at least on 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, |
| message: r"""Directives must appear before any declarations.""", |
| tip: 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, |
| message: r"""An import directive can only have one 'deferred' keyword.""", |
| tip: 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)>( |
| messageTemplate: |
| r"""The label '#name' was already used in this switch statement.""", |
| tipTemplate: 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", |
| templateDuplicateLabelInSwitchStatement, |
| 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, |
| message: |
| """The label '${name}' was already used in this switch statement.""", |
| tip: """Try choosing a different name for this label.""", |
| arguments: {'name': name}); |
| } |
| |
| // 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, |
| message: r"""An import directive can only have one prefix ('as' clause).""", |
| tip: r"""Try removing all but one prefix."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateDuplicatedDeclaration = |
| const Template<Message Function(String name)>( |
| messageTemplate: 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", templateDuplicatedDeclaration, |
| 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); |
| return new Message(codeDuplicatedDeclaration, |
| message: """'${name}' is already declared in this scope.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateDuplicatedDeclarationCause = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Previous declaration of '#name'.""", |
| withArguments: _withArgumentsDuplicatedDeclarationCause); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedDeclarationCause = |
| const Code<Message Function(String name)>( |
| "DuplicatedDeclarationCause", templateDuplicatedDeclarationCause, |
| severity: Severity.context); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedDeclarationCause(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedDeclarationCause, |
| message: """Previous declaration of '${name}'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String |
| name)> templateDuplicatedDeclarationSyntheticCause = const Template< |
| Message Function(String name)>( |
| messageTemplate: |
| r"""Previous declaration of '#name' is implied by this definition.""", |
| withArguments: _withArgumentsDuplicatedDeclarationSyntheticCause); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeDuplicatedDeclarationSyntheticCause = |
| const Code<Message Function(String name)>( |
| "DuplicatedDeclarationSyntheticCause", |
| templateDuplicatedDeclarationSyntheticCause, |
| severity: Severity.context); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedDeclarationSyntheticCause(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedDeclarationSyntheticCause, |
| message: |
| """Previous declaration of '${name}' is implied by this definition.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateDuplicatedDeclarationUse = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Can't use '#name' because it is declared more than once.""", |
| withArguments: _withArgumentsDuplicatedDeclarationUse); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedDeclarationUse = |
| const Code<Message Function(String name)>( |
| "DuplicatedDeclarationUse", |
| templateDuplicatedDeclarationUse, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedDeclarationUse(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedDeclarationUse, |
| message: """Can't use '${name}' because it is declared more than once.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)> |
| templateDuplicatedExport = |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)>( |
| messageTemplate: |
| r"""'#name' is exported from both '#uri' and '#uri2'.""", |
| withArguments: _withArgumentsDuplicatedExport); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)> |
| codeDuplicatedExport = |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)>( |
| "DuplicatedExport", templateDuplicatedExport, |
| analyzerCodes: <String>["AMBIGUOUS_EXPORT"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedExport(String name, Uri uri_, Uri uri2_) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| String uri = relativizeUri(uri_); |
| String uri2 = relativizeUri(uri2_); |
| return new Message(codeDuplicatedExport, |
| message: """'${name}' is exported from both '${uri}' and '${uri2}'.""", |
| arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)> |
| templateDuplicatedExportInType = |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)>( |
| messageTemplate: |
| r"""'#name' is exported from both '#uri' and '#uri2'.""", |
| withArguments: _withArgumentsDuplicatedExportInType); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)> |
| codeDuplicatedExportInType = |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)>( |
| "DuplicatedExportInType", |
| templateDuplicatedExportInType, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedExportInType(String name, Uri uri_, Uri uri2_) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| String uri = relativizeUri(uri_); |
| String uri2 = relativizeUri(uri2_); |
| return new Message(codeDuplicatedExportInType, |
| message: """'${name}' is exported from both '${uri}' and '${uri2}'.""", |
| arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)> |
| templateDuplicatedImport = |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)>( |
| messageTemplate: |
| r"""'#name' is imported from both '#uri' and '#uri2'.""", |
| withArguments: _withArgumentsDuplicatedImport); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)> |
| codeDuplicatedImport = |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)>( |
| "DuplicatedImport", templateDuplicatedImport, |
| severity: Severity.ignored); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedImport(String name, Uri uri_, Uri uri2_) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| String uri = relativizeUri(uri_); |
| String uri2 = relativizeUri(uri2_); |
| return new Message(codeDuplicatedImport, |
| message: """'${name}' is imported from both '${uri}' and '${uri2}'.""", |
| arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)> |
| templateDuplicatedImportInType = |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)>( |
| messageTemplate: |
| r"""'#name' is imported from both '#uri' and '#uri2'.""", |
| withArguments: _withArgumentsDuplicatedImportInType); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)> |
| codeDuplicatedImportInType = |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)>( |
| "DuplicatedImportInType", templateDuplicatedImportInType, |
| analyzerCodes: <String>["AMBIGUOUS_IMPORT"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedImportInType(String name, Uri uri_, Uri uri2_) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| String uri = relativizeUri(uri_); |
| String uri2 = relativizeUri(uri2_); |
| return new Message(codeDuplicatedImportInType, |
| message: """'${name}' is imported from both '${uri}' and '${uri2}'.""", |
| arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateDuplicatedLibraryExport = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""A library with name '#name' is exported more than once.""", |
| withArguments: _withArgumentsDuplicatedLibraryExport); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedLibraryExport = |
| const Code<Message Function(String name)>( |
| "DuplicatedLibraryExport", templateDuplicatedLibraryExport, |
| analyzerCodes: <String>["EXPORT_DUPLICATED_LIBRARY_NAMED"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedLibraryExport(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedLibraryExport, |
| message: """A library with name '${name}' is exported more than once.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateDuplicatedLibraryExportContext = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""'#name' is also exported here.""", |
| withArguments: _withArgumentsDuplicatedLibraryExportContext); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedLibraryExportContext = |
| const Code<Message Function(String name)>("DuplicatedLibraryExportContext", |
| templateDuplicatedLibraryExportContext, |
| severity: Severity.context); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedLibraryExportContext(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedLibraryExportContext, |
| message: """'${name}' is also exported here.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateDuplicatedLibraryImport = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""A library with name '#name' is imported more than once.""", |
| withArguments: _withArgumentsDuplicatedLibraryImport); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedLibraryImport = |
| const Code<Message Function(String name)>( |
| "DuplicatedLibraryImport", templateDuplicatedLibraryImport, |
| analyzerCodes: <String>["IMPORT_DUPLICATED_LIBRARY_NAMED"], |
| severity: Severity.warning); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedLibraryImport(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedLibraryImport, |
| message: """A library with name '${name}' is imported more than once.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateDuplicatedLibraryImportContext = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""'#name' is also imported here.""", |
| withArguments: _withArgumentsDuplicatedLibraryImportContext); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedLibraryImportContext = |
| const Code<Message Function(String name)>("DuplicatedLibraryImportContext", |
| templateDuplicatedLibraryImportContext, |
| severity: Severity.context); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedLibraryImportContext(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedLibraryImportContext, |
| message: """'${name}' is also imported here.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateDuplicatedModifier = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""The modifier '#lexeme' was already specified.""", |
| tipTemplate: |
| r"""Try removing all but one occurrence of the modifier.""", |
| withArguments: _withArgumentsDuplicatedModifier); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeDuplicatedModifier = |
| const Code<Message Function(Token token)>( |
| "DuplicatedModifier", templateDuplicatedModifier, |
| index: 70); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedModifier(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeDuplicatedModifier, |
| message: """The modifier '${lexeme}' was already specified.""", |
| tip: """Try removing all but one occurrence of the modifier.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String |
| name)> templateDuplicatedNamePreviouslyUsed = const Template< |
| Message Function(String name)>( |
| messageTemplate: |
| r"""Can't declare '#name' because it was already used in this scope.""", |
| withArguments: _withArgumentsDuplicatedNamePreviouslyUsed); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedNamePreviouslyUsed = |
| const Code<Message Function(String name)>( |
| "DuplicatedNamePreviouslyUsed", templateDuplicatedNamePreviouslyUsed, |
| analyzerCodes: <String>["REFERENCED_BEFORE_DECLARATION"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedNamePreviouslyUsed(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedNamePreviouslyUsed, |
| message: |
| """Can't declare '${name}' because it was already used in this scope.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateDuplicatedNamePreviouslyUsedCause = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Previous use of '#name'.""", |
| withArguments: _withArgumentsDuplicatedNamePreviouslyUsedCause); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeDuplicatedNamePreviouslyUsedCause = |
| const Code<Message Function(String name)>( |
| "DuplicatedNamePreviouslyUsedCause", |
| templateDuplicatedNamePreviouslyUsedCause, |
| severity: Severity.context); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedNamePreviouslyUsedCause(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedNamePreviouslyUsedCause, |
| message: """Previous use of '${name}'.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateDuplicatedNamedArgument = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Duplicated named argument '#name'.""", |
| withArguments: _withArgumentsDuplicatedNamedArgument); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedNamedArgument = |
| const Code<Message Function(String name)>( |
| "DuplicatedNamedArgument", templateDuplicatedNamedArgument, |
| analyzerCodes: <String>["DUPLICATE_NAMED_ARGUMENT"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedNamedArgument(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedNamedArgument, |
| message: """Duplicated named argument '${name}'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateDuplicatedParameterName = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Duplicated parameter name '#name'.""", |
| withArguments: _withArgumentsDuplicatedParameterName); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedParameterName = |
| const Code<Message Function(String name)>( |
| "DuplicatedParameterName", templateDuplicatedParameterName, |
| analyzerCodes: <String>["DUPLICATE_DEFINITION"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedParameterName(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedParameterName, |
| message: """Duplicated parameter name '${name}'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateDuplicatedParameterNameCause = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Other parameter named '#name'.""", |
| withArguments: _withArgumentsDuplicatedParameterNameCause); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedParameterNameCause = |
| const Code<Message Function(String name)>( |
| "DuplicatedParameterNameCause", templateDuplicatedParameterNameCause, |
| severity: Severity.context); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedParameterNameCause(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeDuplicatedParameterNameCause, |
| message: """Other parameter named '${name}'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeEmptyNamedParameterList = messageEmptyNamedParameterList; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageEmptyNamedParameterList = const MessageCode( |
| "EmptyNamedParameterList", |
| analyzerCodes: <String>["MISSING_IDENTIFIER"], |
| message: r"""Named parameter lists cannot be empty.""", |
| tip: r"""Try adding a named parameter to the list."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeEmptyOptionalParameterList = |
| messageEmptyOptionalParameterList; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageEmptyOptionalParameterList = const MessageCode( |
| "EmptyOptionalParameterList", |
| analyzerCodes: <String>["MISSING_IDENTIFIER"], |
| message: r"""Optional parameter lists cannot be empty.""", |
| tip: r"""Try adding an optional parameter to the list."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeEncoding = messageEncoding; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageEncoding = const MessageCode("Encoding", |
| message: r"""Unable to decode bytes as UTF-8."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String |
| name)> templateEnumConstantSameNameAsEnclosing = const Template< |
| Message Function(String name)>( |
| messageTemplate: |
| r"""Name of enum constant '#name' can't be the same as the enum's own name.""", |
| withArguments: _withArgumentsEnumConstantSameNameAsEnclosing); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeEnumConstantSameNameAsEnclosing = |
| const Code<Message Function(String name)>("EnumConstantSameNameAsEnclosing", |
| templateEnumConstantSameNameAsEnclosing, |
| analyzerCodes: <String>["ENUM_CONSTANT_WITH_ENUM_NAME"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsEnumConstantSameNameAsEnclosing(String name) { |
| if (name.isEmpty) throw 'No name provided'; |
| name = demangleMixinApplicationName(name); |
| return new Message(codeEnumConstantSameNameAsEnclosing, |
| message: |
| """Name of enum constant '${name}' can't be the same as the enum's own name.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeEnumDeclarationEmpty = messageEnumDeclarationEmpty; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageEnumDeclarationEmpty = const MessageCode( |
| "EnumDeclarationEmpty", |
| analyzerCodes: <String>["EMPTY_ENUM_BODY"], |
| message: r"""An enum declaration can't be empty."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeEnumInClass = messageEnumInClass; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageEnumInClass = const MessageCode("EnumInClass", |
| index: 74, |
| message: r"""Enums can't be declared inside classes.""", |
| tip: r"""Try moving the enum to the top-level."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeEnumInstantiation = messageEnumInstantiation; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageEnumInstantiation = const MessageCode( |
| "EnumInstantiation", |
| analyzerCodes: <String>["INSTANTIATE_ENUM"], |
| message: r"""Enums can't be instantiated."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeEqualityCannotBeEqualityOperand = |
| messageEqualityCannotBeEqualityOperand; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageEqualityCannotBeEqualityOperand = const MessageCode( |
| "EqualityCannotBeEqualityOperand", |
| index: 1, |
| message: |
| r"""A comparison expression can't be an operand of another comparison expression.""", |
| tip: r"""Try putting parentheses around one of the comparisons."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> templateExpectedAfterButGot = |
| const Template<Message Function(String string)>( |
| messageTemplate: r"""Expected '#string' after this.""", |
| withArguments: _withArgumentsExpectedAfterButGot); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeExpectedAfterButGot = |
| const Code<Message Function(String string)>( |
| "ExpectedAfterButGot", templateExpectedAfterButGot, |
| analyzerCodes: <String>["EXPECTED_TOKEN"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedAfterButGot(String string) { |
| if (string.isEmpty) throw 'No string provided'; |
| return new Message(codeExpectedAfterButGot, |
| message: """Expected '${string}' after this.""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedAnInitializer = messageExpectedAnInitializer; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedAnInitializer = const MessageCode( |
| "ExpectedAnInitializer", |
| index: 36, |
| message: r"""Expected an initializer."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedBlock = messageExpectedBlock; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedBlock = const MessageCode("ExpectedBlock", |
| analyzerCodes: <String>["EXPECTED_TOKEN"], |
| message: r"""Expected a block.""", |
| tip: r"""Try adding {}."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedBlockToSkip = messageExpectedBlockToSkip; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedBlockToSkip = const MessageCode( |
| "ExpectedBlockToSkip", |
| analyzerCodes: <String>["MISSING_FUNCTION_BODY"], |
| message: r"""Expected a function body or '=>'.""", |
| tip: r"""Try adding {}."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedBody = messageExpectedBody; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedBody = const MessageCode("ExpectedBody", |
| analyzerCodes: <String>["MISSING_FUNCTION_BODY"], |
| message: r"""Expected a function body or '=>'.""", |
| tip: r"""Try adding {}."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> templateExpectedButGot = |
| const Template<Message Function(String string)>( |
| messageTemplate: r"""Expected '#string' before this.""", |
| withArguments: _withArgumentsExpectedButGot); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeExpectedButGot = |
| const Code<Message Function(String string)>( |
| "ExpectedButGot", templateExpectedButGot, |
| analyzerCodes: <String>["EXPECTED_TOKEN"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedButGot(String string) { |
| if (string.isEmpty) throw 'No string provided'; |
| return new Message(codeExpectedButGot, |
| message: """Expected '${string}' before this.""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateExpectedClassMember = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Expected a class member, but got '#lexeme'.""", |
| withArguments: _withArgumentsExpectedClassMember); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedClassMember = |
| const Code<Message Function(Token token)>( |
| "ExpectedClassMember", templateExpectedClassMember, |
| analyzerCodes: <String>["EXPECTED_CLASS_MEMBER"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedClassMember(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedClassMember, |
| message: """Expected a class member, but got '${lexeme}'.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> |
| templateExpectedClassOrMixinBody = |
| const Template<Message Function(String string)>( |
| messageTemplate: |
| r"""A #string must have a body, even if it is empty.""", |
| tipTemplate: r"""Try adding an empty body.""", |
| withArguments: _withArgumentsExpectedClassOrMixinBody); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeExpectedClassOrMixinBody = |
| const Code<Message Function(String string)>( |
| "ExpectedClassOrMixinBody", templateExpectedClassOrMixinBody, |
| index: 8); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedClassOrMixinBody(String string) { |
| if (string.isEmpty) throw 'No string provided'; |
| return new Message(codeExpectedClassOrMixinBody, |
| message: """A ${string} must have a body, even if it is empty.""", |
| tip: """Try adding an empty body.""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateExpectedDeclaration = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Expected a declaration, but got '#lexeme'.""", |
| withArguments: _withArgumentsExpectedDeclaration); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedDeclaration = |
| const Code<Message Function(Token token)>( |
| "ExpectedDeclaration", templateExpectedDeclaration, |
| analyzerCodes: <String>["EXPECTED_EXECUTABLE"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedDeclaration(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedDeclaration, |
| message: """Expected a declaration, but got '${lexeme}'.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedElseOrComma = messageExpectedElseOrComma; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedElseOrComma = const MessageCode( |
| "ExpectedElseOrComma", |
| index: 46, |
| message: r"""Expected 'else' or comma."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function(Token token)> templateExpectedEnumBody = const Template< |
| Message Function(Token token)>( |
| messageTemplate: r"""Expected a enum body, but got '#lexeme'.""", |
| tipTemplate: |
| r"""An enum definition must have a body with at least one constant name.""", |
| withArguments: _withArgumentsExpectedEnumBody); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedEnumBody = |
| const Code<Message Function(Token token)>( |
| "ExpectedEnumBody", templateExpectedEnumBody, |
| analyzerCodes: <String>["MISSING_ENUM_BODY"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedEnumBody(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedEnumBody, |
| message: """Expected a enum body, but got '${lexeme}'.""", |
| tip: |
| """An enum definition must have a body with at least one constant name.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateExpectedFunctionBody = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Expected a function body, but got '#lexeme'.""", |
| withArguments: _withArgumentsExpectedFunctionBody); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedFunctionBody = |
| const Code<Message Function(Token token)>( |
| "ExpectedFunctionBody", templateExpectedFunctionBody, |
| analyzerCodes: <String>["MISSING_FUNCTION_BODY"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedFunctionBody(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedFunctionBody, |
| message: """Expected a function body, but got '${lexeme}'.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedHexDigit = messageExpectedHexDigit; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedHexDigit = const MessageCode( |
| "ExpectedHexDigit", |
| analyzerCodes: <String>["MISSING_HEX_DIGIT"], |
| message: r"""A hex digit (0-9 or A-F) must follow '0x'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateExpectedIdentifier = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Expected an identifier, but got '#lexeme'.""", |
| withArguments: _withArgumentsExpectedIdentifier); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedIdentifier = |
| const Code<Message Function(Token token)>( |
| "ExpectedIdentifier", templateExpectedIdentifier, |
| analyzerCodes: <String>["MISSING_IDENTIFIER"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedIdentifier(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedIdentifier, |
| message: """Expected an identifier, but got '${lexeme}'.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> templateExpectedInstead = |
| const Template<Message Function(String string)>( |
| messageTemplate: r"""Expected '#string' instead of this.""", |
| withArguments: _withArgumentsExpectedInstead); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeExpectedInstead = |
| const Code<Message Function(String string)>( |
| "ExpectedInstead", templateExpectedInstead, |
| index: 41); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedInstead(String string) { |
| if (string.isEmpty) throw 'No string provided'; |
| return new Message(codeExpectedInstead, |
| message: """Expected '${string}' instead of this.""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedNamedArgument = messageExpectedNamedArgument; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedNamedArgument = const MessageCode( |
| "ExpectedNamedArgument", |
| analyzerCodes: <String>["EXTRA_POSITIONAL_ARGUMENTS"], |
| message: r"""Expected named argument."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedOneExpression = messageExpectedOneExpression; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedOneExpression = const MessageCode( |
| "ExpectedOneExpression", |
| message: r"""Expected one expression, but found additional input."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedOpenParens = messageExpectedOpenParens; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedOpenParens = |
| const MessageCode("ExpectedOpenParens", message: r"""Expected '('."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedStatement = messageExpectedStatement; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedStatement = const MessageCode( |
| "ExpectedStatement", |
| index: 29, |
| message: r"""Expected a statement."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateExpectedString = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Expected a String, but got '#lexeme'.""", |
| withArguments: _withArgumentsExpectedString); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedString = |
| const Code<Message Function(Token token)>( |
| "ExpectedString", templateExpectedString, |
| analyzerCodes: <String>["EXPECTED_STRING_LITERAL"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedString(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedString, |
| message: """Expected a String, but got '${lexeme}'.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> templateExpectedToken = |
| const Template<Message Function(String string)>( |
| messageTemplate: r"""Expected to find '#string'.""", |
| withArguments: _withArgumentsExpectedToken); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeExpectedToken = |
| const Code<Message Function(String string)>( |
| "ExpectedToken", templateExpectedToken, |
| analyzerCodes: <String>["EXPECTED_TOKEN"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedToken(String string) { |
| if (string.isEmpty) throw 'No string provided'; |
| return new Message(codeExpectedToken, |
| message: """Expected to find '${string}'.""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateExpectedType = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Expected a type, but got '#lexeme'.""", |
| withArguments: _withArgumentsExpectedType); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedType = |
| const Code<Message Function(Token token)>( |
| "ExpectedType", templateExpectedType, |
| analyzerCodes: <String>["EXPECTED_TYPE_NAME"]); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedType(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedType, |
| message: """Expected a type, but got '${lexeme}'.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpectedUri = messageExpectedUri; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpectedUri = |
| const MessageCode("ExpectedUri", message: r"""Expected a URI."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String string, |
| String |
| string2)> templateExperimentNotEnabled = const Template< |
| Message Function(String string, String string2)>( |
| messageTemplate: |
| r"""This requires the '#string' language feature to be enabled.""", |
| tipTemplate: |
| r"""Try updating your pubspec.yaml to set the minimum SDK constraint to #string2 or higher, and running 'pub get'.""", |
| withArguments: _withArgumentsExperimentNotEnabled); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string, String string2)> |
| codeExperimentNotEnabled = |
| const Code<Message Function(String string, String string2)>( |
| "ExperimentNotEnabled", templateExperimentNotEnabled, |
| index: 48); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExperimentNotEnabled(String string, String string2) { |
| if (string.isEmpty) throw 'No string provided'; |
| if (string2.isEmpty) throw 'No string provided'; |
| return new Message(codeExperimentNotEnabled, |
| message: |
| """This requires the '${string}' language feature to be enabled.""", |
| tip: |
| """Try updating your pubspec.yaml to set the minimum SDK constraint to ${string2} or higher, and running 'pub get'.""", |
| arguments: {'string': string, 'string2': string2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExplicitExtensionArgumentMismatch = |
| messageExplicitExtensionArgumentMismatch; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExplicitExtensionArgumentMismatch = const MessageCode( |
| "ExplicitExtensionArgumentMismatch", |
| message: |
| r"""Explicit extension application requires exactly 1 positional argument."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExplicitExtensionAsExpression = |
| messageExplicitExtensionAsExpression; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExplicitExtensionAsExpression = const MessageCode( |
| "ExplicitExtensionAsExpression", |
| message: |
| r"""Explicit extension application cannot be used as an expression."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExplicitExtensionAsLvalue = |
| messageExplicitExtensionAsLvalue; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExplicitExtensionAsLvalue = const MessageCode( |
| "ExplicitExtensionAsLvalue", |
| message: |
| r"""Explicit extension application cannot be a target for assignment."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String name, |
| int |
| count)> templateExplicitExtensionTypeArgumentMismatch = const Template< |
| Message Function(String name, int count)>( |
| messageTemplate: |
| r"""Explicit extension application of extension '#name' takes '#count' type argument(s).""", |
| withArguments: _withArgumentsExplicitExtensionTypeArgumentMismatch); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, int count)> |
| codeExplicitExtensionTypeArgumentMismatch = |
| const Code<Message Function(String name, int count)>( |
| "ExplicitExtensionTypeArgumentMismatch", |
| templateExplicitExtensionTypeArgumentMismatch, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExplicitExtensionTypeArgumentMismatch( |
| |