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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/CompilationUnit.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/model/CompilationUnit.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/CompilationUnit.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/CompilationUnit.java
index aeef41d8f047e285475d3e347c6de091d2bcec61..c15fcceda5de7154b3ce9f93d9a2093d044b9d2c 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/CompilationUnit.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/model/CompilationUnit.java
@@ -25,6 +25,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
*/
public interface CompilationUnit extends CodeAssistElement, SourceFileElement<CompilationUnit>,
OpenableElement, ParentElement, SourceManipulation, SourceReference {
+
/**
* Return the Dart elements corresponding to the given selected text in this compilation unit. The
* <code>offset</code> is the 0-based index of the first selected character. The
@@ -115,6 +116,15 @@ public interface CompilationUnit extends CodeAssistElement, SourceFileElement<Co
public DartElement[] findElements(DartElement element);
/**
+ * Return an array containing the top-level class type aliases defined in this compilation unit.
+ *
+ * @return the top-level class type aliases defined in this compilation unit
+ * @throws DartModelException if the class type aliases defined in this compilation unit cannot be
+ * determined
+ */
+ public DartClassTypeAlias[] getClassTypeAliases() throws DartModelException;
+
+ /**
* Returns the most narrow element including the given offset.
*
* @param offset the offset included by the retrieved element

Powered by Google App Engine
This is Rietveld 408576698