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

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

Issue 1847633002: Fix more strong mode errors in analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix copied comment Created 4 years, 8 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.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:core' hide Resource; 9 import 'dart:core' hide Resource;
10 10
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 List<int> readAsBytesSync() { 289 List<int> readAsBytesSync() {
290 throw new FileSystemException(path, 'File could not be read'); 290 throw new FileSystemException(path, 'File could not be read');
291 } 291 }
292 292
293 @override 293 @override
294 String readAsStringSync() { 294 String readAsStringSync() {
295 throw new FileSystemException(path, 'File could not be read'); 295 throw new FileSystemException(path, 'File could not be read');
296 } 296 }
297 297
298 @override 298 @override
299 Resource renameSync(String newPath) { 299 File renameSync(String newPath) {
300 throw new FileSystemException(path, 'File could not be renamed'); 300 throw new FileSystemException(path, 'File could not be renamed');
301 } 301 }
302 302
303 @override 303 @override
304 void writeAsBytesSync(List<int> bytes) { 304 void writeAsBytesSync(List<int> bytes) {
305 throw new FileSystemException(path, 'File could not be written'); 305 throw new FileSystemException(path, 'File could not be written');
306 } 306 }
307 } 307 }
308 308
309 /** 309 /**
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 bool operator ==(other) { 570 bool operator ==(other) {
571 if (runtimeType != other.runtimeType) { 571 if (runtimeType != other.runtimeType) {
572 return false; 572 return false;
573 } 573 }
574 return path == other.path; 574 return path == other.path;
575 } 575 }
576 576
577 @override 577 @override
578 String toString() => path; 578 String toString() => path;
579 } 579 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698