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

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

Issue 2935993002: Implement metadata on methods and fields. (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 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 972 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
973 FastaMessage _formatInvalidInlineFunctionType(Uri uri, int charOffset) { 973 FastaMessage _formatInvalidInlineFunctionType(Uri uri, int charOffset) {
974 return new FastaMessage(uri, charOffset, codeInvalidInlineFunctionType, 974 return new FastaMessage(uri, charOffset, codeInvalidInlineFunctionType,
975 message: "Invalid inline function type.", 975 message: "Invalid inline function type.",
976 tip: 976 tip:
977 "Try changing the inline function type (as in 'int f()') to a prefixed function type using the `Function` keyword (as in 'int Function() f').", 977 "Try changing the inline function type (as in 'int f()') to a prefixed function type using the `Function` keyword (as in 'int Function() f').",
978 arguments: {}); 978 arguments: {});
979 } 979 }
980 980
981 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 981 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
982 const FastaCode<_MetadataTypeArguments> codeMetadataTypeArguments =
983 const FastaCode<_MetadataTypeArguments>("MetadataTypeArguments",
984 template: r"An annotation (metadata) can't use type arguments.",
985 dart2jsCode: "FASTA_IGNORED",
986 format: _formatMetadataTypeArguments);
987
988 typedef FastaMessage _MetadataTypeArguments(Uri uri, int charOffset);
989
990 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
991 FastaMessage _formatMetadataTypeArguments(Uri uri, int charOffset) {
992 return new FastaMessage(uri, charOffset, codeMetadataTypeArguments,
993 message: "An annotation (metadata) can't use type arguments.",
994 arguments: {});
995 }
996
997 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
982 const FastaCode<_ExpectedBody> codeExpectedBody = 998 const FastaCode<_ExpectedBody> codeExpectedBody =
983 const FastaCode<_ExpectedBody>("ExpectedBody", 999 const FastaCode<_ExpectedBody>("ExpectedBody",
984 template: r"Expected a function body or '=>'.", 1000 template: r"Expected a function body or '=>'.",
985 tip: r"Try adding {}.", 1001 tip: r"Try adding {}.",
986 dart2jsCode: "BODY_EXPECTED", 1002 dart2jsCode: "BODY_EXPECTED",
987 format: _formatExpectedBody); 1003 format: _formatExpectedBody);
988 1004
989 typedef FastaMessage _ExpectedBody(Uri uri, int charOffset); 1005 typedef FastaMessage _ExpectedBody(Uri uri, int charOffset);
990 1006
991 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1007 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1120 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1105 FastaMessage _formatNonAsciiIdentifier( 1121 FastaMessage _formatNonAsciiIdentifier(
1106 Uri uri, int charOffset, String character, int codePoint) { 1122 Uri uri, int charOffset, String character, int codePoint) {
1107 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; 1123 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})";
1108 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, 1124 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier,
1109 message: 1125 message:
1110 "The non-ASCII character '$character' ($unicode) can't be used in iden tifiers, only in strings and comments.", 1126 "The non-ASCII character '$character' ($unicode) can't be used in iden tifiers, only in strings and comments.",
1111 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$' (a dollar sign).", 1127 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$' (a dollar sign).",
1112 arguments: {'character': character, 'codePoint': codePoint}); 1128 arguments: {'character': character, 'codePoint': codePoint});
1113 } 1129 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698