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

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

Issue 13261008: Check for cyclic reference in typedefs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove travesal visitor Created 7 years, 3 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: sdk/lib/_internal/compiler/implementation/warnings.dart
diff --git a/sdk/lib/_internal/compiler/implementation/warnings.dart b/sdk/lib/_internal/compiler/implementation/warnings.dart
index 2fe05d76aa04f3dcff66cb2855eee67957756972..64fc57ced51aedf736aaef2083cfdef864243d8e 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -391,6 +391,17 @@ class MessageKind {
static const MessageKind CYCLIC_TYPE_VARIABLE = const MessageKind(
'Warning: Type variable "#{typeVariableName}" is a supertype of itself.');
+ static const CYCLIC_TYPEDEF = const MessageKind(
karlklose 2013/09/17 08:56:15 Please add a '.' to the end of the messages. I th
Johnni Winther 2013/09/18 07:57:15 Done.
+ "Error: Typedef #{typedefName} refers to itself");
+
+ static const CYCLIC_TYPEDEF_ONE = const MessageKind(
+ "Error: Typedef #{typedefName} refers to itself through "
+ "typedef #{otherTypedefName}");
+
+ static const CYCLIC_TYPEDEF_TYPEVAR = const MessageKind(
+ "Internal Error: Recursive type variable bounds are not currently "
karlklose 2013/09/17 08:56:15 Please remove 'currently'.
Johnni Winther 2013/09/18 07:57:15 Done.
+ "supported on typedefs.");
+
static const MessageKind CLASS_NAME_EXPECTED = const MessageKind(
'Error: Class name expected.');

Powered by Google App Engine
This is Rietveld 408576698