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

Unified Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1167733004: Decide if unit without directives is a part or a library. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/analyzer/lib/src/context/context.dart
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
index 6eee8e967ebd9aad1a83f8353a44f38f6ff41685..db342d478fcb624687ce0c8ac1e68e4eecce3361 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -821,10 +821,8 @@ class AnalysisContextImpl implements InternalAnalysisContext {
SourceKind kind = getKindOf(source);
if (kind == SourceKind.LIBRARY) {
return <Source>[source];
- } else if (kind == SourceKind.PART) {
- return dartWorkManager.getLibrariesContainingPart(source);
}
- return Source.EMPTY_ARRAY;
+ return dartWorkManager.getLibrariesContainingPart(source);
}
@override

Powered by Google App Engine
This is Rietveld 408576698