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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2640793006: Don't create FileState(s) for SDK source in _ContentCacheWrapper. (Closed)
Patch Set: Created 3 years, 11 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 | « pkg/analysis_server/test/domain_diagnostic_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/analysis/driver.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/driver.dart b/pkg/analyzer/lib/src/dart/analysis/driver.dart
index 0d16a9221cc11a1210f6ff601aecc10090dfc68a..b5ea6e8f1cb685ef8d918c5f730bdefb6712e011 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -1549,11 +1549,17 @@ class _ContentCacheWrapper implements ContentCache {
@override
bool getExists(Source source) {
+ if (source.isInSystemLibrary) {
+ return true;
+ }
return _getFileForSource(source).exists;
}
@override
int getModificationStamp(Source source) {
+ if (source.isInSystemLibrary) {
+ return 0;
+ }
return _getFileForSource(source).exists ? 0 : -1;
}
« no previous file with comments | « pkg/analysis_server/test/domain_diagnostic_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698