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

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

Issue 10854216: Fix for class members cannot have the same name as the class in dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed accidently added blank line. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/warnings.dart
diff --git a/lib/compiler/implementation/warnings.dart b/lib/compiler/implementation/warnings.dart
index e938bbfab17b114555e9e74531b7ffa9475009fc..1b8b8a72fefc6c183b3ffe919997dbd959f0d3f6 100644
--- a/lib/compiler/implementation/warnings.dart
+++ b/lib/compiler/implementation/warnings.dart
@@ -78,6 +78,7 @@ class MessageKind {
'invalid initializer');
static final FUNCTION_WITH_INITIALIZER = const MessageKind(
'only constructors can have initializers');
+
ahe 2012/08/25 04:37:19 extra line
static final REDIRECTING_CONSTRUCTOR_CYCLE = const MessageKind(
'cyclic constructor redirection');
static final REDIRECTING_CONSTRUCTOR_HAS_BODY = const MessageKind(
@@ -213,6 +214,15 @@ class MessageKind {
static final BAD_ARITY_OVERRIDE_CONT = const MessageKind(
"Info: this is the method whose parameters do not match.");
+ static final CONSTRUCTOR_WITH_RETURN_TYPE = const MessageKind(
+ "Error: cannot have return type for constructor.");
+
+ static final ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind(
+ "Error: cannot have final modifier on method.");
+
+ static final ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind(
+ "Error: illegal constructor modifiers: #{1}.");
+
static final COMPILER_CRASHED = const MessageKind(
"Error: The compiler crashed when compiling this element.");

Powered by Google App Engine
This is Rietveld 408576698