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

Unified Diff: utils/template/parser.dart

Issue 10399010: Fixed breakage in template utility now that statics aren't inherited. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix to calculator and template UI tests. Created 8 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: utils/template/parser.dart
diff --git a/utils/template/parser.dart b/utils/template/parser.dart
index d306eb8ff31c8a3603a66abe959786a3f18b13d1..7b36704e82d989d6c32cd78c42d066a99ef8dc48 100644
--- a/utils/template/parser.dart
+++ b/utils/template/parser.dart
@@ -413,7 +413,7 @@ class Parser {
return stylesheet;
} catch (final cssParseException) {
- // TODO(terry): Need SourceSpan from CSS parser to pass onto _error.
+ // TODO(terry): Need SourceSpan from CSS parser to pass onto _error.
_error("Unexcepted CSS error: ${cssParseException.toString()}");
}
}
@@ -535,12 +535,12 @@ class Parser {
var elem = stack.pop();
if (elem is TemplateEachCommand &&
commandName.name == "each") {
-
+
} else if (elem is TemplateWithCommand &&
commandName.name == "with") {
-
+
} /*else if (elem is TemplateIfCommand && commandName == "if") {
-
+
}
*/else {
String expectedCmd;
@@ -649,7 +649,7 @@ class Parser {
if (!TokenKind.isIdentifier(tok.kind)) {
_error('expected identifier, but found $tok', tok.span);
}
-
+
return new Identifier(tok.text, _makeSpan(tok.start));
}

Powered by Google App Engine
This is Rietveld 408576698