| // Copyright (c) 2017, 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.dart' to update. |
| |
| part of fasta.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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsAbstractClassInstantiation(String 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> codeAbstractNotSync = messageAbstractNotSync; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageAbstractNotSync = const MessageCode("AbstractNotSync", |
| dart2jsCode: "*ignored*", |
| 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)> 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) { |
| return new Message(codeAccessError, |
| message: """Access error: '$name'.""", arguments: {'name': name}); |
| } |
| |
| // 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, |
| analyzerCode: "ILLEGAL_CHARACTER", dart2jsCode: "BAD_INPUT_CHARACTER"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsAsciiControlCharacter(int codePoint) { |
| String unicode = "(U+${codePoint.toRadixString(16).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", |
| dart2jsCode: "*fatal*", |
| 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", |
| dart2jsCode: "*fatal*", |
| message: r"""`assert` can't have more than two arguments."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeAsyncAsIdentifier = messageAsyncAsIdentifier; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageAsyncAsIdentifier = const MessageCode( |
| "AsyncAsIdentifier", |
| analyzerCode: "ASYNC_KEYWORD_USED_AS_IDENTIFIER", |
| dart2jsCode: "GENERIC", |
| message: |
| r"""'async' 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> codeAwaitAsIdentifier = messageAwaitAsIdentifier; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageAwaitAsIdentifier = const MessageCode( |
| "AwaitAsIdentifier", |
| dart2jsCode: "*ignored*", |
| 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", |
| dart2jsCode: "*ignored*", |
| message: |
| r"""Asynchronous for-loop can only be used in 'async' or 'async*' methods."""); |
| |
| // 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", |
| dart2jsCode: "*ignored*", |
| 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(Token token)> templateBuiltInIdentifierAsType = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Can't use '#lexeme' 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, |
| analyzerCode: "EXPECTED_TYPE_NAME", dart2jsCode: "EXTRANEOUS_MODIFIER"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsBuiltInIdentifierAsType(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeBuiltInIdentifierAsType, |
| message: """Can't use '$lexeme' 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, |
| dart2jsCode: "GENERIC"); |
| |
| // 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 Template<Message Function(String string)> templateCannotReadPackagesFile = |
| const Template<Message Function(String string)>( |
| messageTemplate: r"""Unable to read '.packages' file: |
| #string.""", withArguments: _withArgumentsCannotReadPackagesFile); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeCannotReadPackagesFile = |
| const Code<Message Function(String string)>( |
| "CannotReadPackagesFile", |
| templateCannotReadPackagesFile, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsCannotReadPackagesFile(String string) { |
| return new Message(codeCannotReadPackagesFile, |
| message: """Unable to read '.packages' file: |
| $string.""", arguments: {'string': string}); |
| } |
| |
| // 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) { |
| 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> 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 Code<Null> codeCatchSyntax = messageCatchSyntax; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageCatchSyntax = const MessageCode("CatchSyntax", |
| dart2jsCode: "*ignored*", |
| 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 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsConflictsWithConstructor(String 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) { |
| 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsConflictsWithMember(String 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsConflictsWithSetter(String 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsConflictsWithTypeVariable(String 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", |
| message: r"""This is the type variable."""); |
| |
| // 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", |
| 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", |
| message: r"""Field isn't final, but constructor is 'const'."""); |
| |
| // 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", |
| message: r"""A const constructor can't have a body."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeConstFieldWithoutInitializer = |
| messageConstFieldWithoutInitializer; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageConstFieldWithoutInitializer = const MessageCode( |
| "ConstFieldWithoutInitializer", |
| dart2jsCode: "*ignored*", |
| message: r"""A 'const' field must be initialized.""", |
| tip: r"""Try adding '= <initializer>'."""); |
| |
| // 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsConstructorNotFound(String 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 Template<Message Function(String name, String string)> |
| templateCyclicClassHierarchy = |
| const Template<Message Function(String name, String string)>( |
| messageTemplate: r"""'#name' is a supertype of itself via '#string'.""", |
| withArguments: _withArgumentsCyclicClassHierarchy); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, String string)> |
| codeCyclicClassHierarchy = |
| const Code<Message Function(String name, String string)>( |
| "CyclicClassHierarchy", |
| templateCyclicClassHierarchy, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsCyclicClassHierarchy(String name, String string) { |
| return new Message(codeCyclicClassHierarchy, |
| message: """'$name' is a supertype of itself via '$string'.""", |
| arguments: {'name': name, 'string': string}); |
| } |
| |
| // 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsCyclicTypedef(String 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)> 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDeferredPrefixDuplicated(String 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDeferredPrefixDuplicatedCause(String 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(String name)> templateDuplicatedDefinition = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Duplicated definition of '#name'.""", |
| withArguments: _withArgumentsDuplicatedDefinition); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedDefinition = |
| const Code<Message Function(String name)>( |
| "DuplicatedDefinition", |
| templateDuplicatedDefinition, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedDefinition(String name) { |
| return new Message(codeDuplicatedDefinition, |
| message: """Duplicated definition of '$name'.""", |
| 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedExport(String name, Uri uri_, Uri uri2_) { |
| 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_)> |
| 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedImport(String name, Uri uri_, Uri uri2_) { |
| 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)> templateDuplicatedName = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Duplicated name: '#name'.""", |
| withArguments: _withArgumentsDuplicatedName); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeDuplicatedName = |
| const Code<Message Function(String name)>( |
| "DuplicatedName", |
| templateDuplicatedName, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedName(String name) { |
| return new Message(codeDuplicatedName, |
| message: """Duplicated name: '$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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedParameterName(String 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsDuplicatedParameterNameCause(String 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", |
| dart2jsCode: "EMPTY_NAMED_PARAMETER_LIST", |
| 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", |
| dart2jsCode: "EMPTY_OPTIONAL_PARAMETER_LIST", |
| 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", |
| dart2jsCode: "*fatal*", 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, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsEnumConstantSameNameAsEnclosing(String 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> codeEnumDeclartionEmpty = messageEnumDeclartionEmpty; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageEnumDeclartionEmpty = const MessageCode( |
| "EnumDeclartionEmpty", |
| message: r"""An enum declaration can't be empty."""); |
| |
| // 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", |
| message: r"""Expected an initializer."""); |
| |
| // 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", |
| dart2jsCode: "NATIVE_OR_BODY_EXPECTED", |
| 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", |
| dart2jsCode: "BODY_EXPECTED", |
| 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.""", |
| tipTemplate: r"""DONT_KNOW_HOW_TO_FIX,""", |
| 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, |
| analyzerCode: "UNEXPECTED_TOKEN", |
| dart2jsCode: "MISSING_TOKEN_BEFORE_THIS"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedButGot(String string) { |
| return new Message(codeExpectedButGot, |
| message: """Expected '$string' before this.""", |
| tip: """DONT_KNOW_HOW_TO_FIX,""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateExpectedClassBody = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Expected a class body, but got '#lexeme'.""", |
| withArguments: _withArgumentsExpectedClassBody); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedClassBody = |
| const Code<Message Function(Token token)>( |
| "ExpectedClassBody", templateExpectedClassBody, |
| dart2jsCode: "*fatal*"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedClassBody(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedClassBody, |
| message: """Expected a class body, but got '$lexeme'.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateExpectedClassBodyToSkip = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Expected a class body, but got '#lexeme'.""", |
| withArguments: _withArgumentsExpectedClassBodyToSkip); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedClassBodyToSkip = |
| const Code<Message Function(Token token)>( |
| "ExpectedClassBodyToSkip", templateExpectedClassBodyToSkip, |
| dart2jsCode: "*fatal*"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedClassBodyToSkip(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedClassBodyToSkip, |
| message: """Expected a class body, but got '$lexeme'.""", |
| arguments: {'token': token}); |
| } |
| |
| // 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, |
| analyzerCode: "UNEXPECTED_TOKEN", dart2jsCode: "*fatal*"); |
| |
| // 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 Template<Message Function(Token token)> templateExpectedExpression = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Expected an expression, but got '#lexeme'.""", |
| withArguments: _withArgumentsExpectedExpression); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExpectedExpression = |
| const Code<Message Function(Token token)>( |
| "ExpectedExpression", templateExpectedExpression, |
| dart2jsCode: "*fatal*"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExpectedExpression(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExpectedExpression, |
| message: """Expected an expression, but got '$lexeme'.""", |
| 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, |
| dart2jsCode: "NATIVE_OR_FATAL"); |
| |
| // 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", |
| analyzerCode: "MISSING_HEX_DIGIT", |
| dart2jsCode: "HEX_DIGIT_EXPECTED", |
| 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"""'#lexeme' is a reserved word and can't be used here.""", |
| tipTemplate: r"""Try using a different name.""", |
| 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, |
| dart2jsCode: "EXPECTED_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: """'$lexeme' is a reserved word and can't be used here.""", |
| tip: """Try using a different name.""", |
| arguments: {'token': token}); |
| } |
| |
| // 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", |
| dart2jsCode: "GENERIC", |
| message: r"""Expected '('."""); |
| |
| // 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, |
| analyzerCode: "EXPECTED_STRING_LITERAL", dart2jsCode: "*fatal*"); |
| |
| // 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(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, |
| dart2jsCode: "*fatal*"); |
| |
| // 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 Template<Message Function(String name, Uri uri_, Uri uri2_)> |
| templateExportHidesExport = |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)>( |
| messageTemplate: |
| r"""Export of '#name' (from '#uri') hides export from '#uri2'.""", |
| withArguments: _withArgumentsExportHidesExport); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)> |
| codeExportHidesExport = |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)>( |
| "ExportHidesExport", |
| templateExportHidesExport, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExportHidesExport(String name, Uri uri_, Uri uri2_) { |
| String uri = relativizeUri(uri_); |
| String uri2 = relativizeUri(uri2_); |
| return new Message(codeExportHidesExport, |
| message: """Export of '$name' (from '$uri') hides export from '$uri2'.""", |
| arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExpressionNotMetadata = messageExpressionNotMetadata; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExpressionNotMetadata = const MessageCode( |
| "ExpressionNotMetadata", |
| message: |
| r"""This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateExtendingEnum = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""'#name' is an enum and can't be extended or implemented.""", |
| withArguments: _withArgumentsExtendingEnum); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeExtendingEnum = |
| const Code<Message Function(String name)>( |
| "ExtendingEnum", |
| templateExtendingEnum, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExtendingEnum(String name) { |
| return new Message(codeExtendingEnum, |
| message: """'$name' is an enum and can't be extended or implemented.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateExtendingRestricted = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""'#name' is restricted and can't be extended or implemented.""", |
| withArguments: _withArgumentsExtendingRestricted); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeExtendingRestricted = |
| const Code<Message Function(String name)>( |
| "ExtendingRestricted", |
| templateExtendingRestricted, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExtendingRestricted(String name) { |
| return new Message(codeExtendingRestricted, |
| message: |
| """'$name' is restricted and can't be extended or implemented.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeExternalMethodWithBody = messageExternalMethodWithBody; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageExternalMethodWithBody = const MessageCode( |
| "ExternalMethodWithBody", |
| message: r"""An external method can't have a body."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateExtraneousModifier = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Can't have modifier '#lexeme' here.""", |
| tipTemplate: r"""Try removing '#lexeme'.""", |
| withArguments: _withArgumentsExtraneousModifier); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeExtraneousModifier = |
| const Code<Message Function(Token token)>( |
| "ExtraneousModifier", templateExtraneousModifier, |
| analyzerCode: "UNEXPECTED_TOKEN", dart2jsCode: "EXTRANEOUS_MODIFIER"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsExtraneousModifier(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeExtraneousModifier, |
| message: """Can't have modifier '$lexeme' here.""", |
| tip: """Try removing '$lexeme'.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeFactoryNotSync = messageFactoryNotSync; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageFactoryNotSync = const MessageCode("FactoryNotSync", |
| dart2jsCode: "*ignored*", |
| message: r"""Factories can't use 'async', 'async*', or 'sync*'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateFastaCLIArgumentRequired = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Expected value after '#name'.""", |
| withArguments: _withArgumentsFastaCLIArgumentRequired); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeFastaCLIArgumentRequired = |
| const Code<Message Function(String name)>( |
| "FastaCLIArgumentRequired", |
| templateFastaCLIArgumentRequired, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsFastaCLIArgumentRequired(String name) { |
| return new Message(codeFastaCLIArgumentRequired, |
| message: """Expected value after '$name'.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeFastaUsageLong = messageFastaUsageLong; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageFastaUsageLong = |
| const MessageCode("FastaUsageLong", message: r"""Supported options: |
| |
| -o <file>, --output=<file> |
| Generate the output into <file>. |
| |
| -h, /h, /?, --help |
| Display this message (add -v for information about all options). |
| |
| -v, --verbose |
| Display verbose information. |
| |
| -- |
| Stop option parsing, the rest of the command line is assumed to be |
| file names or arguments to the Dart program. |
| |
| --packages=<file> |
| Use package resolution configuration <file>, which should contain a mapping |
| of package names to paths. |
| |
| --platform=<file> |
| Read the SDK platform from <file>, which should be in Dill/Kernel IR format |
| and contain the Dart SDK. |
| |
| --target=none|vm|vmcc|vmreify|flutter |
| Specify the target configuration. |
| |
| --verify |
| Check that the generated output is free of various problems. This is mostly |
| useful for developers of this compiler or Kernel transformations. |
| |
| --dump-ir |
| Print compiled libraries in Kernel source notation. |
| |
| --exclude-source |
| Do not include source code in the dill file. |
| |
| --compile-sdk=<patched_sdk> |
| Compile the SDK from scratch instead of reading it from 'platform.dill'. |
| |
| --sdk=<patched_sdk> |
| Location of the SDK sources for use when compiling additional platform |
| libraries. |
| |
| --fatal=errors |
| --fatal=warnings |
| --fatal=nits |
| Makes messages of the given kinds fatal, that is, immediately stop the |
| compiler with a non-zero exit-code. In --verbose mode, also display an |
| internal stack trace from the compiler. Multiple kinds can be separated by |
| commas, for example, --fatal=errors,warnings."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeFastaUsageShort = messageFastaUsageShort; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageFastaUsageShort = |
| const MessageCode("FastaUsageShort", message: r"""Frequently used options: |
| |
| -o <file> Generate the output into <file>. |
| -h Display this message (add -v for information about all options)."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeFinalFieldWithoutInitializer = |
| messageFinalFieldWithoutInitializer; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageFinalFieldWithoutInitializer = const MessageCode( |
| "FinalFieldWithoutInitializer", |
| dart2jsCode: "*ignored*", |
| message: r"""A 'final' field must be initialized.""", |
| tip: r"""Try adding '= <initializer>'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateFinalInstanceVariableAlreadyInitialized = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""'#name' is a final instance variable that has already been initialized.""", |
| withArguments: _withArgumentsFinalInstanceVariableAlreadyInitialized); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeFinalInstanceVariableAlreadyInitialized = |
| const Code<Message Function(String name)>( |
| "FinalInstanceVariableAlreadyInitialized", |
| templateFinalInstanceVariableAlreadyInitialized, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsFinalInstanceVariableAlreadyInitialized(String name) { |
| return new Message(codeFinalInstanceVariableAlreadyInitialized, |
| message: |
| """'$name' is a final instance variable that has already been initialized.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateFinalInstanceVariableAlreadyInitializedCause = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""'#name' was initialized here.""", |
| withArguments: |
| _withArgumentsFinalInstanceVariableAlreadyInitializedCause); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeFinalInstanceVariableAlreadyInitializedCause = |
| const Code<Message Function(String name)>( |
| "FinalInstanceVariableAlreadyInitializedCause", |
| templateFinalInstanceVariableAlreadyInitializedCause, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsFinalInstanceVariableAlreadyInitializedCause( |
| String name) { |
| return new Message(codeFinalInstanceVariableAlreadyInitializedCause, |
| message: """'$name' was initialized here.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeFunctionTypeDefaultValue = messageFunctionTypeDefaultValue; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageFunctionTypeDefaultValue = const MessageCode( |
| "FunctionTypeDefaultValue", |
| dart2jsCode: "*ignored*", |
| message: r"""Can't have a default value in a function type."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeGeneratorReturnsValue = messageGeneratorReturnsValue; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageGeneratorReturnsValue = const MessageCode( |
| "GeneratorReturnsValue", |
| dart2jsCode: "*ignored*", |
| message: r"""'sync*' and 'async*' can't return a value."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateGetterNotFound = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Getter not found: '#name'.""", |
| withArguments: _withArgumentsGetterNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeGetterNotFound = |
| const Code<Message Function(String name)>( |
| "GetterNotFound", |
| templateGetterNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsGetterNotFound(String name) { |
| return new Message(codeGetterNotFound, |
| message: """Getter not found: '$name'.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeGetterWithFormals = messageGetterWithFormals; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageGetterWithFormals = const MessageCode( |
| "GetterWithFormals", |
| dart2jsCode: "*ignored*", |
| message: r"""A getter can't have formal parameters.""", |
| tip: r"""Try removing '(...)'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, String name2)> |
| templateIllegalMethodName = |
| const Template<Message Function(String name, String name2)>( |
| messageTemplate: r"""'#name' isn't a legal method name.""", |
| tipTemplate: r"""Did you mean '#name2'?""", |
| withArguments: _withArgumentsIllegalMethodName); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, String name2)> codeIllegalMethodName = |
| const Code<Message Function(String name, String name2)>( |
| "IllegalMethodName", |
| templateIllegalMethodName, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsIllegalMethodName(String name, String name2) { |
| return new Message(codeIllegalMethodName, |
| message: """'$name' isn't a legal method name.""", |
| tip: """Did you mean '$name2'?""", |
| arguments: {'name': name, 'name2': name2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateIllegalMixin = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""The type '#name' can't be mixed in.""", |
| withArguments: _withArgumentsIllegalMixin); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeIllegalMixin = |
| const Code<Message Function(String name)>( |
| "IllegalMixin", |
| templateIllegalMixin, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsIllegalMixin(String name) { |
| return new Message(codeIllegalMixin, |
| message: """The type '$name' can't be mixed in.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateIllegalMixinDueToConstructors = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Can't use '#name' as a mixin because it has constructors.""", |
| withArguments: _withArgumentsIllegalMixinDueToConstructors); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeIllegalMixinDueToConstructors = |
| const Code<Message Function(String name)>( |
| "IllegalMixinDueToConstructors", |
| templateIllegalMixinDueToConstructors, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsIllegalMixinDueToConstructors(String name) { |
| return new Message(codeIllegalMixinDueToConstructors, |
| message: """Can't use '$name' as a mixin because it has constructors.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateIllegalMixinDueToConstructorsCause = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""This constructor prevents using '#name' as a mixin.""", |
| withArguments: _withArgumentsIllegalMixinDueToConstructorsCause); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeIllegalMixinDueToConstructorsCause = |
| const Code<Message Function(String name)>( |
| "IllegalMixinDueToConstructorsCause", |
| templateIllegalMixinDueToConstructorsCause, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsIllegalMixinDueToConstructorsCause(String name) { |
| return new Message(codeIllegalMixinDueToConstructorsCause, |
| message: """This constructor prevents using '$name' as a mixin.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)> |
| templateImportHidesImport = |
| const Template<Message Function(String name, Uri uri_, Uri uri2_)>( |
| messageTemplate: |
| r"""Import of '#name' (from '#uri') hides import from '#uri2'.""", |
| withArguments: _withArgumentsImportHidesImport); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)> |
| codeImportHidesImport = |
| const Code<Message Function(String name, Uri uri_, Uri uri2_)>( |
| "ImportHidesImport", |
| templateImportHidesImport, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsImportHidesImport(String name, Uri uri_, Uri uri2_) { |
| String uri = relativizeUri(uri_); |
| String uri2 = relativizeUri(uri2_); |
| return new Message(codeImportHidesImport, |
| message: """Import of '$name' (from '$uri') hides import from '$uri2'.""", |
| arguments: {'name': name, 'uri': uri_, 'uri2': uri2_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Uri uri_)> templateInputFileNotFound = |
| const Template<Message Function(Uri uri_)>( |
| messageTemplate: r"""Input file not found: #uri.""", |
| withArguments: _withArgumentsInputFileNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_)> codeInputFileNotFound = |
| const Code<Message Function(Uri uri_)>( |
| "InputFileNotFound", |
| templateInputFileNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInputFileNotFound(Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codeInputFileNotFound, |
| message: """Input file not found: $uri.""", arguments: {'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| Token |
| token)> templateIntegerLiteralIsOutOfRange = const Template< |
| Message Function(Token token)>( |
| messageTemplate: |
| r"""The integer literal #lexeme can't be represented in 64 bits.""", |
| tipTemplate: |
| r"""Try using BigInt (from 'dart:typed_data' library) if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""", |
| withArguments: _withArgumentsIntegerLiteralIsOutOfRange); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeIntegerLiteralIsOutOfRange = |
| const Code<Message Function(Token token)>( |
| "IntegerLiteralIsOutOfRange", |
| templateIntegerLiteralIsOutOfRange, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsIntegerLiteralIsOutOfRange(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeIntegerLiteralIsOutOfRange, |
| message: |
| """The integer literal $lexeme can't be represented in 64 bits.""", |
| tip: |
| """Try using BigInt (from 'dart:typed_data' library) if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInternalProblemAlreadyInitialized = |
| messageInternalProblemAlreadyInitialized; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInternalProblemAlreadyInitialized = const MessageCode( |
| "InternalProblemAlreadyInitialized", |
| message: r"""Attempt to set initializer on field without initializer."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInternalProblemBodyOnAbstractMethod = |
| messageInternalProblemBodyOnAbstractMethod; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInternalProblemBodyOnAbstractMethod = |
| const MessageCode("InternalProblemBodyOnAbstractMethod", |
| message: r"""Attempting to set body on abstract method."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, Uri uri_)> |
| templateInternalProblemConstructorNotFound = |
| const Template<Message Function(String name, Uri uri_)>( |
| messageTemplate: r"""No constructor named '#name' in '#uri'.""", |
| withArguments: _withArgumentsInternalProblemConstructorNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_)> |
| codeInternalProblemConstructorNotFound = |
| const Code<Message Function(String name, Uri uri_)>( |
| "InternalProblemConstructorNotFound", |
| templateInternalProblemConstructorNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemConstructorNotFound( |
| String name, Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codeInternalProblemConstructorNotFound, |
| message: """No constructor named '$name' in '$uri'.""", |
| arguments: {'name': name, 'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInternalProblemExtendingUnmodifiableScope = |
| messageInternalProblemExtendingUnmodifiableScope; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInternalProblemExtendingUnmodifiableScope = |
| const MessageCode("InternalProblemExtendingUnmodifiableScope", |
| message: r"""Can't extend an unmodifiable scope."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInternalProblemMissingContext = |
| messageInternalProblemMissingContext; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInternalProblemMissingContext = const MessageCode( |
| "InternalProblemMissingContext", |
| message: r"""Compiler cannot run without a compiler context.""", |
| tip: |
| r"""Are calls to the compiler wrapped in CompilerContext.runInContext?"""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateInternalProblemNotFound = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Couldn't find '#name'.""", |
| withArguments: _withArgumentsInternalProblemNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeInternalProblemNotFound = |
| const Code<Message Function(String name)>( |
| "InternalProblemNotFound", |
| templateInternalProblemNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemNotFound(String name) { |
| return new Message(codeInternalProblemNotFound, |
| message: """Couldn't find '$name'.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, String name2)> |
| templateInternalProblemNotFoundIn = |
| const Template<Message Function(String name, String name2)>( |
| messageTemplate: r"""Couldn't find '#name' in '#name2'.""", |
| withArguments: _withArgumentsInternalProblemNotFoundIn); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, String name2)> |
| codeInternalProblemNotFoundIn = |
| const Code<Message Function(String name, String name2)>( |
| "InternalProblemNotFoundIn", |
| templateInternalProblemNotFoundIn, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemNotFoundIn(String name, String name2) { |
| return new Message(codeInternalProblemNotFoundIn, |
| message: """Couldn't find '$name' in '$name2'.""", |
| arguments: {'name': name, 'name2': name2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInternalProblemPreviousTokenNotFound = |
| messageInternalProblemPreviousTokenNotFound; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInternalProblemPreviousTokenNotFound = |
| const MessageCode("InternalProblemPreviousTokenNotFound", |
| message: r"""Couldn't find previous token."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateInternalProblemPrivateConstructorAccess = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Can't access private constructor '#name'.""", |
| withArguments: _withArgumentsInternalProblemPrivateConstructorAccess); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeInternalProblemPrivateConstructorAccess = |
| const Code<Message Function(String name)>( |
| "InternalProblemPrivateConstructorAccess", |
| templateInternalProblemPrivateConstructorAccess, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemPrivateConstructorAccess(String name) { |
| return new Message(codeInternalProblemPrivateConstructorAccess, |
| message: """Can't access private constructor '$name'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInternalProblemProvidedBothCompileSdkAndSdkSummary = |
| messageInternalProblemProvidedBothCompileSdkAndSdkSummary; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInternalProblemProvidedBothCompileSdkAndSdkSummary = |
| const MessageCode("InternalProblemProvidedBothCompileSdkAndSdkSummary", |
| message: |
| r"""The compileSdk and sdkSummary options are mutually exclusive"""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, String string)> |
| templateInternalProblemStackNotEmpty = |
| const Template<Message Function(String name, String string)>( |
| messageTemplate: r"""#name.stack isn't empty: |
| #string""", withArguments: _withArgumentsInternalProblemStackNotEmpty); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, String string)> |
| codeInternalProblemStackNotEmpty = |
| const Code<Message Function(String name, String string)>( |
| "InternalProblemStackNotEmpty", |
| templateInternalProblemStackNotEmpty, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemStackNotEmpty(String name, String string) { |
| return new Message(codeInternalProblemStackNotEmpty, |
| message: """$name.stack isn't empty: |
| $string""", arguments: {'name': name, 'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateInternalProblemSuperclassNotFound = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Superclass not found '#name'.""", |
| withArguments: _withArgumentsInternalProblemSuperclassNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeInternalProblemSuperclassNotFound = |
| const Code<Message Function(String name)>( |
| "InternalProblemSuperclassNotFound", |
| templateInternalProblemSuperclassNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemSuperclassNotFound(String name) { |
| return new Message(codeInternalProblemSuperclassNotFound, |
| message: """Superclass not found '$name'.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string, String string2)> |
| templateInternalProblemUnexpected = |
| const Template<Message Function(String string, String string2)>( |
| messageTemplate: r"""Expected '#string', but got '#string2'.""", |
| withArguments: _withArgumentsInternalProblemUnexpected); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string, String string2)> |
| codeInternalProblemUnexpected = |
| const Code<Message Function(String string, String string2)>( |
| "InternalProblemUnexpected", |
| templateInternalProblemUnexpected, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemUnexpected(String string, String string2) { |
| return new Message(codeInternalProblemUnexpected, |
| message: """Expected '$string', but got '$string2'.""", |
| arguments: {'string': string, 'string2': string2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string, String string2)> |
| templateInternalProblemUnhandled = |
| const Template<Message Function(String string, String string2)>( |
| messageTemplate: r"""Unhandled #string in #string2.""", |
| withArguments: _withArgumentsInternalProblemUnhandled); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string, String string2)> |
| codeInternalProblemUnhandled = |
| const Code<Message Function(String string, String string2)>( |
| "InternalProblemUnhandled", |
| templateInternalProblemUnhandled, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemUnhandled(String string, String string2) { |
| return new Message(codeInternalProblemUnhandled, |
| message: """Unhandled $string in $string2.""", |
| arguments: {'string': string, 'string2': string2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> |
| templateInternalProblemUnimplemented = |
| const Template<Message Function(String string)>( |
| messageTemplate: r"""Unimplemented #string.""", |
| withArguments: _withArgumentsInternalProblemUnimplemented); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeInternalProblemUnimplemented = |
| const Code<Message Function(String string)>( |
| "InternalProblemUnimplemented", |
| templateInternalProblemUnimplemented, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemUnimplemented(String string) { |
| return new Message(codeInternalProblemUnimplemented, |
| message: """Unimplemented $string.""", arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateInternalProblemUnsupported = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Unsupported operation: '#name'.""", |
| withArguments: _withArgumentsInternalProblemUnsupported); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeInternalProblemUnsupported = |
| const Code<Message Function(String name)>( |
| "InternalProblemUnsupported", |
| templateInternalProblemUnsupported, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalProblemUnsupported(String name) { |
| return new Message(codeInternalProblemUnsupported, |
| message: """Unsupported operation: '$name'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> |
| templateInternalVerificationError = |
| const Template<Message Function(String string)>( |
| messageTemplate: |
| r"""Verification of the generated program failed: #string.""", |
| withArguments: _withArgumentsInternalVerificationError); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeInternalVerificationError = |
| const Code<Message Function(String string)>( |
| "InternalVerificationError", |
| templateInternalVerificationError, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInternalVerificationError(String string) { |
| return new Message(codeInternalVerificationError, |
| message: """Verification of the generated program failed: $string.""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInvalidAwaitFor = messageInvalidAwaitFor; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInvalidAwaitFor = const MessageCode("InvalidAwaitFor", |
| dart2jsCode: "INVALID_AWAIT_FOR", |
| message: |
| r"""'await' is only supported in methods with an 'async' or 'async*' body modifier.""", |
| tip: |
| r"""Try adding 'async' or 'async*' to the method body or removing the 'await' keyword."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInvalidInlineFunctionType = |
| messageInvalidInlineFunctionType; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInvalidInlineFunctionType = const MessageCode( |
| "InvalidInlineFunctionType", |
| dart2jsCode: "INVALID_INLINE_FUNCTION_TYPE", |
| message: r"""Invalid inline function type.""", |
| tip: |
| r"""Try changing the inline function type (as in 'int f()') to a prefixed function type using the `Function` keyword (as in 'int Function() f')."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Uri uri_, String string)> |
| templateInvalidPackageUri = |
| const Template<Message Function(Uri uri_, String string)>( |
| messageTemplate: r"""Invalid package Uri '#uri': |
| #string.""", withArguments: _withArgumentsInvalidPackageUri); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_, String string)> codeInvalidPackageUri = |
| const Code<Message Function(Uri uri_, String string)>( |
| "InvalidPackageUri", |
| templateInvalidPackageUri, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsInvalidPackageUri(Uri uri_, String string) { |
| String uri = relativizeUri(uri_); |
| return new Message(codeInvalidPackageUri, |
| message: """Invalid package Uri '$uri': |
| $string.""", arguments: {'uri': uri_, 'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInvalidSyncModifier = messageInvalidSyncModifier; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInvalidSyncModifier = const MessageCode( |
| "InvalidSyncModifier", |
| dart2jsCode: "INVALID_SYNC_MODIFIER", |
| message: r"""Invalid modifier 'sync'.""", |
| tip: r"""Try replacing 'sync' with 'sync*'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeInvalidVoid = messageInvalidVoid; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageInvalidVoid = const MessageCode("InvalidVoid", |
| dart2jsCode: "VOID_NOT_ALLOWED", |
| message: |
| r"""Type 'void' can't be used here because it isn't a return type.""", |
| tip: |
| r"""Try removing 'void' keyword or replace it with 'var', 'final', or a type."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeListLiteralTooManyTypeArguments = |
| messageListLiteralTooManyTypeArguments; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageListLiteralTooManyTypeArguments = const MessageCode( |
| "ListLiteralTooManyTypeArguments", |
| message: r"""Too many type arguments on List literal."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeListLiteralTypeArgumentMismatch = |
| messageListLiteralTypeArgumentMismatch; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageListLiteralTypeArgumentMismatch = const MessageCode( |
| "ListLiteralTypeArgumentMismatch", |
| message: r"""Map literal requires two type arguments."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, Uri uri_)> |
| templateLocalDefinitionHidesExport = |
| const Template<Message Function(String name, Uri uri_)>( |
| messageTemplate: |
| r"""Local definition of '#name' hides export from '#uri'.""", |
| withArguments: _withArgumentsLocalDefinitionHidesExport); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_)> |
| codeLocalDefinitionHidesExport = |
| const Code<Message Function(String name, Uri uri_)>( |
| "LocalDefinitionHidesExport", |
| templateLocalDefinitionHidesExport, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsLocalDefinitionHidesExport(String name, Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codeLocalDefinitionHidesExport, |
| message: """Local definition of '$name' hides export from '$uri'.""", |
| arguments: {'name': name, 'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name, Uri uri_)> |
| templateLocalDefinitionHidesImport = |
| const Template<Message Function(String name, Uri uri_)>( |
| messageTemplate: |
| r"""Local definition of '#name' hides import from '#uri'.""", |
| withArguments: _withArgumentsLocalDefinitionHidesImport); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_)> |
| codeLocalDefinitionHidesImport = |
| const Code<Message Function(String name, Uri uri_)>( |
| "LocalDefinitionHidesImport", |
| templateLocalDefinitionHidesImport, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsLocalDefinitionHidesImport(String name, Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codeLocalDefinitionHidesImport, |
| message: """Local definition of '$name' hides import from '$uri'.""", |
| arguments: {'name': name, 'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeMetadataTypeArguments = messageMetadataTypeArguments; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageMetadataTypeArguments = const MessageCode( |
| "MetadataTypeArguments", |
| dart2jsCode: "*ignored*", |
| message: r"""An annotation (metadata) can't use type arguments."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateMethodNotFound = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Method not found: '#name'.""", |
| withArguments: _withArgumentsMethodNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeMethodNotFound = |
| const Code<Message Function(String name)>( |
| "MethodNotFound", |
| templateMethodNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsMethodNotFound(String name) { |
| return new Message(codeMethodNotFound, |
| message: """Method not found: '$name'.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeMissingExponent = messageMissingExponent; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageMissingExponent = const MessageCode("MissingExponent", |
| analyzerCode: "MISSING_DIGIT", |
| dart2jsCode: "EXPONENT_MISSING", |
| message: |
| r"""Numbers in exponential notation should always contain an exponent (an integer number with an optional sign).""", |
| tip: |
| r"""Make sure there is an exponent, and remove any whitespace before it."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeMissingInput = messageMissingInput; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageMissingInput = const MessageCode("MissingInput", |
| message: r"""No input file provided to the compiler."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeMissingMain = messageMissingMain; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageMissingMain = const MessageCode("MissingMain", |
| dart2jsCode: "MISSING_MAIN", |
| message: r"""No 'main' method found.""", |
| tip: r"""Try adding a method named 'main' to your program."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function(Uri uri_)> templateMissingPartOf = const Template< |
| Message Function(Uri uri_)>( |
| messageTemplate: |
| r"""Can't use '#uri' as a part, because it has no 'part of' declaration.""", |
| withArguments: _withArgumentsMissingPartOf); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_)> codeMissingPartOf = |
| const Code<Message Function(Uri uri_)>( |
| "MissingPartOf", |
| templateMissingPartOf, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsMissingPartOf(Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codeMissingPartOf, |
| message: |
| """Can't use '$uri' as a part, because it has no 'part of' declaration.""", |
| arguments: {'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeNamedFunctionExpression = messageNamedFunctionExpression; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageNamedFunctionExpression = const MessageCode( |
| "NamedFunctionExpression", |
| dart2jsCode: "*ignored*", |
| message: r"""A function expression can't have a name."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function(Token token)> templateNoFormals = const Template< |
| Message Function(Token token)>( |
| messageTemplate: r"""A function should have formal parameters.""", |
| tipTemplate: |
| r"""Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to declare a getter.""", |
| withArguments: _withArgumentsNoFormals); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeNoFormals = |
| const Code<Message Function(Token token)>("NoFormals", templateNoFormals, |
| dart2jsCode: "*ignored*"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsNoFormals(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeNoFormals, |
| message: """A function should have formal parameters.""", |
| tip: |
| """Try adding '()' after '$lexeme', or add 'get' before '$lexeme' to declare a getter.""", |
| arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeNoUnnamedConstructorInObject = |
| messageNoUnnamedConstructorInObject; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageNoUnnamedConstructorInObject = const MessageCode( |
| "NoUnnamedConstructorInObject", |
| message: r"""'Object' has no unnamed constructor."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String character, |
| int |
| codePoint)> templateNonAsciiIdentifier = const Template< |
| Message Function(String character, int codePoint)>( |
| messageTemplate: |
| r"""The non-ASCII character '#character' (#unicode) can't be used in identifiers, only in strings and comments.""", |
| tipTemplate: |
| r"""Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a dollar sign).""", |
| withArguments: _withArgumentsNonAsciiIdentifier); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String character, int codePoint)> |
| codeNonAsciiIdentifier = |
| const Code<Message Function(String character, int codePoint)>( |
| "NonAsciiIdentifier", templateNonAsciiIdentifier, |
| analyzerCode: "ILLEGAL_CHARACTER", dart2jsCode: "BAD_INPUT_CHARACTER"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsNonAsciiIdentifier(String character, int codePoint) { |
| String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
| return new Message(codeNonAsciiIdentifier, |
| message: |
| """The non-ASCII character '$character' ($unicode) can't be used in identifiers, only in strings and comments.""", |
| tip: """Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$' (a dollar sign).""", |
| arguments: {'character': character, 'codePoint': codePoint}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| int |
| codePoint)> templateNonAsciiWhitespace = const Template< |
| Message Function(int codePoint)>( |
| messageTemplate: |
| r"""The non-ASCII space character #unicode can only be used in strings and comments.""", |
| withArguments: _withArgumentsNonAsciiWhitespace); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(int codePoint)> codeNonAsciiWhitespace = |
| const Code<Message Function(int codePoint)>( |
| "NonAsciiWhitespace", templateNonAsciiWhitespace, |
| analyzerCode: "ILLEGAL_CHARACTER", dart2jsCode: "BAD_INPUT_CHARACTER"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsNonAsciiWhitespace(int codePoint) { |
| String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; |
| return new Message(codeNonAsciiWhitespace, |
| message: |
| """The non-ASCII space 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> codeNonInstanceTypeVariableUse = |
| messageNonInstanceTypeVariableUse; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageNonInstanceTypeVariableUse = const MessageCode( |
| "NonInstanceTypeVariableUse", |
| message: r"""Can only use type variables in instance methods."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateNotAType = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""'#name' isn't a type.""", |
| withArguments: _withArgumentsNotAType); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeNotAType = |
| const Code<Message Function(String name)>( |
| "NotAType", |
| templateNotAType, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsNotAType(String name) { |
| return new Message(codeNotAType, |
| message: """'$name' isn't a type.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeNotAnLvalue = messageNotAnLvalue; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageNotAnLvalue = |
| const MessageCode("NotAnLvalue", message: r"""Can't assign to this."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeOnlyTry = messageOnlyTry; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageOnlyTry = const MessageCode("OnlyTry", |
| dart2jsCode: "*ignored*", |
| message: |
| r"""Try block should be followed by 'on', 'catch', or 'finally' block.""", |
| tip: r"""Did you forget to add a 'finally' block?"""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String |
| name)> templateOperatorMinusParameterMismatch = const Template< |
| Message Function(String name)>( |
| messageTemplate: r"""Operator '#name' should have zero or one parameter.""", |
| tipTemplate: |
| r"""With zero parameters, it has the syntactic form '-a', formally known as 'unary-'. With one parameter, it has the syntactic form 'a - b', formally known as '-'.""", |
| withArguments: _withArgumentsOperatorMinusParameterMismatch); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeOperatorMinusParameterMismatch = |
| const Code<Message Function(String name)>( |
| "OperatorMinusParameterMismatch", |
| templateOperatorMinusParameterMismatch, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsOperatorMinusParameterMismatch(String name) { |
| return new Message(codeOperatorMinusParameterMismatch, |
| message: """Operator '$name' should have zero or one parameter.""", |
| tip: |
| """With zero parameters, it has the syntactic form '-a', formally known as 'unary-'. With one parameter, it has the syntactic form 'a - b', formally known as '-'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateOperatorParameterMismatch0 = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Operator '#name' shouldn't have any parameters.""", |
| withArguments: _withArgumentsOperatorParameterMismatch0); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeOperatorParameterMismatch0 = |
| const Code<Message Function(String name)>( |
| "OperatorParameterMismatch0", |
| templateOperatorParameterMismatch0, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsOperatorParameterMismatch0(String name) { |
| return new Message(codeOperatorParameterMismatch0, |
| message: """Operator '$name' shouldn't have any parameters.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateOperatorParameterMismatch1 = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Operator '#name' should have exactly one parameter.""", |
| withArguments: _withArgumentsOperatorParameterMismatch1); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeOperatorParameterMismatch1 = |
| const Code<Message Function(String name)>( |
| "OperatorParameterMismatch1", |
| templateOperatorParameterMismatch1, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsOperatorParameterMismatch1(String name) { |
| return new Message(codeOperatorParameterMismatch1, |
| message: """Operator '$name' should have exactly one parameter.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateOperatorParameterMismatch2 = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Operator '#name' should have exactly two parameters.""", |
| withArguments: _withArgumentsOperatorParameterMismatch2); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeOperatorParameterMismatch2 = |
| const Code<Message Function(String name)>( |
| "OperatorParameterMismatch2", |
| templateOperatorParameterMismatch2, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsOperatorParameterMismatch2(String name) { |
| return new Message(codeOperatorParameterMismatch2, |
| message: """Operator '$name' should have exactly two parameters.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeOperatorWithOptionalFormals = |
| messageOperatorWithOptionalFormals; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageOperatorWithOptionalFormals = const MessageCode( |
| "OperatorWithOptionalFormals", |
| message: r"""An operator can't have optional parameters."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String name, |
| String |
| name2)> templateOverrideFewerNamedArguments = const Template< |
| Message Function(String name, String name2)>( |
| messageTemplate: |
| r"""The method '#name' has fewer named arguments than those of overridden method '#name2'.""", |
| withArguments: _withArgumentsOverrideFewerNamedArguments); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, String name2)> |
| codeOverrideFewerNamedArguments = |
| const Code<Message Function(String name, String name2)>( |
| "OverrideFewerNamedArguments", |
| templateOverrideFewerNamedArguments, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsOverrideFewerNamedArguments(String name, String name2) { |
| return new Message(codeOverrideFewerNamedArguments, |
| message: |
| """The method '$name' has fewer named arguments than those of overridden method '$name2'.""", |
| arguments: {'name': name, 'name2': name2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String name, |
| String |
| name2)> templateOverrideFewerPositionalArguments = const Template< |
| Message Function(String name, String name2)>( |
| messageTemplate: |
| r"""The method '#name' has fewer positional arguments than those of overridden method '#name2'.""", |
| withArguments: _withArgumentsOverrideFewerPositionalArguments); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, String name2)> |
| codeOverrideFewerPositionalArguments = |
| const Code<Message Function(String name, String name2)>( |
| "OverrideFewerPositionalArguments", |
| templateOverrideFewerPositionalArguments, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsOverrideFewerPositionalArguments( |
| String name, String name2) { |
| return new Message(codeOverrideFewerPositionalArguments, |
| message: |
| """The method '$name' has fewer positional arguments than those of overridden method '$name2'.""", |
| arguments: {'name': name, 'name2': name2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String name, |
| String name2, |
| String |
| name3)> templateOverrideMismatchNamedParameter = const Template< |
| Message Function(String name, String name2, String name3)>( |
| messageTemplate: |
| r"""The method '#name' doesn't have the named parameter '#name2' of overriden method '#name3'.""", |
| withArguments: _withArgumentsOverrideMismatchNamedParameter); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, String name2, String name3)> |
| codeOverrideMismatchNamedParameter = |
| const Code<Message Function(String name, String name2, String name3)>( |
| "OverrideMismatchNamedParameter", |
| templateOverrideMismatchNamedParameter, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsOverrideMismatchNamedParameter( |
| String name, String name2, String name3) { |
| return new Message(codeOverrideMismatchNamedParameter, |
| message: |
| """The method '$name' doesn't have the named parameter '$name2' of overriden method '$name3'.""", |
| arguments: {'name': name, 'name2': name2, 'name3': name3}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String name, |
| String |
| name2)> templateOverrideMoreRequiredArguments = const Template< |
| Message Function(String name, String name2)>( |
| messageTemplate: |
| r"""The method '#name' has more required arguments than those of overridden method '#name2'.""", |
| withArguments: _withArgumentsOverrideMoreRequiredArguments); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, String name2)> |
| codeOverrideMoreRequiredArguments = |
| const Code<Message Function(String name, String name2)>( |
| "OverrideMoreRequiredArguments", |
| templateOverrideMoreRequiredArguments, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsOverrideMoreRequiredArguments(String name, String name2) { |
| return new Message(codeOverrideMoreRequiredArguments, |
| message: |
| """The method '$name' has more required arguments than those of overridden method '$name2'.""", |
| arguments: {'name': name, 'name2': name2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String name, |
| String |
| name2)> templateOverrideTypeVariablesMismatch = const Template< |
| Message Function(String name, String name2)>( |
| messageTemplate: |
| r"""Declared type variables of '#name' doesn't match those on overridden method '#name2'.""", |
| withArguments: _withArgumentsOverrideTypeVariablesMismatch); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, String name2)> |
| codeOverrideTypeVariablesMismatch = |
| const Code<Message Function(String name, String name2)>( |
| "OverrideTypeVariablesMismatch", |
| templateOverrideTypeVariablesMismatch, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsOverrideTypeVariablesMismatch(String name, String name2) { |
| return new Message(codeOverrideTypeVariablesMismatch, |
| message: |
| """Declared type variables of '$name' doesn't match those on overridden method '$name2'.""", |
| arguments: {'name': name, 'name2': name2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function(String name, Uri uri_)> templatePackageNotFound = |
| const Template<Message Function(String name, Uri uri_)>( |
| messageTemplate: |
| r"""Could not resolve the package '#name' in '#uri'.""", |
| withArguments: _withArgumentsPackageNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name, Uri uri_)> codePackageNotFound = |
| const Code<Message Function(String name, Uri uri_)>( |
| "PackageNotFound", |
| templatePackageNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsPackageNotFound(String name, Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codePackageNotFound, |
| message: """Could not resolve the package '$name' in '$uri'.""", |
| arguments: {'name': name, 'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| Uri uri_, |
| String name, |
| String |
| name2)> templatePartOfLibraryNameMismatch = const Template< |
| Message Function(Uri uri_, String name, String name2)>( |
| messageTemplate: |
| r"""Using '#uri' as part of '#name' but its 'part of' declaration says '#name2'.""", |
| withArguments: _withArgumentsPartOfLibraryNameMismatch); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_, String name, String name2)> |
| codePartOfLibraryNameMismatch = |
| const Code<Message Function(Uri uri_, String name, String name2)>( |
| "PartOfLibraryNameMismatch", |
| templatePartOfLibraryNameMismatch, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsPartOfLibraryNameMismatch( |
| Uri uri_, String name, String name2) { |
| String uri = relativizeUri(uri_); |
| return new Message(codePartOfLibraryNameMismatch, |
| message: |
| """Using '$uri' as part of '$name' but its 'part of' declaration says '$name2'.""", |
| arguments: {'uri': uri_, 'name': name, 'name2': name2}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codePartOfSelf = messagePartOfSelf; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messagePartOfSelf = const MessageCode("PartOfSelf", |
| message: r"""A file can't be a part of itself."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| Uri uri_, |
| Uri uri2_, |
| String |
| string)> templatePartOfUriMismatch = const Template< |
| Message Function(Uri uri_, Uri uri2_, String string)>( |
| messageTemplate: |
| r"""Using '#uri' as part of '#uri2' but its 'part of' declaration says '#string'.""", |
| withArguments: _withArgumentsPartOfUriMismatch); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_, Uri uri2_, String string)> |
| codePartOfUriMismatch = |
| const Code<Message Function(Uri uri_, Uri uri2_, String string)>( |
| "PartOfUriMismatch", |
| templatePartOfUriMismatch, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsPartOfUriMismatch(Uri uri_, Uri uri2_, String string) { |
| String uri = relativizeUri(uri_); |
| String uri2 = relativizeUri(uri2_); |
| return new Message(codePartOfUriMismatch, |
| message: |
| """Using '$uri' as part of '$uri2' but its 'part of' declaration says '$string'.""", |
| arguments: {'uri': uri_, 'uri2': uri2_, 'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| Uri uri_, |
| Uri uri2_, |
| String |
| name)> templatePartOfUseUri = const Template< |
| Message Function(Uri uri_, Uri uri2_, String name)>( |
| messageTemplate: |
| r"""Using '#uri' as part of '#uri2' but its 'part of' declaration says '#name'.""", |
| tipTemplate: |
| r"""Try changing the 'part of' declaration to use a relative file name.""", |
| withArguments: _withArgumentsPartOfUseUri); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_, Uri uri2_, String name)> |
| codePartOfUseUri = |
| const Code<Message Function(Uri uri_, Uri uri2_, String name)>( |
| "PartOfUseUri", |
| templatePartOfUseUri, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsPartOfUseUri(Uri uri_, Uri uri2_, String name) { |
| String uri = relativizeUri(uri_); |
| String uri2 = relativizeUri(uri2_); |
| return new Message(codePartOfUseUri, |
| message: |
| """Using '$uri' as part of '$uri2' but its 'part of' declaration says '$name'.""", |
| tip: """Try changing the 'part of' declaration to use a relative file name.""", |
| arguments: {'uri': uri_, 'uri2': uri2_, 'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Uri uri_)> templatePartTwice = |
| const Template<Message Function(Uri uri_)>( |
| messageTemplate: r"""Can't use '#uri' as a part more than once.""", |
| withArguments: _withArgumentsPartTwice); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_)> codePartTwice = |
| const Code<Message Function(Uri uri_)>( |
| "PartTwice", |
| templatePartTwice, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsPartTwice(Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codePartTwice, |
| message: """Can't use '$uri' as a part more than once.""", |
| arguments: {'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codePlatformPrivateLibraryAccess = |
| messagePlatformPrivateLibraryAccess; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messagePlatformPrivateLibraryAccess = const MessageCode( |
| "PlatformPrivateLibraryAccess", |
| message: r"""Can't access platform private library."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codePositionalParameterWithEquals = |
| messagePositionalParameterWithEquals; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messagePositionalParameterWithEquals = const MessageCode( |
| "PositionalParameterWithEquals", |
| dart2jsCode: "POSITIONAL_PARAMETER_WITH_EQUALS", |
| message: |
| r"""Positional optional parameters can't use ':' to specify a default value.""", |
| tip: r"""Try replacing ':' with '='."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templatePreviousUseOfName = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Previous use of '#name'.""", |
| withArguments: _withArgumentsPreviousUseOfName); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codePreviousUseOfName = |
| const Code<Message Function(String name)>( |
| "PreviousUseOfName", |
| templatePreviousUseOfName, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsPreviousUseOfName(String name) { |
| return new Message(codePreviousUseOfName, |
| message: """Previous use of '$name'.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codePrivateNamedParameter = messagePrivateNamedParameter; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messagePrivateNamedParameter = const MessageCode( |
| "PrivateNamedParameter", |
| dart2jsCode: "*ignored*", |
| message: r"""An optional named parameter can't start with '_'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateRedirectionTargetNotFound = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Redirection constructor target not found: '#name'""", |
| withArguments: _withArgumentsRedirectionTargetNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeRedirectionTargetNotFound = |
| const Code<Message Function(String name)>( |
| "RedirectionTargetNotFound", |
| templateRedirectionTargetNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsRedirectionTargetNotFound(String name) { |
| return new Message(codeRedirectionTargetNotFound, |
| message: """Redirection constructor target not found: '$name'""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeRequiredParameterWithDefault = |
| messageRequiredParameterWithDefault; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageRequiredParameterWithDefault = const MessageCode( |
| "RequiredParameterWithDefault", |
| dart2jsCode: "REQUIRED_PARAMETER_WITH_DEFAULT", |
| message: r"""Non-optional parameters can't have a default value.""", |
| tip: |
| r"""Try removing the default value or making the parameter optional."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeReturnTypeFunctionExpression = |
| messageReturnTypeFunctionExpression; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageReturnTypeFunctionExpression = const MessageCode( |
| "ReturnTypeFunctionExpression", |
| dart2jsCode: "*ignored*", |
| message: r"""A function expression can't have a return type."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Uri uri_)> templateSdkRootNotFound = |
| const Template<Message Function(Uri uri_)>( |
| messageTemplate: r"""SDK root directory not found: #uri.""", |
| withArguments: _withArgumentsSdkRootNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_)> codeSdkRootNotFound = |
| const Code<Message Function(Uri uri_)>( |
| "SdkRootNotFound", |
| templateSdkRootNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSdkRootNotFound(Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codeSdkRootNotFound, |
| message: """SDK root directory not found: $uri.""", |
| arguments: {'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| Uri |
| uri_)> templateSdkSpecificationNotFound = const Template< |
| Message Function(Uri uri_)>( |
| messageTemplate: r"""SDK libraries specification not found: #uri.""", |
| tipTemplate: |
| r"""Normally, the specification is a file named 'libraries.json' in the Dart SDK install location.""", |
| withArguments: _withArgumentsSdkSpecificationNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_)> codeSdkSpecificationNotFound = |
| const Code<Message Function(Uri uri_)>( |
| "SdkSpecificationNotFound", |
| templateSdkSpecificationNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSdkSpecificationNotFound(Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codeSdkSpecificationNotFound, |
| message: """SDK libraries specification not found: $uri.""", |
| tip: |
| """Normally, the specification is a file named 'libraries.json' in the Dart SDK install location.""", |
| arguments: {'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Uri uri_)> templateSdkSummaryNotFound = |
| const Template<Message Function(Uri uri_)>( |
| messageTemplate: r"""SDK summary not found: #uri.""", |
| withArguments: _withArgumentsSdkSummaryNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Uri uri_)> codeSdkSummaryNotFound = |
| const Code<Message Function(Uri uri_)>( |
| "SdkSummaryNotFound", |
| templateSdkSummaryNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSdkSummaryNotFound(Uri uri_) { |
| String uri = relativizeUri(uri_); |
| return new Message(codeSdkSummaryNotFound, |
| message: """SDK summary not found: $uri.""", arguments: {'uri': uri_}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateSetterNotFound = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Setter not found: '#name'.""", |
| withArguments: _withArgumentsSetterNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeSetterNotFound = |
| const Code<Message Function(String name)>( |
| "SetterNotFound", |
| templateSetterNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSetterNotFound(String name) { |
| return new Message(codeSetterNotFound, |
| message: """Setter not found: '$name'.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeSetterNotSync = messageSetterNotSync; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageSetterNotSync = const MessageCode("SetterNotSync", |
| dart2jsCode: "*ignored*", |
| message: r"""Setters can't use 'async', 'async*', or 'sync*'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeStackOverflow = messageStackOverflow; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageStackOverflow = const MessageCode("StackOverflow", |
| dart2jsCode: "GENERIC", message: r"""Stack overflow."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeSuperAsIdentifier = messageSuperAsIdentifier; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageSuperAsIdentifier = const MessageCode( |
| "SuperAsIdentifier", |
| message: r"""Expected identifier, but got 'super'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeSuperNullAware = messageSuperNullAware; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageSuperNullAware = const MessageCode("SuperNullAware", |
| dart2jsCode: "*ignored*", |
| message: r"""'super' can't be null.""", |
| tip: r"""Try replacing '?.' with '.'"""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String |
| name)> templateSuperclassHasNoDefaultConstructor = const Template< |
| Message Function(String name)>( |
| messageTemplate: |
| r"""The superclass, '#name', has no unnamed constructor that takes no arguments.""", |
| withArguments: _withArgumentsSuperclassHasNoDefaultConstructor); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> |
| codeSuperclassHasNoDefaultConstructor = |
| const Code<Message Function(String name)>( |
| "SuperclassHasNoDefaultConstructor", |
| templateSuperclassHasNoDefaultConstructor, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSuperclassHasNoDefaultConstructor(String name) { |
| return new Message(codeSuperclassHasNoDefaultConstructor, |
| message: |
| """The superclass, '$name', has no unnamed constructor that takes no arguments.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateSuperclassHasNoGetter = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Superclass has no getter named '#name'.""", |
| withArguments: _withArgumentsSuperclassHasNoGetter); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeSuperclassHasNoGetter = |
| const Code<Message Function(String name)>( |
| "SuperclassHasNoGetter", |
| templateSuperclassHasNoGetter, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSuperclassHasNoGetter(String name) { |
| return new Message(codeSuperclassHasNoGetter, |
| message: """Superclass has no getter named '$name'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateSuperclassHasNoMethod = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Superclass has no method named '#name'.""", |
| withArguments: _withArgumentsSuperclassHasNoMethod); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeSuperclassHasNoMethod = |
| const Code<Message Function(String name)>( |
| "SuperclassHasNoMethod", |
| templateSuperclassHasNoMethod, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSuperclassHasNoMethod(String name) { |
| return new Message(codeSuperclassHasNoMethod, |
| message: """Superclass has no method named '$name'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateSuperclassHasNoSetter = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Superclass has no setter named '#name'.""", |
| withArguments: _withArgumentsSuperclassHasNoSetter); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeSuperclassHasNoSetter = |
| const Code<Message Function(String name)>( |
| "SuperclassHasNoSetter", |
| templateSuperclassHasNoSetter, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSuperclassHasNoSetter(String name) { |
| return new Message(codeSuperclassHasNoSetter, |
| message: """Superclass has no setter named '$name'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template< |
| Message Function( |
| String |
| name)> templateSuperclassMethodArgumentMismatch = const Template< |
| Message Function(String name)>( |
| messageTemplate: |
| r"""Superclass doesn't have a method named '#name' with matching arguments.""", |
| withArguments: _withArgumentsSuperclassMethodArgumentMismatch); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeSuperclassMethodArgumentMismatch = |
| const Code<Message Function(String name)>( |
| "SuperclassMethodArgumentMismatch", |
| templateSuperclassMethodArgumentMismatch, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSuperclassMethodArgumentMismatch(String name) { |
| return new Message(codeSuperclassMethodArgumentMismatch, |
| message: |
| """Superclass doesn't have a method named '$name' with matching arguments.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeSupertypeIsFunction = messageSupertypeIsFunction; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageSupertypeIsFunction = const MessageCode( |
| "SupertypeIsFunction", |
| message: r"""Can't use a function type as supertype."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateSupertypeIsIllegal = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""The type '#name' can't be used as supertype.""", |
| withArguments: _withArgumentsSupertypeIsIllegal); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeSupertypeIsIllegal = |
| const Code<Message Function(String name)>( |
| "SupertypeIsIllegal", |
| templateSupertypeIsIllegal, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSupertypeIsIllegal(String name) { |
| return new Message(codeSupertypeIsIllegal, |
| message: """The type '$name' can't be used as supertype.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateSupertypeIsTypeVariable = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""The type variable '#name' can't be used as supertype.""", |
| withArguments: _withArgumentsSupertypeIsTypeVariable); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeSupertypeIsTypeVariable = |
| const Code<Message Function(String name)>( |
| "SupertypeIsTypeVariable", |
| templateSupertypeIsTypeVariable, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsSupertypeIsTypeVariable(String name) { |
| return new Message(codeSupertypeIsTypeVariable, |
| message: """The type variable '$name' can't be used as supertype.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeSwitchCaseFallThrough = messageSwitchCaseFallThrough; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageSwitchCaseFallThrough = const MessageCode( |
| "SwitchCaseFallThrough", |
| message: r"""Switch case may fall through to the next case."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateThisAccessInFieldInitializer = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Can't access 'this' in a field initializer to read '#name'.""", |
| withArguments: _withArgumentsThisAccessInFieldInitializer); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeThisAccessInFieldInitializer = |
| const Code<Message Function(String name)>( |
| "ThisAccessInFieldInitializer", |
| templateThisAccessInFieldInitializer, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsThisAccessInFieldInitializer(String name) { |
| return new Message(codeThisAccessInFieldInitializer, |
| message: |
| """Can't access 'this' in a field initializer to read '$name'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeThisAsIdentifier = messageThisAsIdentifier; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageThisAsIdentifier = const MessageCode( |
| "ThisAsIdentifier", |
| message: r"""Expected identifier, but got 'this'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeTypeAfterVar = messageTypeAfterVar; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageTypeAfterVar = const MessageCode("TypeAfterVar", |
| dart2jsCode: "EXTRANEOUS_MODIFIER", |
| message: r"""Can't have both a type and 'var'.""", |
| tip: r"""Try removing 'var.'"""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateTypeArgumentsOnTypeVariable = |
| const Template<Message Function(String name)>( |
| messageTemplate: |
| r"""Can't use type arguments with type variable '#name'.""", |
| withArguments: _withArgumentsTypeArgumentsOnTypeVariable); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeTypeArgumentsOnTypeVariable = |
| const Code<Message Function(String name)>( |
| "TypeArgumentsOnTypeVariable", |
| templateTypeArgumentsOnTypeVariable, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsTypeArgumentsOnTypeVariable(String name) { |
| return new Message(codeTypeArgumentsOnTypeVariable, |
| message: """Can't use type arguments with type variable '$name'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> templateTypeNotFound = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""Type '#name' not found.""", |
| withArguments: _withArgumentsTypeNotFound); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeTypeNotFound = |
| const Code<Message Function(String name)>( |
| "TypeNotFound", |
| templateTypeNotFound, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsTypeNotFound(String name) { |
| return new Message(codeTypeNotFound, |
| message: """Type '$name' not found.""", arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeTypeRequired = messageTypeRequired; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageTypeRequired = const MessageCode("TypeRequired", |
| message: r"""A type or modifier is required here.""", |
| tip: r"""Try adding a type, 'var', 'const', or 'final'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeTypeVariableDuplicatedName = |
| messageTypeVariableDuplicatedName; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageTypeVariableDuplicatedName = const MessageCode( |
| "TypeVariableDuplicatedName", |
| message: r"""A type variable can't have the same name as another."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String name)> |
| templateTypeVariableDuplicatedNameCause = |
| const Template<Message Function(String name)>( |
| messageTemplate: r"""The other type variable named '#name'.""", |
| withArguments: _withArgumentsTypeVariableDuplicatedNameCause); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String name)> codeTypeVariableDuplicatedNameCause = |
| const Code<Message Function(String name)>( |
| "TypeVariableDuplicatedNameCause", |
| templateTypeVariableDuplicatedNameCause, |
| ); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsTypeVariableDuplicatedNameCause(String name) { |
| return new Message(codeTypeVariableDuplicatedNameCause, |
| message: """The other type variable named '$name'.""", |
| arguments: {'name': name}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeTypeVariableInStaticContext = |
| messageTypeVariableInStaticContext; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageTypeVariableInStaticContext = const MessageCode( |
| "TypeVariableInStaticContext", |
| message: r"""Type variables can't be used in static members."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeTypeVariableSameNameAsEnclosing = |
| messageTypeVariableSameNameAsEnclosing; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageTypeVariableSameNameAsEnclosing = const MessageCode( |
| "TypeVariableSameNameAsEnclosing", |
| message: |
| r"""A type variable can't have the same name as its enclosing declaration."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeTypedefNotFunction = messageTypedefNotFunction; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageTypedefNotFunction = const MessageCode( |
| "TypedefNotFunction", |
| message: r"""Can't create typedef from non-function type."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeUnexpectedDollarInString = messageUnexpectedDollarInString; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageUnexpectedDollarInString = const MessageCode( |
| "UnexpectedDollarInString", |
| dart2jsCode: "MALFORMED_STRING_LITERAL", |
| message: |
| r"""A '$' has special meaning inside a string, and must be followed by an identifier or an expression in curly braces ({}).""", |
| tip: r"""Try adding a backslash (\) to escape the '$'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(Token token)> templateUnexpectedToken = |
| const Template<Message Function(Token token)>( |
| messageTemplate: r"""Unexpected token '#lexeme'.""", |
| withArguments: _withArgumentsUnexpectedToken); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(Token token)> codeUnexpectedToken = |
| const Code<Message Function(Token token)>( |
| "UnexpectedToken", templateUnexpectedToken, |
| dart2jsCode: "*fatal*"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsUnexpectedToken(Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeUnexpectedToken, |
| message: """Unexpected token '$lexeme'.""", arguments: {'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string, Token token)> |
| templateUnmatchedToken = |
| const Template<Message Function(String string, Token token)>( |
| messageTemplate: r"""Can't find '#string' to match '#lexeme'.""", |
| withArguments: _withArgumentsUnmatchedToken); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string, Token token)> codeUnmatchedToken = |
| const Code<Message Function(String string, Token token)>( |
| "UnmatchedToken", templateUnmatchedToken, |
| dart2jsCode: "UNMATCHED_TOKEN"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsUnmatchedToken(String string, Token token) { |
| String lexeme = token.lexeme; |
| return new Message(codeUnmatchedToken, |
| message: """Can't find '$string' to match '$lexeme'.""", |
| arguments: {'string': string, 'token': token}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> templateUnspecified = |
| const Template<Message Function(String string)>( |
| messageTemplate: r"""#string""", |
| withArguments: _withArgumentsUnspecified); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeUnspecified = |
| const Code<Message Function(String string)>( |
| "Unspecified", templateUnspecified, |
| dart2jsCode: "GENERIC"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsUnspecified(String string) { |
| return new Message(codeUnspecified, |
| message: """$string""", arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeUnsupportedPrefixPlus = messageUnsupportedPrefixPlus; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageUnsupportedPrefixPlus = const MessageCode( |
| "UnsupportedPrefixPlus", |
| dart2jsCode: "UNSUPPORTED_PREFIX_PLUS", |
| message: r"""'+' is not a prefix operator. """, |
| tip: r"""Try removing '+'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeUnterminatedComment = messageUnterminatedComment; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageUnterminatedComment = const MessageCode( |
| "UnterminatedComment", |
| analyzerCode: "UNTERMINATED_MULTI_LINE_COMMENT", |
| dart2jsCode: "UNTERMINATED_COMMENT", |
| message: r"""Comment starting with '/*' must end with '*/'."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Template<Message Function(String string)> templateUnterminatedString = |
| const Template<Message Function(String string)>( |
| messageTemplate: r"""String must end with #string.""", |
| withArguments: _withArgumentsUnterminatedString); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Message Function(String string)> codeUnterminatedString = |
| const Code<Message Function(String string)>( |
| "UnterminatedString", templateUnterminatedString, |
| analyzerCode: "UNTERMINATED_STRING_LITERAL", |
| dart2jsCode: "UNTERMINATED_STRING"); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| Message _withArgumentsUnterminatedString(String string) { |
| return new Message(codeUnterminatedString, |
| message: """String must end with $string.""", |
| arguments: {'string': string}); |
| } |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeUnterminatedToken = messageUnterminatedToken; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageUnterminatedToken = const MessageCode( |
| "UnterminatedToken", |
| dart2jsCode: "UNTERMINATED_TOKEN", |
| message: r"""Incomplete token."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeYieldAsIdentifier = messageYieldAsIdentifier; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageYieldAsIdentifier = const MessageCode( |
| "YieldAsIdentifier", |
| dart2jsCode: "*ignored*", |
| message: |
| r"""'yield' can't be used as an identifier in 'async', 'async*', or 'sync*' methods."""); |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; |
| |
| // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| const MessageCode messageYieldNotGenerator = const MessageCode( |
| "YieldNotGenerator", |
| dart2jsCode: "*ignored*", |
| message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); |