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

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

Issue 1513643009: Clean up package imports and library names (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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
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 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
11 import 'package:analyzer/file_system/file_system.dart';
11 import 'package:analyzer/src/generated/java_io.dart'; 12 import 'package:analyzer/src/generated/java_io.dart';
12 import 'package:analyzer/src/generated/source_io.dart'; 13 import 'package:analyzer/src/generated/source_io.dart';
13 import 'package:analyzer/src/util/absolute_path.dart'; 14 import 'package:analyzer/src/util/absolute_path.dart';
14 import 'package:path/path.dart'; 15 import 'package:path/path.dart';
15 import 'package:watcher/watcher.dart'; 16 import 'package:watcher/watcher.dart';
16 17
17 import 'file_system.dart';
18
19 /** 18 /**
20 * A `dart:io` based implementation of [ResourceProvider]. 19 * A `dart:io` based implementation of [ResourceProvider].
21 */ 20 */
22 class PhysicalResourceProvider implements ResourceProvider { 21 class PhysicalResourceProvider implements ResourceProvider {
23 static final NORMALIZE_EOL_ALWAYS = (String string) => 22 static final NORMALIZE_EOL_ALWAYS = (String string) =>
24 string.replaceAll(new RegExp('\r\n?'), '\n'); 23 string.replaceAll(new RegExp('\r\n?'), '\n');
25 24
26 static final PhysicalResourceProvider INSTANCE = 25 static final PhysicalResourceProvider INSTANCE =
27 new PhysicalResourceProvider(null); 26 new PhysicalResourceProvider(null);
28 27
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 bool operator ==(other) { 219 bool operator ==(other) {
221 if (runtimeType != other.runtimeType) { 220 if (runtimeType != other.runtimeType) {
222 return false; 221 return false;
223 } 222 }
224 return path == other.path; 223 return path == other.path;
225 } 224 }
226 225
227 @override 226 @override
228 String toString() => path; 227 String toString() => path;
229 } 228 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/file_system/memory_file_system.dart ('k') | pkg/analyzer/lib/instrumentation/file_instrumentation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698