Chromium Code Reviews| 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 399 template: "A type or modifier is required here." | 399 template: "A type or modifier is required here." |
| 400 tip: "Try adding a type, 'var', 'const', or 'final'." | 400 tip: "Try adding a type, 'var', 'const', or 'final'." |
| 401 | 401 |
| 402 AssertExtraneousArgument: | 402 AssertExtraneousArgument: |
| 403 template: "`assert` can't have more than two arguments." | 403 template: "`assert` can't have more than two arguments." |
| 404 dart2jsCode: FASTA_FATAL | 404 dart2jsCode: FASTA_FATAL |
| 405 | 405 |
| 406 AssertAsExpression: | 406 AssertAsExpression: |
| 407 template: "`assert` can't be used as an expression." | 407 template: "`assert` can't be used as an expression." |
| 408 dart2jsCode: FASTA_FATAL | 408 dart2jsCode: FASTA_FATAL |
| 409 | |
| 410 FunctionTypeDefaultValue: | |
| 411 template: "Can't have a default value in a function type." | |
| 412 dart2jsCode: FASTA_IGNORED | |
| 413 | |
| 414 PrivateNamedParameter: | |
| 415 template: "An optional named parameter can't start with '_'." | |
| 416 dart2jsCode: FASTA_IGNORED | |
|
danrubel
2017/06/09 17:08:52
If fasta recognizes these errors, then should they
ahe
2017/06/09 18:53:31
The code "FASTA_IGNORED" doesn't mean that Fasta i
| |
| 417 | |
| 418 NoFormals: | |
| 419 template: "A function should have formal parameters." | |
| 420 tip: "Try adding '()' after '#lexeme', or add 'get' before '#lexeme' to declar e a getter." | |
| 421 dart2jsCode: FASTA_IGNORED | |
| 422 | |
| 423 GetterWithFormals: | |
| 424 template: "A getter can't have formal parameters." | |
| 425 tip: "Try removing '(...)'." | |
| 426 dart2jsCode: FASTA_IGNORED | |
| 427 | |
| 428 CatchSyntax: | |
| 429 template: "'catch' must be followed by '(identifier)' or '(identifier, identif ier)'." | |
| 430 tip: "No types are needed, the first is given by 'on', the second is always 'S tackTrace'." | |
| 431 dart2jsCode: FASTA_IGNORED | |
| OLD | NEW |