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

Unified Diff: pkg/front_end/lib/src/fasta/environment_variable.dart

Issue 2718113003: Run dartfmt on pkg/front_end/lib. (Closed)
Patch Set: Rerun after merging. Created 3 years, 10 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/front_end/lib/src/fasta/dill/dill_target.dart ('k') | pkg/front_end/lib/src/fasta/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/environment_variable.dart
diff --git a/pkg/front_end/lib/src/fasta/environment_variable.dart b/pkg/front_end/lib/src/fasta/environment_variable.dart
index c58ab1771ebcb3abb30052fd238106cde485bbce..dfd2dc66e8e339affd1af25790c6144c537b517c 100644
--- a/pkg/front_end/lib/src/fasta/environment_variable.dart
+++ b/pkg/front_end/lib/src/fasta/environment_variable.dart
@@ -4,16 +4,11 @@
library fasta.environment_variable;
-import 'dart:async' show
- Future;
+import 'dart:async' show Future;
-import 'dart:io' show
- Directory,
- File,
- Platform;
+import 'dart:io' show Directory, File, Platform;
-import 'errors.dart' show
- inputError;
+import 'errors.dart' show inputError;
class EnvironmentVariable {
final String name;
@@ -32,14 +27,13 @@ class EnvironmentVariable {
Future<Null> validate(String value) => new Future<Null>.value();
variableNotDefined() {
- inputError(null, null,
- "The environment variable '$name' isn't defined. $what");
+ inputError(
+ null, null, "The environment variable '$name' isn't defined. $what");
}
}
class EnvironmentVariableFile extends EnvironmentVariable {
- const EnvironmentVariableFile(String name, String what)
- : super(name, what);
+ const EnvironmentVariableFile(String name, String what) : super(name, what);
Future<Null> validate(String value) async {
if (!await new File(value).exists()) notFound(value);
@@ -47,7 +41,10 @@ class EnvironmentVariableFile extends EnvironmentVariable {
}
notFound(String value) {
- inputError(null, null,"The environment variable '$name' has the value "
+ inputError(
+ null,
+ null,
+ "The environment variable '$name' has the value "
"'$value', that isn't a file. $what");
}
}
@@ -62,7 +59,10 @@ class EnvironmentVariableDirectory extends EnvironmentVariable {
}
notFound(String value) {
- inputError(null, null, "The environment variable '$name' has the value "
+ inputError(
+ null,
+ null,
+ "The environment variable '$name' has the value "
"'$value', that isn't a directory. $what");
}
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/dill/dill_target.dart ('k') | pkg/front_end/lib/src/fasta/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698