| OLD | NEW |
| 1 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 # Each entry in this map corresponds to a diagnostic message. Ideally, each | 5 # Each entry in this map corresponds to a diagnostic message. Ideally, each |
| 6 # entry contains three parts: | 6 # entry contains three parts: |
| 7 # | 7 # |
| 8 # 1. A message template (template). | 8 # 1. A message template (template). |
| 9 # | 9 # |
| 10 # 2. A suggestion for how to correct the problem (tip). | 10 # 2. A suggestion for how to correct the problem (tip). |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 # | 28 # |
| 29 # `#name` a name (a string). | 29 # `#name` a name (a string). |
| 30 # | 30 # |
| 31 # `#lexeme` a token. The token's `lexeme` property is used. | 31 # `#lexeme` a token. The token's `lexeme` property is used. |
| 32 # | 32 # |
| 33 # `#string` a string. | 33 # `#string` a string. |
| 34 | 34 |
| 35 AsciiControlCharacter: | 35 AsciiControlCharacter: |
| 36 template: "The control character #unicode can only be used in strings and comm
ents." | 36 template: "The control character #unicode can only be used in strings and comm
ents." |
| 37 dart2jsCode: BAD_INPUT_CHARACTER | 37 dart2jsCode: BAD_INPUT_CHARACTER |
| 38 analyzerCode: ILLEGAL_CHARACTER |
| 38 expression: "\x1b 1" | 39 expression: "\x1b 1" |
| 39 | 40 |
| 40 NonAsciiIdentifier: | 41 NonAsciiIdentifier: |
| 41 template: "The non-ASCII character '#character' (#unicode) can't be used in id
entifiers, only in strings and comments." | 42 template: "The non-ASCII character '#character' (#unicode) can't be used in id
entifiers, only in strings and comments." |
| 42 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a do
llar sign)." | 43 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a do
llar sign)." |
| 43 analyzerCode: ILLEGAL_CHARACTER | 44 analyzerCode: ILLEGAL_CHARACTER |
| 44 dart2jsCode: BAD_INPUT_CHARACTER | 45 dart2jsCode: BAD_INPUT_CHARACTER |
| 45 expression: "å" | 46 expression: "å" |
| 46 | 47 |
| 47 NonAsciiWhitespace: | 48 NonAsciiWhitespace: |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 dart2jsCode: FASTA_IGNORED | 443 dart2jsCode: FASTA_IGNORED |
| 443 | 444 |
| 444 FinalFieldWithoutInitializer: | 445 FinalFieldWithoutInitializer: |
| 445 template: "A 'final' field must be initialized." | 446 template: "A 'final' field must be initialized." |
| 446 tip: "Try adding '= <initializer>'." | 447 tip: "Try adding '= <initializer>'." |
| 447 dart2jsCode: FASTA_IGNORED | 448 dart2jsCode: FASTA_IGNORED |
| 448 | 449 |
| 449 MetadataTypeArguments: | 450 MetadataTypeArguments: |
| 450 template: "An annotation (metadata) can't use type arguments." | 451 template: "An annotation (metadata) can't use type arguments." |
| 451 dart2jsCode: FASTA_IGNORED | 452 dart2jsCode: FASTA_IGNORED |
| OLD | NEW |