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

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: Handle (bypass) external const constructors. Created 5 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/elements/common.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c067f15ff2b1a3d60ca396fbf36b0f338e38e829..2f302b266e7316fc5a0d971f19e91db8b3fc2ebc 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);
@@ -1493,6 +1500,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 declaration.
+ int get index;
+
/// The [type] defined by the type variable.
TypeVariableType get type;
« no previous file with comments | « pkg/compiler/lib/src/elements/common.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698