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

Unified Diff: tools/testing/dart/status_expression.dart

Issue 11047013: Minor fixes to test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: tools/testing/dart/status_expression.dart
diff --git a/tools/testing/dart/status_expression.dart b/tools/testing/dart/status_expression.dart
index a2b361d5d7fe5ebdbaecacc4383e0ae051eb4bba..fcc11cbcc2d8f4fa63e82be75df079cf026187ee 100644
--- a/tools/testing/dart/status_expression.dart
+++ b/tools/testing/dart/status_expression.dart
@@ -9,8 +9,8 @@
* There are set expressions and Boolean expressions in a .status file.
* The grammar is:
* BooleanExpression := $variableName == value | $variableName |
- * (BooleanExpression) |
- * BooleanExpression && BooleanExpression |
+ * (BooleanExpression) |
+ * BooleanExpression && BooleanExpression |
* BooleanExpression || BooleanExpression
*
* SetExpression := value | (SetExpression) |
@@ -31,8 +31,7 @@
*/
-class Token
-{
+class Token {
static const String LEFT_PAREN = "(";
static const String RIGHT_PAREN = ")";
static const String DOLLAR_SYMBOL = r"$";
@@ -65,12 +64,12 @@ class Tokenizer {
}
-interface BooleanExpression {
+abstract class BooleanExpression {
bool evaluate(Map<String, String> environment);
}
-interface SetExpression {
+abstract class SetExpression {
Set<String> evaluate(Map<String, String> environment);
}
@@ -103,7 +102,7 @@ class TermConstant {
String termValue(environment) => value;
}
-
+
class BooleanVariable implements BooleanExpression {
TermVariable variable;

Powered by Google App Engine
This is Rietveld 408576698