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

Side by Side Diff: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

Issue 2930673002: Implement initializer asserts. (Closed)
Patch Set: Created 3 years, 6 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 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. 5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
6 // 6 //
7 // Instead modify 'pkg/front_end/messages.yaml' and run 7 // Instead modify 'pkg/front_end/messages.yaml' and run
8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. 8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update.
9 9
10 part of fasta.codes; 10 part of fasta.codes;
(...skipping 26 matching lines...) Expand all
37 37
38 typedef FastaMessage _StackOverflow(Uri uri, int charOffset); 38 typedef FastaMessage _StackOverflow(Uri uri, int charOffset);
39 39
40 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 40 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
41 FastaMessage _formatStackOverflow(Uri uri, int charOffset) { 41 FastaMessage _formatStackOverflow(Uri uri, int charOffset) {
42 return new FastaMessage(uri, charOffset, codeStackOverflow, 42 return new FastaMessage(uri, charOffset, codeStackOverflow,
43 message: "Stack overflow.", arguments: {}); 43 message: "Stack overflow.", arguments: {});
44 } 44 }
45 45
46 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 46 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
47 const FastaCode<_AssertExtraneousArgument> codeAssertExtraneousArgument =
48 const FastaCode<_AssertExtraneousArgument>("AssertExtraneousArgument",
49 template: r"`assert` can't have more than two arguments.",
50 format: _formatAssertExtraneousArgument);
51
52 typedef FastaMessage _AssertExtraneousArgument(Uri uri, int charOffset);
53
54 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
55 FastaMessage _formatAssertExtraneousArgument(Uri uri, int charOffset) {
56 return new FastaMessage(uri, charOffset, codeAssertExtraneousArgument,
57 message: "`assert` can't have more than two arguments.", arguments: {});
58 }
59
60 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
47 const FastaCode<_UnexpectedToken> codeUnexpectedToken = 61 const FastaCode<_UnexpectedToken> codeUnexpectedToken =
48 const FastaCode<_UnexpectedToken>("UnexpectedToken", 62 const FastaCode<_UnexpectedToken>("UnexpectedToken",
49 template: r"Unexpected token '#lexeme'.", 63 template: r"Unexpected token '#lexeme'.",
50 dart2jsCode: "FASTA_FATAL", 64 dart2jsCode: "FASTA_FATAL",
51 format: _formatUnexpectedToken); 65 format: _formatUnexpectedToken);
52 66
53 typedef FastaMessage _UnexpectedToken(Uri uri, int charOffset, Token token); 67 typedef FastaMessage _UnexpectedToken(Uri uri, int charOffset, Token token);
54 68
55 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 69 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
56 FastaMessage _formatUnexpectedToken(Uri uri, int charOffset, Token token) { 70 FastaMessage _formatUnexpectedToken(Uri uri, int charOffset, Token token) {
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 766
753 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 767 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
754 FastaMessage _formatYieldAsIdentifier(Uri uri, int charOffset) { 768 FastaMessage _formatYieldAsIdentifier(Uri uri, int charOffset) {
755 return new FastaMessage(uri, charOffset, codeYieldAsIdentifier, 769 return new FastaMessage(uri, charOffset, codeYieldAsIdentifier,
756 message: 770 message:
757 "'yield' can't be used as an identifier in 'async', 'async*', or 'sync *' methods.", 771 "'yield' can't be used as an identifier in 'async', 'async*', or 'sync *' methods.",
758 arguments: {}); 772 arguments: {});
759 } 773 }
760 774
761 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 775 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
776 const FastaCode<_AssertAsExpression> codeAssertAsExpression =
777 const FastaCode<_AssertAsExpression>("AssertAsExpression",
778 template: r"`assert` can't be used as an expression.",
779 format: _formatAssertAsExpression);
780
781 typedef FastaMessage _AssertAsExpression(Uri uri, int charOffset);
782
783 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
784 FastaMessage _formatAssertAsExpression(Uri uri, int charOffset) {
785 return new FastaMessage(uri, charOffset, codeAssertAsExpression,
786 message: "`assert` can't be used as an expression.", arguments: {});
787 }
788
789 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
762 const FastaCode<_OnlyTry> codeOnlyTry = const FastaCode<_OnlyTry>("OnlyTry", 790 const FastaCode<_OnlyTry> codeOnlyTry = const FastaCode<_OnlyTry>("OnlyTry",
763 template: 791 template:
764 r"Try block should be followed by 'on', 'catch', or 'finally' block.", 792 r"Try block should be followed by 'on', 'catch', or 'finally' block.",
765 tip: r"Did you forget to add a 'finally' block?", 793 tip: r"Did you forget to add a 'finally' block?",
766 dart2jsCode: "FASTA_IGNORED", 794 dart2jsCode: "FASTA_IGNORED",
767 format: _formatOnlyTry); 795 format: _formatOnlyTry);
768 796
769 typedef FastaMessage _OnlyTry(Uri uri, int charOffset); 797 typedef FastaMessage _OnlyTry(Uri uri, int charOffset);
770 798
771 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 799 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 952 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
925 FastaMessage _formatNonAsciiIdentifier( 953 FastaMessage _formatNonAsciiIdentifier(
926 Uri uri, int charOffset, String character, int codePoint) { 954 Uri uri, int charOffset, String character, int codePoint) {
927 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; 955 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})";
928 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, 956 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier,
929 message: 957 message:
930 "The non-ASCII character '$character' ($unicode) can't be used in iden tifiers, only in strings and comments.", 958 "The non-ASCII character '$character' ($unicode) can't be used in iden tifiers, only in strings and comments.",
931 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$' (a dollar sign).", 959 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$' (a dollar sign).",
932 arguments: {'character': character, 'codePoint': codePoint}); 960 arguments: {'character': character, 'codePoint': codePoint});
933 } 961 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698