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

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

Issue 2386123004: Remove JavaFile.pathContext (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/java_io.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 analyzer.file_system.memory_file_system; 5 library analyzer.file_system.memory_file_system;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:core'; 10 import 'dart:core';
(...skipping 16 matching lines...) Expand all
27 final Map<String, int> _pathToTimestamp = new HashMap<String, int>(); 27 final Map<String, int> _pathToTimestamp = new HashMap<String, int>();
28 final Map<String, List<StreamController<WatchEvent>>> _pathToWatchers = 28 final Map<String, List<StreamController<WatchEvent>>> _pathToWatchers =
29 new HashMap<String, List<StreamController<WatchEvent>>>(); 29 new HashMap<String, List<StreamController<WatchEvent>>>();
30 int nextStamp = 0; 30 int nextStamp = 0;
31 31
32 final pathos.Context _pathContext; 32 final pathos.Context _pathContext;
33 33
34 @override 34 @override
35 final AbsolutePathContext absolutePathContext; 35 final AbsolutePathContext absolutePathContext;
36 36
37 MemoryResourceProvider({pathos.Context context}) 37 MemoryResourceProvider(
38 {pathos.Context context, @deprecated bool isWindows: false})
38 : _pathContext = context ?? pathos.context, 39 : _pathContext = context ?? pathos.context,
39 absolutePathContext = new AbsolutePathContext( 40 absolutePathContext = new AbsolutePathContext(
40 pathos.Style.platform == pathos.Style.windows); 41 pathos.Style.platform == pathos.Style.windows);
41 42
42 @override 43 @override
43 pathos.Context get pathContext => _pathContext; 44 pathos.Context get pathContext => _pathContext;
44 45
45 /** 46 /**
46 * Delete the file with the given path. 47 * Delete the file with the given path.
47 */ 48 */
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 bool operator ==(other) { 549 bool operator ==(other) {
549 if (runtimeType != other.runtimeType) { 550 if (runtimeType != other.runtimeType) {
550 return false; 551 return false;
551 } 552 }
552 return path == other.path; 553 return path == other.path;
553 } 554 }
554 555
555 @override 556 @override
556 String toString() => path; 557 String toString() => path;
557 } 558 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/java_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698