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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart

Issue 229653004: New analyzer snapshot with MapIterator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
index 0957f27fe7421ac705c4bff00e31b85515c96553..1e1e4459364f69feffe2123d741a0007edb9fddc 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_io.dart
@@ -103,6 +103,9 @@ class JavaFile {
}
return false;
}
+ bool isExecutable() {
+ return _newFile().statSync().mode & 0x111 != 0;
+ }
bool isFile() {
return _newFile().existsSync();
}

Powered by Google App Engine
This is Rietveld 408576698