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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 1562023002: Add test of unittests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 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: 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);

Powered by Google App Engine
This is Rietveld 408576698