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

Unified Diff: pkg/analyzer/lib/file_system/memory_file_system.dart

Issue 2286923002: Convert analysis server over to use ContextBuilder (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: address comment, fix bugs, clean-up Created 4 years, 4 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/file_system/memory_file_system.dart
diff --git a/pkg/analyzer/lib/file_system/memory_file_system.dart b/pkg/analyzer/lib/file_system/memory_file_system.dart
index d179d7f523184133448de9af85162d5f6a82ae20..0ba9b9409dee7331c708bbbb286c5d2b4ea19141 100644
--- a/pkg/analyzer/lib/file_system/memory_file_system.dart
+++ b/pkg/analyzer/lib/file_system/memory_file_system.dart
@@ -201,6 +201,15 @@ class MemoryResourceProvider implements ResourceProvider {
return file;
}
+ /**
+ * Write a representation of the file system on the given [sink].
+ */
+ void writeOn(StringSink sink) {
+ List<String> paths = _pathToResource.keys.toList();
+ paths.sort();
+ paths.forEach(sink.writeln);
+ }
+
void _checkFileAtPath(String path) {
_MemoryResource resource = _pathToResource[path];
if (resource is! _MemoryFile) {
@@ -484,6 +493,9 @@ class _MemoryFolder extends _MemoryResource implements Folder {
}
@override
+ Folder resolveSymbolicLinksSync() => this;
+
+ @override
Uri toUri() =>
new Uri.directory(path, windows: _provider.pathContext == windows);
}
« no previous file with comments | « pkg/analyzer/lib/file_system/file_system.dart ('k') | pkg/analyzer/lib/file_system/physical_file_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698