Chromium Code Reviews| 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; |