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

Unified Diff: pkg/csslib/lib/src/css_printer.dart

Issue 60983003: pkg/csslib: fixed analysis error, more cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 7 years, 1 month 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/csslib/lib/src/analyzer.dart ('k') | pkg/csslib/lib/src/messages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/csslib/lib/src/css_printer.dart
diff --git a/pkg/csslib/lib/src/css_printer.dart b/pkg/csslib/lib/src/css_printer.dart
index 73c29845179cee1f919cd7feb6367db693465f91..9a80ee1aa5d49a99a3481131098b8537e858aa77 100644
--- a/pkg/csslib/lib/src/css_printer.dart
+++ b/pkg/csslib/lib/src/css_printer.dart
@@ -104,7 +104,7 @@ class CssPrinter extends Visitor {
emit(' ');
var declsMargin = node._declsMargin;
- int declsMarginLength = declsMargin.length;
+ var declsMarginLength = declsMargin.length;
for (var i = 0; i < declsMarginLength; i++) {
if (i > 0) emit(_newLine);
emit('{$_newLine');
@@ -161,7 +161,7 @@ class CssPrinter extends Visitor {
}
void visitStyletDirective(StyletDirective node) {
- emit('/* @stylet export as ${node._dartClassName} */\n');
+ emit('/* @stylet export as ${node.dartClassName} */\n');
}
void visitNamespaceDirective(NamespaceDirective node) {
@@ -224,7 +224,7 @@ class CssPrinter extends Visitor {
}
void visitDeclarationGroup(DeclarationGroup node) {
- var declarations = node._declarations;
+ var declarations = node.declarations;
var declarationsLength = declarations.length;
for (var i = 0; i < declarationsLength; i++) {
if (i > 0) emit(_newLine);
@@ -338,7 +338,7 @@ class CssPrinter extends Visitor {
}
void visitSelectorExpression(SelectorExpression node) {
- var expressions = node._expressions;
+ var expressions = node.expressions;
var expressionsLength = expressions.length;
for (var i = 0; i < expressionsLength; i++) {
// Add space seperator between terms without an operator.
« no previous file with comments | « pkg/csslib/lib/src/analyzer.dart ('k') | pkg/csslib/lib/src/messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698