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

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

Issue 1749143003: Add @overrides to (a lot of) analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: options Created 4 years, 9 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.file_system.file_system; 5 library analyzer.file_system.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';
(...skipping 29 matching lines...) Expand all
40 40
41 /** 41 /**
42 * Base class for all file system exceptions. 42 * Base class for all file system exceptions.
43 */ 43 */
44 class FileSystemException implements Exception { 44 class FileSystemException implements Exception {
45 final String path; 45 final String path;
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 @override
50 String toString() => 'FileSystemException(path=$path; message=$message)'; 51 String toString() => 'FileSystemException(path=$path; message=$message)';
51 } 52 }
52 53
53 /** 54 /**
54 * [Folder]s are [Resource]s which may contain files and/or other folders. 55 * [Folder]s are [Resource]s which may contain files and/or other folders.
55 */ 56 */
56 abstract class Folder implements Resource { 57 abstract class Folder implements Resource {
57 /** 58 /**
58 * Watch for changes to the files inside this folder (and in any nested 59 * Watch for changes to the files inside this folder (and in any nested
59 * folders, including folders reachable via links). 60 * folders, including folders reachable via links).
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 202
202 @override 203 @override
203 Uri restoreAbsolute(Source source) => 204 Uri restoreAbsolute(Source source) =>
204 _provider.pathContext.toUri(source.fullName); 205 _provider.pathContext.toUri(source.fullName);
205 206
206 /** 207 /**
207 * Return `true` if the given [uri] is a `file` URI. 208 * Return `true` if the given [uri] is a `file` URI.
208 */ 209 */
209 static bool _isFileUri(Uri uri) => uri.scheme == _FILE_SCHEME; 210 static bool _isFileUri(Uri uri) => uri.scheme == _FILE_SCHEME;
210 } 211 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | pkg/analyzer/lib/file_system/memory_file_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698