Index: pkg/compiler/lib/src/compiler.dart |
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
index ceb9143e30744b1981d6ac8cb801dba3ae9fcbbe..53be699874f197d235f1bec34c6463724b9913e5 100644 |
--- a/pkg/compiler/lib/src/compiler.dart |
+++ b/pkg/compiler/lib/src/compiler.dart |
@@ -962,11 +962,10 @@ abstract class Compiler { |
{bool skipLibraryWithPartOfTag: true}) { |
assert(analyzeMain); |
reporter.log('Analyzing $libraryUri ($buildId)'); |
- return libraryLoader.loadLibrary(libraryUri).then((LibraryElement library) { |
- var compilationUnit = library.compilationUnit; |
- if (skipLibraryWithPartOfTag && compilationUnit.partTag != null) { |
- return null; |
- } |
+ return libraryLoader.loadLibrary( |
+ libraryUri, skipFileWithPartOfTag: true).then( |
+ (LibraryElement library) { |
+ if (library == null) return null; |
fullyEnqueueLibrary(library, enqueuer.resolution); |
emptyQueue(enqueuer.resolution); |
enqueuer.resolution.logSummary(reporter.log); |