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

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

Issue 2004833003: Support multiple resolution inputs from command line. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix and check library separation Created 4 years, 7 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 * The messages in this file should meet the following guide lines: 6 * The messages in this file should meet the following guide lines:
7 * 7 *
8 * 1. The message should be a complete sentence starting with an uppercase 8 * 1. The message should be a complete sentence starting with an uppercase
9 * letter, and ending with a period. 9 * letter, and ending with a period.
10 * 10 *
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 DISALLOWED_LIBRARY_IMPORT, 170 DISALLOWED_LIBRARY_IMPORT,
171 DUPLICATE_DEFINITION, 171 DUPLICATE_DEFINITION,
172 DUPLICATE_EXPORT, 172 DUPLICATE_EXPORT,
173 DUPLICATE_EXPORT_CONT, 173 DUPLICATE_EXPORT_CONT,
174 DUPLICATE_EXPORT_DECL, 174 DUPLICATE_EXPORT_DECL,
175 DUPLICATE_EXTENDS_IMPLEMENTS, 175 DUPLICATE_EXTENDS_IMPLEMENTS,
176 DUPLICATE_IMPLEMENTS, 176 DUPLICATE_IMPLEMENTS,
177 DUPLICATE_IMPORT, 177 DUPLICATE_IMPORT,
178 DUPLICATE_INITIALIZER, 178 DUPLICATE_INITIALIZER,
179 DUPLICATE_LABEL, 179 DUPLICATE_LABEL,
180 DUPLICATE_SERIALIZED_LIBRARY,
180 DUPLICATE_SUPER_INITIALIZER, 181 DUPLICATE_SUPER_INITIALIZER,
181 DUPLICATE_TYPE_VARIABLE_NAME, 182 DUPLICATE_TYPE_VARIABLE_NAME,
182 DUPLICATED_LIBRARY_NAME, 183 DUPLICATED_LIBRARY_NAME,
183 DUPLICATED_LIBRARY_RESOURCE, 184 DUPLICATED_LIBRARY_RESOURCE,
184 DUPLICATED_PART_OF, 185 DUPLICATED_PART_OF,
185 DUPLICATED_RESOURCE, 186 DUPLICATED_RESOURCE,
186 EMPTY_CATCH_DECLARATION, 187 EMPTY_CATCH_DECLARATION,
187 EMPTY_ENUM_DECLARATION, 188 EMPTY_ENUM_DECLARATION,
188 EMPTY_HIDE, 189 EMPTY_HIDE,
189 EQUAL_MAP_ENTRY_KEY, 190 EQUAL_MAP_ENTRY_KEY,
(...skipping 3446 matching lines...) Expand 10 before | Expand all | Expand 10 after
3636 MessageKind.COMPLEX_RETURNING_NSM: const MessageTemplate( 3637 MessageKind.COMPLEX_RETURNING_NSM: const MessageTemplate(
3637 MessageKind.COMPLEX_RETURNING_NSM, 3638 MessageKind.COMPLEX_RETURNING_NSM,
3638 "Overriding 'noSuchMethod' causes the compiler to generate " 3639 "Overriding 'noSuchMethod' causes the compiler to generate "
3639 "more code and prevents the compiler from doing some optimizations.", 3640 "more code and prevents the compiler from doing some optimizations.",
3640 howToFix: "Consider removing this 'noSuchMethod' implementation."), 3641 howToFix: "Consider removing this 'noSuchMethod' implementation."),
3641 3642
3642 MessageKind.UNRECOGNIZED_VERSION_OF_LOOKUP_MAP: const MessageTemplate( 3643 MessageKind.UNRECOGNIZED_VERSION_OF_LOOKUP_MAP: const MessageTemplate(
3643 MessageKind.UNRECOGNIZED_VERSION_OF_LOOKUP_MAP, 3644 MessageKind.UNRECOGNIZED_VERSION_OF_LOOKUP_MAP,
3644 "Unsupported version of package:lookup_map.", 3645 "Unsupported version of package:lookup_map.",
3645 howToFix: DONT_KNOW_HOW_TO_FIX), 3646 howToFix: DONT_KNOW_HOW_TO_FIX),
3647
3648 MessageKind.DUPLICATE_SERIALIZED_LIBRARY: const MessageTemplate(
3649 MessageKind.DUPLICATE_SERIALIZED_LIBRARY,
3650 "Library '#{libraryUri}' found in both '#{sourceUri1}' and "
3651 "'#{sourceUri2}'."),
3646 }); // End of TEMPLATES. 3652 }); // End of TEMPLATES.
3647 3653
3648 /// Padding used before and between import chains in the message for 3654 /// Padding used before and between import chains in the message for
3649 /// [MessageKind.IMPORT_EXPERIMENTAL_MIRRORS]. 3655 /// [MessageKind.IMPORT_EXPERIMENTAL_MIRRORS].
3650 static const String IMPORT_EXPERIMENTAL_MIRRORS_PADDING = '\n* '; 3656 static const String IMPORT_EXPERIMENTAL_MIRRORS_PADDING = '\n* ';
3651 3657
3652 /// Padding used before and between import chains in the message for 3658 /// Padding used before and between import chains in the message for
3653 /// [MessageKind.MIRRORS_LIBRARY_NOT_SUPPORT_BY_BACKEND]. 3659 /// [MessageKind.MIRRORS_LIBRARY_NOT_SUPPORT_BY_BACKEND].
3654 static const String MIRRORS_NOT_SUPPORTED_BY_BACKEND_PADDING = '\n '; 3660 static const String MIRRORS_NOT_SUPPORTED_BY_BACKEND_PADDING = '\n ';
3655 3661
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
3717 static String convertToString(value) { 3723 static String convertToString(value) {
3718 if (value is ErrorToken) { 3724 if (value is ErrorToken) {
3719 // Shouldn't happen. 3725 // Shouldn't happen.
3720 return value.assertionMessage; 3726 return value.assertionMessage;
3721 } else if (value is Token) { 3727 } else if (value is Token) {
3722 value = value.value; 3728 value = value.value;
3723 } 3729 }
3724 return '$value'; 3730 return '$value';
3725 } 3731 }
3726 } 3732 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698