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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 11967010: Internal libraries supported. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update MockCompiler 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: sdk/lib/_internal/compiler/implementation/elements/elements.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
index 6b29922cf1766089b763d80c768ef9bddaa025a1..a069147da9c830505b8dce5d75fc78f99adf6e92 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -469,14 +469,31 @@ abstract class CompilationUnitElement extends Element {
}
abstract class LibraryElement extends Element implements ScopeContainerElement {
- Uri get uri;
+ /**
+ * The canonical uri for this library.
+ *
+ * For user libraries the canonical uri is the script uri. For platform
+ * libraries the canonical uri is of the form [:dart:x:], and for a patch
+ * library for [:dart:x:] the canonical uri is [:patch:x:].
ahe 2013/01/24 10:00:57 I thought you'd get rid of the "patch" scheme?
Johnni Winther 2013/01/24 13:04:59 It is.
+ */
+ Uri get canonicalUri;
CompilationUnitElement get entryCompilationUnit;
Link<CompilationUnitElement> get compilationUnits;
Link<LibraryTag> get tags;
LibraryName get libraryTag;
Link<Element> get exports;
+ /**
+ * [:true:] if this library is part of the platform, that is its canonical
+ * uri has the scheme 'dart'.
+ */
bool get isPlatformLibrary;
+
+ /**
+ * [:true:] if this library is a platform library whose path starts with
+ * an underscore.
+ */
+ bool get isInternalLibrary;
bool get canUseNative;
bool get exportsHandled;

Powered by Google App Engine
This is Rietveld 408576698