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

Unified Diff: utils/css/parser.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « utils/archive/utils.dart ('k') | utils/lib/file_system_vm.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/css/parser.dart
diff --git a/utils/css/parser.dart b/utils/css/parser.dart
index 37d11a584ab4abdace67c448d4fd883bda747b38..4e0c1876147293935ab37154920ec90c451c7c2d 100644
--- a/utils/css/parser.dart
+++ b/utils/css/parser.dart
@@ -37,7 +37,7 @@ class Parser {
// }
// <div>...</div>
// }
- //
+ //
Stylesheet parse([bool nestedCSS = false, var erroMsgRedirector = null]) {
// TODO(terry): Hack for migrating CSS errors back to template errors.
_erroMsgRedirector = erroMsgRedirector;
@@ -199,7 +199,7 @@ class Parser {
///////////////////////////////////////////////////////////////////
// Productions
///////////////////////////////////////////////////////////////////
-
+
processMedia([bool oneRequired = false]) {
List<String> media = [];
@@ -656,7 +656,7 @@ class Parser {
if (TokenKind.isIdentifier(_peekToken.kind)) {
var propertyIdent = identifier();
_eat(TokenKind.COLON);
-
+
decl = new Declaration(propertyIdent, processExpr(), _makeSpan(start));
// Handle !important (prio)
@@ -763,11 +763,11 @@ class Parser {
break;
case TokenKind.INTEGER:
t = _next();
- value = Math.parseInt("${unary}${t.text}");
+ value = int.parse("${unary}${t.text}");
break;
case TokenKind.DOUBLE:
t = _next();
- value = Math.parseDouble("${unary}${t.text}");
+ value = double.parse("${unary}${t.text}");
break;
case TokenKind.SINGLE_QUOTE:
case TokenKind.DOUBLE_QUOTE:
@@ -978,7 +978,7 @@ class Parser {
if (!TokenKind.isIdentifier(tok.kind)) {
_error('expected identifier, but found $tok', tok.span);
}
-
+
return new Identifier(tok.text, _makeSpan(tok.start));
}
« no previous file with comments | « utils/archive/utils.dart ('k') | utils/lib/file_system_vm.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698