OLD | NEW |
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 analyzer.file_system.physical_file_system; | 5 library analyzer.file_system.physical_file_system; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:core' hide Resource; | 8 import 'dart:core' hide Resource; |
9 import 'dart:io' as io; | 9 import 'dart:io' as io; |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 static final PhysicalResourceProvider INSTANCE = | 25 static final PhysicalResourceProvider INSTANCE = |
26 new PhysicalResourceProvider(null); | 26 new PhysicalResourceProvider(null); |
27 | 27 |
28 /** | 28 /** |
29 * The name of the directory containing plugin specific subfolders used to | 29 * The name of the directory containing plugin specific subfolders used to |
30 * store data across sessions. | 30 * store data across sessions. |
31 */ | 31 */ |
32 static final String SERVER_DIR = ".dartServer"; | 32 static final String SERVER_DIR = ".dartServer"; |
33 | 33 |
| 34 @override |
34 final AbsolutePathContext absolutePathContext = | 35 final AbsolutePathContext absolutePathContext = |
35 new AbsolutePathContext(io.Platform.isWindows); | 36 new AbsolutePathContext(io.Platform.isWindows); |
36 | 37 |
37 PhysicalResourceProvider(String fileReadMode(String s)) { | 38 PhysicalResourceProvider(String fileReadMode(String s)) { |
38 if (fileReadMode != null) { | 39 if (fileReadMode != null) { |
39 FileBasedSource.fileReadMode = fileReadMode; | 40 FileBasedSource.fileReadMode = fileReadMode; |
40 } | 41 } |
41 } | 42 } |
42 | 43 |
43 @override | 44 @override |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 bool operator ==(other) { | 220 bool operator ==(other) { |
220 if (runtimeType != other.runtimeType) { | 221 if (runtimeType != other.runtimeType) { |
221 return false; | 222 return false; |
222 } | 223 } |
223 return path == other.path; | 224 return path == other.path; |
224 } | 225 } |
225 | 226 |
226 @override | 227 @override |
227 String toString() => path; | 228 String toString() => path; |
228 } | 229 } |
OLD | NEW |