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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 1192103002: Support serialization of the compiler backbone. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 5 years, 6 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: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index 22a0933d834218ba2a65a81db8f4e6ec875a5219..3867de4fc4a401daf4f4e4d447fd7d4819a1c2c8 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -836,10 +836,8 @@ abstract class CompilationUnitElement extends Element {
get enclosingElement;
Script get script;
- PartOf get partTag;
void forEachLocalMember(f(Element element));
- bool get hasMembers;
int compareTo(CompilationUnitElement other);
}
@@ -902,6 +900,15 @@ abstract class LibraryElement extends Element
bool hasLibraryName();
String getLibraryName();
+
+ /**
+ * Returns the library name (as defined by the library tag) or for script
+ * (which have no library tag) the script file name. The latter case is used
+ * to provide a 'library name' for scripts to use for instance in dartdoc.
+ *
+ * Note: the returned filename is still escaped ("a%20b.dart" instead of
+ * "a b.dart").
+ */
String getLibraryOrScriptName();
int compareTo(LibraryElement other);
@@ -1490,6 +1497,9 @@ abstract class TypeVariableElement extends Element
/// The class or typedef on which this type variable is defined.
TypeDeclarationElement get typeDeclaration;
+ /// The index of this type variable within its type declaraiton.
floitsch 2015/07/03 17:06:25 declaration
Johnni Winther 2015/07/06 08:33:22 Done.
+ int get index;
+
/// The [type] defined by the type variable.
TypeVariableType get type;

Powered by Google App Engine
This is Rietveld 408576698