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

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

Issue 444293002: Fixes for the 'pub' bot and 'analysis_server' on Windows. (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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 throw new MemoryResourceException(path, "File '$path' does not exist"); 179 throw new MemoryResourceException(path, "File '$path' does not exist");
180 } 180 }
181 return content; 181 return content;
182 } 182 }
183 183
184 int get _timestamp => _provider._pathToTimestamp[path]; 184 int get _timestamp => _provider._pathToTimestamp[path];
185 185
186 @override 186 @override
187 Source createSource([Uri uri]) { 187 Source createSource([Uri uri]) {
188 if (uri == null) { 188 if (uri == null) {
189 uri = toUri(path); 189 uri = posix.toUri(path);
190 } 190 }
191 return new _MemoryFileSource(this, uri); 191 return new _MemoryFileSource(this, uri);
192 } 192 }
193 } 193 }
194 194
195 195
196 /** 196 /**
197 * An in-memory implementation of [Source]. 197 * An in-memory implementation of [Source].
198 */ 198 */
199 class _MemoryFileSource implements Source { 199 class _MemoryFileSource implements Source {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 bool operator ==(other) { 351 bool operator ==(other) {
352 if (runtimeType != other.runtimeType) { 352 if (runtimeType != other.runtimeType) {
353 return false; 353 return false;
354 } 354 }
355 return path == other.path; 355 return path == other.path;
356 } 356 }
357 357
358 @override 358 @override
359 String toString() => path; 359 String toString() => path;
360 } 360 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698