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

Side by Side Diff: pkg/analyzer/lib/src/generated/source_io.dart

Issue 2245133005: Convert resource providers to use FileSource (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix missed reference Created 4 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
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.src.generated.source_io; 5 library analyzer.src.generated.source_io;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/java_core.dart'; 10 import 'package:analyzer/src/generated/java_core.dart';
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 @override 215 @override
216 String get fullName { 216 String get fullName {
217 if (_absolutePath == null) { 217 if (_absolutePath == null) {
218 _absolutePath = file.getAbsolutePath(); 218 _absolutePath = file.getAbsolutePath();
219 } 219 }
220 return _absolutePath; 220 return _absolutePath;
221 } 221 }
222 222
223 @override 223 @override
224 int get hashCode => id; 224 int get hashCode => uri.hashCode;
225 225
226 @override 226 @override
227 bool get isInSystemLibrary => uri.scheme == DartUriResolver.DART_SCHEME; 227 bool get isInSystemLibrary => uri.scheme == DartUriResolver.DART_SCHEME;
228 228
229 @override 229 @override
230 int get modificationStamp => file.lastModified(); 230 int get modificationStamp => file.lastModified();
231 231
232 @override 232 @override
233 String get shortName => file.getName(); 233 String get shortName => file.getName();
234 234
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 } 566 }
567 567
568 /** 568 /**
569 * Return `true` if the given URI is a `file` URI. 569 * Return `true` if the given URI is a `file` URI.
570 * 570 *
571 * @param uri the URI being tested 571 * @param uri the URI being tested
572 * @return `true` if the given URI is a `file` URI 572 * @return `true` if the given URI is a `file` URI
573 */ 573 */
574 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; 574 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME;
575 } 575 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/file_system/physical_file_system.dart ('k') | pkg/analyzer/lib/src/source/source_resource.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698