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 a8cd2e6afbb1091055bc9badaddbcf956a25e554..daff329cb9e775d9e23db511cc3e28530789973f 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)); |
} |