Index: pkg/analyzer/lib/src/task/dart.dart |
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart |
index daff329cb9e775d9e23db511cc3e28530789973f..2a7ca939ddf6115b8c4544196a0960d2ff649843 100644 |
--- a/pkg/analyzer/lib/src/task/dart.dart |
+++ b/pkg/analyzer/lib/src/task/dart.dart |
@@ -1626,7 +1626,8 @@ class BuildLibraryElementTask extends SourceBasedAnalysisTask { |
} |
} |
} |
- if (hasPartDirective && libraryNameNode == null && |
+ if (hasPartDirective && |
+ libraryNameNode == null && |
!context.analysisOptions.enableUriInPartOf) { |
errors.add(new AnalysisError(librarySource, 0, 0, |
ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART)); |