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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartElementImpl.java

Issue 11776037: Initial support for mixins in dartc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot MixinScope.java Created 7 years, 11 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: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartElementImpl.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartElementImpl.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartElementImpl.java
index e22a4b388d24b3788fa14aaaa1c36b2c13d67fdf..7b893f6b8c8ccd464f91e22d5f876e5680a47cf9 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartElementImpl.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartElementImpl.java
@@ -65,7 +65,7 @@ public abstract class DartElementImpl extends PlatformObject implements DartElem
* CRITICAL! Do not use colon (:) as a delimiter. It is used in the indexer as a delimiter between
* the memento and other information. Using it as a delimiter here would break the indexer.
*
- * Suggested characters for additional delimiters: '*', ')', '}', '?'
+ * Suggested characters for additional delimiters: ')', '}', '?'
*/
/**
@@ -139,6 +139,11 @@ public abstract class DartElementImpl extends PlatformObject implements DartElem
public static final char MEMENTO_DELIMITER_TYPE = '%';
/**
+ * The character used before the name of a class type alias.
+ */
+ public static final char MEMENTO_DELIMITER_CLASS_TYPE_ALIAS = '*';
+
+ /**
* The character used before the name of a variable.
*/
public static final char MEMENTO_DELIMITER_VARIABLE = '[';
@@ -810,6 +815,7 @@ public abstract class DartElementImpl extends PlatformObject implements DartElem
for (int i = 0; i < length; i++) {
char character = mementoName.charAt(i);
switch (character) {
+ case MEMENTO_DELIMITER_CLASS_TYPE_ALIAS:
case MEMENTO_DELIMITER_COMPILATION_UNIT:
case MEMENTO_DELIMITER_COUNT:
case MEMENTO_DELIMITER_ESCAPE:

Powered by Google App Engine
This is Rietveld 408576698