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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 169703003: Add prefix constraints for deferred imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 part of dart2js; 5 part of dart2js;
6 6
7 const DONT_KNOW_HOW_TO_FIX = ""; 7 const DONT_KNOW_HOW_TO_FIX = "";
8 8
9 /** 9 /**
10 * The messages in this file should meet the following guide lines: 10 * The messages in this file should meet the following guide lines:
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 "Hint: Did you forget a factory keyword here?"); 1194 "Hint: Did you forget a factory keyword here?");
1195 1195
1196 static const MessageKind DEFERRED_LIBRARY_NOT_FROM_MAIN = 1196 static const MessageKind DEFERRED_LIBRARY_NOT_FROM_MAIN =
1197 const MessageKind( 1197 const MessageKind(
1198 "Info: DeferredLibrary used as an annotation here, " 1198 "Info: DeferredLibrary used as an annotation here, "
1199 "but not used in the main library. Will not split the output.", 1199 "but not used in the main library. Will not split the output.",
1200 howToFix: 1200 howToFix:
1201 "Try adding a '@DeferredLibrary(...)' annotation in the main " 1201 "Try adding a '@DeferredLibrary(...)' annotation in the main "
1202 "library"); 1202 "library");
1203 1203
1204 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX =
1205 const MessageKind(
1206 "Error: This import is deferred but there is no prefix keyword.",
1207 howToFix:
1208 "Try adding a prefix to the import.");
1209
1210 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX =
1211 const MessageKind(
1212 "Error: The prefix of this deferred import is not unique.",
1213 howToFix:
1214 "Try changing the import prefix.");
1215
1204 static const MessageKind ILLEGAL_STATIC = const MessageKind( 1216 static const MessageKind ILLEGAL_STATIC = const MessageKind(
1205 "Error: Modifier static is only allowed on functions declared in " 1217 "Error: Modifier static is only allowed on functions declared in "
1206 "a class."); 1218 "a class.");
1207 1219
1208 static const MessageKind STATIC_FUNCTION_BLOAT = const MessageKind( 1220 static const MessageKind STATIC_FUNCTION_BLOAT = const MessageKind(
1209 "Hint: Using '#{class}.#{name}' may lead to unnecessarily large " 1221 "Hint: Using '#{class}.#{name}' may lead to unnecessarily large "
1210 "generated code.", 1222 "generated code.",
1211 howToFix: 1223 howToFix:
1212 "Try adding '@MirrorsUsed(...)' as described at " 1224 "Try adding '@MirrorsUsed(...)' as described at "
1213 "https://goo.gl/Akrrog."); 1225 "https://goo.gl/Akrrog.");
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 1973
1962 class CompileTimeConstantError extends Diagnostic { 1974 class CompileTimeConstantError extends Diagnostic {
1963 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) 1975 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse)
1964 : super(kind, arguments, terse); 1976 : super(kind, arguments, terse);
1965 } 1977 }
1966 1978
1967 class CompilationError extends Diagnostic { 1979 class CompilationError extends Diagnostic {
1968 CompilationError(MessageKind kind, Map arguments, bool terse) 1980 CompilationError(MessageKind kind, Map arguments, bool terse)
1969 : super(kind, arguments, terse); 1981 : super(kind, arguments, terse);
1970 } 1982 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698