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

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

Issue 1183773002: Add self-reference sources into INCLUDED_PARTS. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/compile_time_error_code_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e8443f87e0a9e61b75b5d019f4b110562fc7ffd2..a7518632d80e922b0d46b499749251e2845c0e38 100644
--- a/pkg/analyzer/lib/src/task/dart.dart
+++ b/pkg/analyzer/lib/src/task/dart.dart
@@ -2726,9 +2726,7 @@ class ParseDartTask extends SourceBasedAnalysisTask {
} else if (directive is ImportDirective) {
explicitlyImportedSourceSet.add(referencedSource);
} else if (directive is PartDirective) {
- if (referencedSource != source) {
- includedSourceSet.add(referencedSource);
- }
+ includedSourceSet.add(referencedSource);
} else {
throw new AnalysisException(
'$runtimeType failed to handle a ${directive.runtimeType}');
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/compile_time_error_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698