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

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

Issue 10834061: Resolve typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated scope handling and type resolution Created 8 years, 5 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 b4b1cec2097d16b15eb58ec458e817ffe7976c54..383dc54f991822b25fb04dae06f7ec353c679204 100644
--- a/lib/compiler/implementation/warnings.dart
+++ b/lib/compiler/implementation/warnings.dart
@@ -22,6 +22,8 @@ class MessageKind {
'missing argument of type #{1}');
static final ADDITIONAL_ARGUMENT = const MessageKind(
'additional argument');
+ static final PROPERTY_NOT_FOUND = const MessageKind(
+ 'no property named #{2} in class #{1}');
static final METHOD_NOT_FOUND = const MessageKind(
'no method named #{2} in class #{1}');
static final MEMBER_NOT_STATIC = const MessageKind(
@@ -122,6 +124,8 @@ class MessageKind {
'target of continue is not a loop or switch case');
static final TYPE_VARIABLE_AS_CONSTRUCTOR = const MessageKind(
'cannot use type variable as constructor');
+ static final DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind(
+ 'type variable #{1} already declared');
static final INVALID_BREAK = const MessageKind(
'target of break is not a statement');
static final INVALID_USE_OF_SUPER = const MessageKind(
@@ -152,6 +156,8 @@ class MessageKind {
static final CANNOT_INSTANTIATE_TYPEDEF = const MessageKind(
"cannot instantiate typedef '#{1}'");
+ static final CYCLIC_TYPEDEF = const MessageKind(
+ "the typedef #{1} may not refer to itself");
static final NO_DEFAULT_CLASS = const MessageKind(
"no default class on enclosing interface '#{1}'");

Powered by Google App Engine
This is Rietveld 408576698