Index: pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart |
diff --git a/pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart b/pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart |
index 71f1f2093d0322979dfa9a94e84f8052e05aeab0..aa9d56ba7426d3f152e0ed86c878f507289804cd 100644 |
--- a/pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart |
+++ b/pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart |
@@ -474,7 +474,8 @@ class LibraryAnalyzer { |
} |
} |
- if (hasPartDirective && libraryNameNode == null && |
+ if (hasPartDirective && |
+ libraryNameNode == null && |
!_context.analysisOptions.enableUriInPartOf) { |
libraryErrorReporter.reportErrorForOffset( |
ResolverErrorCode.MISSING_LIBRARY_DIRECTIVE_WITH_PART, 0, 0); |