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

Unified Diff: pkg/status_file/lib/environment.dart

Issue 2984203002: Move the status file parser into its own package. (Closed)
Patch Set: Created 3 years, 5 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/status_file/.packages ('k') | pkg/status_file/lib/expectation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
« no previous file with comments | « pkg/status_file/.packages ('k') | pkg/status_file/lib/expectation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698