| # Copyright (c) 2025, 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. |
| |
| # Run |
| # |
| # dart run pkg/analyzer/tool/messages/generate.dart |
| # |
| # to regenerate messages after having edited this file. |
| |
| # See `pkg/analyzer/messages.yaml` for a description of the contents |
| # of this file. |
| |
| TransformSetErrorCode: |
| conflictingKey: |
| type: compileTimeError |
| parameters: |
| Object p0: the conflicting key |
| Object p1: the key that it conflicts with |
| problemMessage: "The key '#p0' can't be used when '#p1' is also used." |
| hasPublishedDocs: false |
| expectedPrimary: |
| type: compileTimeError |
| parameters: none |
| problemMessage: "Expected either an identifier or a string literal." |
| hasPublishedDocs: false |
| incompatibleElementKind: |
| type: compileTimeError |
| parameters: |
| Object p0: the old kind |
| Object p1: the new kind |
| problemMessage: "An element of kind '#p0' can't be replaced by an element of kind '#p1'." |
| hasPublishedDocs: false |
| invalidChangeForKind: |
| type: compileTimeError |
| parameters: |
| Object p0: the change kind that is invalid |
| Object p1: the element kind for the transform |
| problemMessage: "A change of type '#p0' can't be used for an element of kind '#p1'." |
| hasPublishedDocs: false |
| invalidCharacter: |
| type: compileTimeError |
| parameters: |
| Object p0: the character that is invalid |
| problemMessage: "Invalid character '#p0'." |
| hasPublishedDocs: false |
| invalidKey: |
| type: compileTimeError |
| parameters: |
| Object p0: the actual type of the key |
| problemMessage: "Keys must be of type 'String' but found the type '#p0'." |
| hasPublishedDocs: false |
| invalidRequiredIf: |
| type: compileTimeError |
| parameters: none |
| problemMessage: "The key 'requiredIf' can only be used with optional named parameters." |
| hasPublishedDocs: false |
| invalidValue: |
| type: compileTimeError |
| parameters: |
| Object p0: the key with which the value is associated |
| Object p1: the expected type of the value |
| Object p2: the actual type of the value |
| problemMessage: "The value of '#p0' should be of type '#p1' but is of type '#p2'." |
| hasPublishedDocs: false |
| invalidParameterStyle: |
| type: compileTimeError |
| parameters: |
| Object p0: the list of valid parameter styles |
| problemMessage: "The parameter style must be one of the following: #p0." |
| hasPublishedDocs: false |
| invalidValueOneOf: |
| type: compileTimeError |
| parameters: |
| Object p0: the key with which the value is associated |
| Object p1: the allowed values as a comma-separated list |
| problemMessage: "The value of '#p0' must be one of the following: '#p1'." |
| hasPublishedDocs: false |
| missingKey: |
| type: compileTimeError |
| parameters: |
| Object p0: the missing key |
| problemMessage: "Missing the required key '#p0'." |
| hasPublishedDocs: false |
| missingOneOfMultipleKeys: |
| type: compileTimeError |
| parameters: |
| Object p0: the list of valid keys |
| problemMessage: "Exactly one of the following keys must be provided: #p0." |
| hasPublishedDocs: false |
| missingTemplateEnd: |
| type: compileTimeError |
| parameters: none |
| problemMessage: "Missing the end brace for the template." |
| hasPublishedDocs: false |
| missingToken: |
| type: compileTimeError |
| parameters: |
| Object p0: a description of the expected kinds of tokens |
| problemMessage: "Expected to find #p0." |
| hasPublishedDocs: false |
| missingUri: |
| type: compileTimeError |
| parameters: none |
| problemMessage: "At least one URI must be provided." |
| hasPublishedDocs: false |
| undefinedVariable: |
| type: compileTimeError |
| parameters: |
| Object p0: the missing key |
| problemMessage: "The variable '#p0' isn't defined." |
| hasPublishedDocs: false |
| unexpectedTransformSetToken: |
| type: compileTimeError |
| parameters: |
| Object p0: the token that was unexpectedly found |
| problemMessage: "Didn't expect to find #p0." |
| hasPublishedDocs: false |
| unknownAccessor: |
| type: compileTimeError |
| parameters: |
| Object p0: a description of the expected kind of token |
| problemMessage: "The accessor '#p0' is invalid." |
| hasPublishedDocs: false |
| unsupportedKey: |
| type: compileTimeError |
| parameters: |
| Object p0: the unsupported key |
| problemMessage: "The key '#p0' isn't supported." |
| hasPublishedDocs: false |
| unsupportedStatic: |
| type: compileTimeError |
| parameters: none |
| problemMessage: "The key 'static' is only supported for elements in a class, enum, extension, or mixin." |
| hasPublishedDocs: false |
| unsupportedVersion: |
| type: compileTimeError |
| parameters: none |
| problemMessage: "Only version '1' is supported at this time." |
| hasPublishedDocs: false |
| wrongToken: |
| type: compileTimeError |
| parameters: |
| Object p0: a description of the expected kind of token |
| Object p1: a description of the actual kind of token |
| problemMessage: "Expected to find #p0, but found #p1." |
| hasPublishedDocs: false |
| yamlSyntaxError: |
| type: compileTimeError |
| parameters: |
| Object p0: the message produced by the YAML parser |
| problemMessage: "Parse error: #p0" |
| hasPublishedDocs: false |