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

Side by Side Diff: pkg/analyzer/lib/file_system/memory_file_system.dart

Issue 449583003: Fix for opening SDK sources. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library memory_file_system; 5 library memory_file_system;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/src/generated/engine.dart' show TimestampedData; 10 import 'package:analyzer/src/generated/engine.dart' show TimestampedData;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 return false; 249 return false;
250 } 250 }
251 251
252 @override 252 @override
253 bool exists() => _file.exists; 253 bool exists() => _file.exists;
254 254
255 @override 255 @override
256 Uri resolveRelativeUri(Uri relativeUri) { 256 Uri resolveRelativeUri(Uri relativeUri) {
257 return uri.resolveUri(relativeUri); 257 return uri.resolveUri(relativeUri);
258 } 258 }
259
260 @override
261 String toString() => _file.toString();
259 } 262 }
260 263
261 264
262 /** 265 /**
263 * An in-memory implementation of [Folder]. 266 * An in-memory implementation of [Folder].
264 */ 267 */
265 class _MemoryFolder extends _MemoryResource implements Folder { 268 class _MemoryFolder extends _MemoryResource implements Folder {
266 _MemoryFolder(MemoryResourceProvider provider, String path) : 269 _MemoryFolder(MemoryResourceProvider provider, String path) :
267 super(provider, path); 270 super(provider, path);
268 @override 271 @override
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 bool operator ==(other) { 346 bool operator ==(other) {
344 if (runtimeType != other.runtimeType) { 347 if (runtimeType != other.runtimeType) {
345 return false; 348 return false;
346 } 349 }
347 return path == other.path; 350 return path == other.path;
348 } 351 }
349 352
350 @override 353 @override
351 String toString() => path; 354 String toString() => path;
352 } 355 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698