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

Unified Diff: pkg/analyzer/lib/file_system/physical_file_system.dart

Issue 1843473002: Sort analyzer sources (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove generated file and fix misplaced comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/dart/ast/visitor.dart ('k') | pkg/analyzer/lib/src/generated/scanner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/file_system/physical_file_system.dart
diff --git a/pkg/analyzer/lib/file_system/physical_file_system.dart b/pkg/analyzer/lib/file_system/physical_file_system.dart
index 66125a69fa7c53ecbf54d95e10ff4d31d007ddbe..1088fcccd87e592452b15a347b17910c2e1c9350 100644
--- a/pkg/analyzer/lib/file_system/physical_file_system.dart
+++ b/pkg/analyzer/lib/file_system/physical_file_system.dart
@@ -132,21 +132,21 @@ class _PhysicalFile extends _PhysicalResource implements File {
}
@override
- void writeAsBytesSync(List<int> bytes) {
+ Resource renameSync(String newPath) {
try {
io.File file = _entry as io.File;
- file.writeAsBytesSync(bytes);
+ io.File newFile = file.renameSync(newPath);
+ return new _PhysicalFile(newFile);
} on io.FileSystemException catch (exception) {
throw new FileSystemException(exception.path, exception.message);
}
}
@override
- Resource renameSync(String newPath) {
+ void writeAsBytesSync(List<int> bytes) {
try {
io.File file = _entry as io.File;
- io.File newFile = file.renameSync(newPath);
- return new _PhysicalFile(newFile);
+ file.writeAsBytesSync(bytes);
} on io.FileSystemException catch (exception) {
throw new FileSystemException(exception.path, exception.message);
}
« no previous file with comments | « pkg/analyzer/lib/dart/ast/visitor.dart ('k') | pkg/analyzer/lib/src/generated/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698