Index: pkg/status_file/lib/environment.dart |
diff --git a/pkg/status_file/lib/environment.dart b/pkg/status_file/lib/environment.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..89e20ac3f3ad786c587b3205cf0d86eef4fafec6 |
--- /dev/null |
+++ b/pkg/status_file/lib/environment.dart |
@@ -0,0 +1,16 @@ |
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+/// An implementation of this defines the variables that are available for use |
+/// inside a status file section header. |
+abstract class Environment { |
+ /// Validates that the variable with [name] exists and can be compared |
+ /// against [value]. |
+ /// |
+ /// If any errors are found, adds them to [errors]. |
+ void validate(String name, String value, List<String> errors); |
+ |
+ /// Looks up the value of the variable with [name]. |
+ String lookUp(String name); |
+} |