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

Side by Side Diff: pkg/compiler/lib/src/diagnostics/messages.dart

Issue 1338683002: Add related types check to analyze_dart2js_test (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup. Created 5 years, 3 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 5
6 /** 6 /**
7 * The messages in this file should meet the following guide lines: 7 * The messages in this file should meet the following guide lines:
8 * 8 *
9 * 1. The message should be a complete sentence starting with an uppercase 9 * 1. The message should be a complete sentence starting with an uppercase
10 * letter, and ending with a period. 10 * letter, and ending with a period.
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 MISSING_TOKEN_AFTER_THIS, 302 MISSING_TOKEN_AFTER_THIS,
303 MISSING_TOKEN_BEFORE_THIS, 303 MISSING_TOKEN_BEFORE_THIS,
304 MISSING_TYPE_ARGUMENT, 304 MISSING_TYPE_ARGUMENT,
305 MULTI_INHERITANCE, 305 MULTI_INHERITANCE,
306 NAMED_ARGUMENT_NOT_FOUND, 306 NAMED_ARGUMENT_NOT_FOUND,
307 NAMED_FUNCTION_EXPRESSION, 307 NAMED_FUNCTION_EXPRESSION,
308 NAMED_PARAMETER_WITH_EQUALS, 308 NAMED_PARAMETER_WITH_EQUALS,
309 NATIVE_NOT_SUPPORTED, 309 NATIVE_NOT_SUPPORTED,
310 NO_BREAK_TARGET, 310 NO_BREAK_TARGET,
311 NO_CATCH_NOR_FINALLY, 311 NO_CATCH_NOR_FINALLY,
312 NO_COMMON_SUBTYPES,
312 NO_CONTINUE_TARGET, 313 NO_CONTINUE_TARGET,
313 NO_INSTANCE_AVAILABLE, 314 NO_INSTANCE_AVAILABLE,
314 NO_MATCHING_CONSTRUCTOR, 315 NO_MATCHING_CONSTRUCTOR,
315 NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT, 316 NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT,
316 NO_STATIC_OVERRIDE, 317 NO_STATIC_OVERRIDE,
317 NO_STATIC_OVERRIDE_CONT, 318 NO_STATIC_OVERRIDE_CONT,
318 NO_SUCH_LIBRARY_MEMBER, 319 NO_SUCH_LIBRARY_MEMBER,
319 NO_SUCH_METHOD_IN_NATIVE, 320 NO_SUCH_METHOD_IN_NATIVE,
320 NO_SUCH_SUPER_MEMBER, 321 NO_SUCH_SUPER_MEMBER,
321 NO_SUPER_IN_STATIC, 322 NO_SUPER_IN_STATIC,
(...skipping 2565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 "known type '#{knownType}' of '#{variableName}'."), 2888 "known type '#{knownType}' of '#{variableName}'."),
2888 2889
2889 MessageKind.NOT_MORE_SPECIFIC_SUGGESTION: 2890 MessageKind.NOT_MORE_SPECIFIC_SUGGESTION:
2890 const MessageTemplate(MessageKind.NOT_MORE_SPECIFIC_SUGGESTION, 2891 const MessageTemplate(MessageKind.NOT_MORE_SPECIFIC_SUGGESTION,
2891 "Variable '#{variableName}' is not shown to have type " 2892 "Variable '#{variableName}' is not shown to have type "
2892 "'#{shownType}' because '#{shownType}' is not more specific than the " 2893 "'#{shownType}' because '#{shownType}' is not more specific than the "
2893 "known type '#{knownType}' of '#{variableName}'.", 2894 "known type '#{knownType}' of '#{variableName}'.",
2894 howToFix: 2895 howToFix:
2895 "Try replacing '#{shownType}' with '#{shownTypeSuggestion}'."), 2896 "Try replacing '#{shownType}' with '#{shownTypeSuggestion}'."),
2896 2897
2898 MessageKind.NO_COMMON_SUBTYPES:
2899 const MessageTemplate(MessageKind.NO_COMMON_SUBTYPES,
2900 "Types '#{left}' and '#{right}' have no common subtypes."),
2901
2897 MessageKind.HIDDEN_WARNINGS_HINTS: 2902 MessageKind.HIDDEN_WARNINGS_HINTS:
2898 const MessageTemplate(MessageKind.HIDDEN_WARNINGS_HINTS, 2903 const MessageTemplate(MessageKind.HIDDEN_WARNINGS_HINTS,
2899 "#{warnings} warning(s) and #{hints} hint(s) suppressed in #{uri}."), 2904 "#{warnings} warning(s) and #{hints} hint(s) suppressed in #{uri}."),
2900 2905
2901 MessageKind.HIDDEN_WARNINGS: 2906 MessageKind.HIDDEN_WARNINGS:
2902 const MessageTemplate(MessageKind.HIDDEN_WARNINGS, 2907 const MessageTemplate(MessageKind.HIDDEN_WARNINGS,
2903 "#{warnings} warning(s) suppressed in #{uri}."), 2908 "#{warnings} warning(s) suppressed in #{uri}."),
2904 2909
2905 MessageKind.HIDDEN_HINTS: 2910 MessageKind.HIDDEN_HINTS:
2906 const MessageTemplate(MessageKind.HIDDEN_HINTS, 2911 const MessageTemplate(MessageKind.HIDDEN_HINTS,
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
3362 static String convertToString(value) { 3367 static String convertToString(value) {
3363 if (value is ErrorToken) { 3368 if (value is ErrorToken) {
3364 // Shouldn't happen. 3369 // Shouldn't happen.
3365 return value.assertionMessage; 3370 return value.assertionMessage;
3366 } else if (value is Token) { 3371 } else if (value is Token) {
3367 value = value.value; 3372 value = value.value;
3368 } 3373 }
3369 return '$value'; 3374 return '$value';
3370 } 3375 }
3371 } 3376 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698