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

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

Issue 1481273002: Consistently use implements when one interface inherits from another interface (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
« no previous file with comments | « pkg/analysis_server/lib/plugin/protocol/protocol.dart ('k') | pkg/analyzer/lib/task/model.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 file_system; 5 library file_system;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analyzer/src/generated/source.dart'; 9 import 'package:analyzer/src/generated/source.dart';
10 import 'package:analyzer/src/util/absolute_path.dart'; 10 import 'package:analyzer/src/util/absolute_path.dart';
11 import 'package:path/path.dart'; 11 import 'package:path/path.dart';
12 import 'package:watcher/watcher.dart'; 12 import 'package:watcher/watcher.dart';
13 13
14 /** 14 /**
15 * [File]s are leaf [Resource]s which contain data. 15 * [File]s are leaf [Resource]s which contain data.
16 */ 16 */
17 abstract class File extends Resource { 17 abstract class File implements Resource {
18 /** 18 /**
19 * Watch for changes to this file 19 * Watch for changes to this file
20 */ 20 */
21 Stream<WatchEvent> get changes; 21 Stream<WatchEvent> get changes;
22 22
23 /** 23 /**
24 * Return the last-modified stamp of the file. 24 * Return the last-modified stamp of the file.
25 * Throws [FileSystemException] if the file does not exist. 25 * Throws [FileSystemException] if the file does not exist.
26 */ 26 */
27 int get modificationStamp; 27 int get modificationStamp;
(...skipping 18 matching lines...) Expand all
46 final String message; 46 final String message;
47 47
48 FileSystemException(this.path, this.message); 48 FileSystemException(this.path, this.message);
49 49
50 String toString() => 'FileSystemException(path=$path; message=$message)'; 50 String toString() => 'FileSystemException(path=$path; message=$message)';
51 } 51 }
52 52
53 /** 53 /**
54 * [Folder]s are [Resource]s which may contain files and/or other folders. 54 * [Folder]s are [Resource]s which may contain files and/or other folders.
55 */ 55 */
56 abstract class Folder extends Resource { 56 abstract class Folder implements Resource {
57 /** 57 /**
58 * Watch for changes to the files inside this folder (and in any nested 58 * Watch for changes to the files inside this folder (and in any nested
59 * folders, including folders reachable via links). 59 * folders, including folders reachable via links).
60 */ 60 */
61 Stream<WatchEvent> get changes; 61 Stream<WatchEvent> get changes;
62 62
63 /** 63 /**
64 * If the path [path] is a relative path, convert it to an absolute path 64 * If the path [path] is a relative path, convert it to an absolute path
65 * by interpreting it relative to this folder. If it is already an aboslute 65 * by interpreting it relative to this folder. If it is already an aboslute
66 * path, then don't change it. 66 * path, then don't change it.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 @override 202 @override
203 Uri restoreAbsolute(Source source) => 203 Uri restoreAbsolute(Source source) =>
204 _provider.pathContext.toUri(source.fullName); 204 _provider.pathContext.toUri(source.fullName);
205 205
206 /** 206 /**
207 * Return `true` if the given [uri] is a `file` URI. 207 * Return `true` if the given [uri] is a `file` URI.
208 */ 208 */
209 static bool _isFileUri(Uri uri) => uri.scheme == _FILE_SCHEME; 209 static bool _isFileUri(Uri uri) => uri.scheme == _FILE_SCHEME;
210 } 210 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/plugin/protocol/protocol.dart ('k') | pkg/analyzer/lib/task/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698