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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 11348376: Report errors when factory redirection is used in non-factory methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: dart/sdk/lib/_internal/compiler/implementation/warnings.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
index 3784b290c5418ade27a94e932d24fcf2e6b20dc7..e5f33098e85fc019a8133a67420c406180ddef18 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -335,6 +335,12 @@ Length: #{3}''');
static const MALFORMED_TYPE_REFERENCE = const MessageKind(
"Malformed type reference encountered in #{1}.");
+ static const FACTORY_REDIRECTION_IN_NON_FACTORY = const MessageKind(
+ "Error: factory redirection only allowed in factories.");
Johnni Winther 2012/12/04 13:13:21 We need a style guide for capitalization of the fi
ahe 2012/12/05 08:04:21 Done.
+
+ static const MISSING_FACTORY_KEYWORD = const MessageKind(
+ "Did you forget a factory keyword here?");
+
static const COMPILER_CRASHED = const MessageKind(
"Error: The compiler crashed when compiling this element.");

Powered by Google App Engine
This is Rietveld 408576698