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

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

Issue 427473003: Uncomment and test fixes for importing libraries. (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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 return '${new String.fromCharCode(uriKind.encoding)}${_file.path}'; 210 return '${new String.fromCharCode(uriKind.encoding)}${_file.path}';
211 } 211 }
212 212
213 @override 213 @override
214 String get fullName => _file.path; 214 String get fullName => _file.path;
215 215
216 @override 216 @override
217 int get hashCode => _file.hashCode; 217 int get hashCode => _file.hashCode;
218 218
219 @override 219 @override
220 bool get isInSystemLibrary => false; 220 bool get isInSystemLibrary => uriKind == UriKind.DART_URI;
221 221
222 @override 222 @override
223 int get modificationStamp => _file._timestamp; 223 int get modificationStamp => _file._timestamp;
224 224
225 @override 225 @override
226 String get shortName => _file.shortName; 226 String get shortName => _file.shortName;
227 227
228 @override 228 @override
229 bool operator ==(other) { 229 bool operator ==(other) {
230 if (other is _MemoryFileSource) { 230 if (other is _MemoryFileSource) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 bool operator ==(other) { 332 bool operator ==(other) {
333 if (runtimeType != other.runtimeType) { 333 if (runtimeType != other.runtimeType) {
334 return false; 334 return false;
335 } 335 }
336 return path == other.path; 336 return path == other.path;
337 } 337 }
338 338
339 @override 339 @override
340 String toString() => path; 340 String toString() => path;
341 } 341 }
OLDNEW
« pkg/analysis_services/lib/src/correction/util.dart ('K') | « pkg/analysis_testing/lib/mock_sdk.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698