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

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: Rebased Created 7 years, 9 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 2e377a430539d2c386f6299cee4e2f92f668df49..fcadc1227a67a69bc6449fff887832da82b65d3c 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -193,6 +193,16 @@ class MessageKind {
static const CYCLIC_TYPE_VARIABLE = const MessageKind(
"cyclic reference to type variable #{typeVariableName}");
+ static const CYCLIC_TYPEDEF = const MessageKind(
+ "typedef #{typedefName} refers to itself");
+
+ static const CYCLIC_TYPEDEF_ONE = const MessageKind(
+ "typedef #{typedefName} refers to itself through "
+ "typedef #{otherTypedefName}");
+
+ static const CYCLIC_TYPEDEF_MORE = const MessageKind(
+ "typedef #{typedefName} refers to itself through several typedefs");
+
static const CLASS_NAME_EXPECTED = const MessageKind(
"class name expected");

Powered by Google App Engine
This is Rietveld 408576698