Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: pkg/front_end/messages.yaml

Issue 2977653003: Implement more message argument kinds. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 # the compiler reports a problem, it may also specify a map with the following 29 # the compiler reports a problem, it may also specify a map with the following
30 # keys to be substituted into the message: 30 # keys to be substituted into the message:
31 # 31 #
32 # `#character` a Unicode character. 32 # `#character` a Unicode character.
33 # 33 #
34 # `#unicode` a Unicode short identifier (U+xxxx). We use this to represent code 34 # `#unicode` a Unicode short identifier (U+xxxx). We use this to represent code
35 # units or code points. 35 # units or code points.
36 # 36 #
37 # `#name` a name (a string). 37 # `#name` a name (a string).
38 # 38 #
39 # `#name2` another name (a string).
40 #
39 # `#lexeme` a token. The token's `lexeme` property is used. 41 # `#lexeme` a token. The token's `lexeme` property is used.
40 # 42 #
41 # `#string` a string. 43 # `#string` a string.
44 #
45 # `#string2` another string.
46 #
47 # `#uri` a Uri.
42 48
43 AsciiControlCharacter: 49 AsciiControlCharacter:
44 template: "The control character #unicode can only be used in strings and comm ents." 50 template: "The control character #unicode can only be used in strings and comm ents."
45 dart2jsCode: BAD_INPUT_CHARACTER 51 dart2jsCode: BAD_INPUT_CHARACTER
46 analyzerCode: ILLEGAL_CHARACTER 52 analyzerCode: ILLEGAL_CHARACTER
47 expression: "\x1b 1" 53 expression: "\x1b 1"
48 54
49 NonAsciiIdentifier: 55 NonAsciiIdentifier:
50 template: "The non-ASCII character '#character' (#unicode) can't be used in id entifiers, only in strings and comments." 56 template: "The non-ASCII character '#character' (#unicode) can't be used in id entifiers, only in strings and comments."
51 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a do llar sign)." 57 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '$' (a do llar sign)."
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 --fatal=warnings 557 --fatal=warnings
552 --fatal=nits 558 --fatal=nits
553 Makes messages of the given kinds fatal, that is, immediately stop the 559 Makes messages of the given kinds fatal, that is, immediately stop the
554 compiler with a non-zero exit-code. In --verbose mode, also display an 560 compiler with a non-zero exit-code. In --verbose mode, also display an
555 internal stack trace from the compiler. Multiple kinds can be separated by 561 internal stack trace from the compiler. Multiple kinds can be separated by
556 commas, for example, --fatal=errors,warnings. 562 commas, for example, --fatal=errors,warnings.
557 563
558 FastaCLIArgumentRequired: 564 FastaCLIArgumentRequired:
559 template: "Expected value after '#name'." 565 template: "Expected value after '#name'."
560 566
561 Unhandled:
562 template: "Unhandled: #string in #name."
563
564 Unimplemented:
565 template: "Unimplemented: #string."
566
567 Unexpected:
568 template: "Expected '#string', but got '#name'."
569
570 Unsupported:
571 template: "Unsupported operation: '#name'."
572
573 NamedFunctionExpression: 567 NamedFunctionExpression:
574 template: "A function expression can't have a name." 568 template: "A function expression can't have a name."
575 dart2jsCode: "*ignored*" 569 dart2jsCode: "*ignored*"
576 570
577 ReturnTypeFunctionExpression: 571 ReturnTypeFunctionExpression:
578 template: "A function expression can't have a return type." 572 template: "A function expression can't have a return type."
579 dart2jsCode: "*ignored*" 573 dart2jsCode: "*ignored*"
574
575 Unhandled:
576 template: "Internal error: Unhandled #string in #string2."
577
578 Unimplemented:
579 template: "Internal error: Unimplemented #string."
580
581 Unexpected:
582 template: "Internal error: Expected '#string', but got '#string2'."
583
584 Unsupported:
585 template: "Internal error: Unsupported operation: '#name'."
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698