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

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

Issue 11967010: Internal libraries supported. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/modelx.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index fd0da9e5b021c52b6ced750e036e000a4ed785de..8a9367c6c5f51b7d55b010c8d6b93bb503cac1cb 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -738,6 +738,8 @@ class LibraryElementX extends ScopeContainerElementX implements LibraryElement {
bool get isPlatformLibrary => uri.scheme == "dart";
+ bool get isPrivateLibrary => isPlatformLibrary && uri.path.startsWith('_');
ahe 2013/01/18 11:03:10 This scares me. The uri.path is potentially from u
Johnni Winther 2013/01/21 09:27:54 [uri] is the canonical uri which we filter in [tra
+
String toString() {
if (origin != null) {
return 'patch library(${getLibraryOrScriptName()})';

Powered by Google App Engine
This is Rietveld 408576698