| 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 expresssion: "\x1b 1" | 38 expression: "\x1b 1" |
| 39 | 39 |
| 40 NonAsciiIdentifier: | 40 NonAsciiIdentifier: |
| 41 template: "The non-ASCII character '#character' (#unicode) can't be used in id
entifiers, only in strings and comments." | 41 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)." | 42 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a do
llar sign)." |
| 43 analyzerCode: ILLEGAL_CHARACTER | 43 analyzerCode: ILLEGAL_CHARACTER |
| 44 dart2jsCode: BAD_INPUT_CHARACTER | 44 dart2jsCode: BAD_INPUT_CHARACTER |
| 45 expresssion: "å" | 45 expression: "å" |
| 46 | 46 |
| 47 NonAsciiWhitespace: | 47 NonAsciiWhitespace: |
| 48 template: "The non-ASCII space character #unicode can only be used in strings
and comments." | 48 template: "The non-ASCII space character #unicode can only be used in strings
and comments." |
| 49 analyzerCode: ILLEGAL_CHARACTER | 49 analyzerCode: ILLEGAL_CHARACTER |
| 50 dart2jsCode: BAD_INPUT_CHARACTER | 50 dart2jsCode: BAD_INPUT_CHARACTER |
| 51 expresssion: "\u2028 1" | 51 expression: "\u2028 1" |
| 52 | 52 |
| 53 Encoding: | 53 Encoding: |
| 54 template: "Unable to decode bytes as UTF-8." | 54 template: "Unable to decode bytes as UTF-8." |
| 55 dart2jsCode: FASTA_FATAL | 55 dart2jsCode: FASTA_FATAL |
| 56 bytes: [255] | 56 bytes: [255] |
| 57 | 57 |
| 58 EmptyNamedParameterList: | 58 EmptyNamedParameterList: |
| 59 template: "Named parameter lists cannot be empty." | 59 template: "Named parameter lists cannot be empty." |
| 60 tip: "Try adding a named parameter to the list." | 60 tip: "Try adding a named parameter to the list." |
| 61 dart2jsCode: EMPTY_NAMED_PARAMETER_LIST | 61 dart2jsCode: EMPTY_NAMED_PARAMETER_LIST |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 388 |
| 389 YieldNotGenerator: | 389 YieldNotGenerator: |
| 390 template: "'yield' can only be used in 'sync*' or 'async*' methods." | 390 template: "'yield' can only be used in 'sync*' or 'async*' methods." |
| 391 dart2jsCode: FASTA_IGNORED | 391 dart2jsCode: FASTA_IGNORED |
| 392 | 392 |
| 393 OnlyTry: | 393 OnlyTry: |
| 394 template: "Try block should be followed by 'on', 'catch', or 'finally' block." | 394 template: "Try block should be followed by 'on', 'catch', or 'finally' block." |
| 395 tip: "Did you forget to add a 'finally' block?" | 395 tip: "Did you forget to add a 'finally' block?" |
| 396 statement: "try {}" | 396 statement: "try {}" |
| 397 dart2jsCode: FASTA_IGNORED | 397 dart2jsCode: FASTA_IGNORED |
| OLD | NEW |