Index: pkg/analyzer_cli/lib/src/driver.dart |
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart |
index 58e43596ef96577b97554ecefdd204c4adfa6cea..3de4b4d12cb155e67deed6e9b18aa9e5550bc1e0 100644 |
--- a/pkg/analyzer_cli/lib/src/driver.dart |
+++ b/pkg/analyzer_cli/lib/src/driver.dart |
@@ -290,7 +290,9 @@ class Driver implements CommandLineStarter { |
packagesRequiringFullParse = null; |
} |
return (Source source) { |
- if (source.uri.scheme == 'dart') { |
+ if (options.sourceFiles.contains(source.fullName)) { |
+ return true; |
+ } else if (source.uri.scheme == 'dart') { |
return options.showSdkWarnings; |
} else if (source.uri.scheme == 'package') { |
if (packagesRequiringFullParse == null) { |