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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/java_io.dart

Issue 16337007: Version 0.5.13.1 . (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 7 years, 7 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: pkg/analyzer_experimental/lib/src/generated/java_io.dart
===================================================================
--- pkg/analyzer_experimental/lib/src/generated/java_io.dart (revision 23549)
+++ pkg/analyzer_experimental/lib/src/generated/java_io.dart (working copy)
@@ -21,6 +21,13 @@
return '\n';
}
if (name == 'com.google.dart.sdk') {
+ String value = Platform.environment['DART_SDK'];
+ if (value != null) {
+ _properties[name] = value;
+ return value;
+ }
+ }
+ if (name == 'com.google.dart.sdk') {
String exec = new Options().executable;
if (exec.length != 0) {
String sdkPath;
@@ -86,6 +93,14 @@
Uri toURI() => new Uri(path: _path.toString());
String readAsStringSync() => _newFile().readAsStringSync();
int lastModified() => _newFile().lastModifiedSync().millisecondsSinceEpoch;
+ List<JavaFile> listFiles() {
+ List<JavaFile> files = [];
+ List<FileSystemEntity> entities = _newDirectory().listSync();
+ for (FileSystemEntity entity in entities) {
+ files.add(new JavaFile(entity.path));
+ }
+ return files;
+ }
File _newFile() => new File.fromPath(_path);
Directory _newDirectory() => new Directory.fromPath(_path);
}
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/java_core.dart ('k') | pkg/analyzer_experimental/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698