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

Unified Diff: packages/csslib/lib/src/polyfill.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers 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 | « packages/csslib/lib/src/options.dart ('k') | packages/csslib/lib/src/property.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/csslib/lib/src/polyfill.dart
diff --git a/packages/csslib/lib/src/polyfill.dart b/packages/csslib/lib/src/polyfill.dart
index b18abd1626c1686043a90c7aed5e5b880c75f976..9bdcbe232f1266de8dc9ba4f47ba4042c2eae7ba 100644
--- a/packages/csslib/lib/src/polyfill.dart
+++ b/packages/csslib/lib/src/polyfill.dart
@@ -40,14 +40,17 @@ class PolyFill {
void processVarDefinitions(List<StyleSheet> includes) {
for (var include in includes) {
_allVarDefinitions = (new _VarDefinitionsIncludes(_allVarDefinitions)
- ..visitTree(include)).varDefs;
+ ..visitTree(include))
+ .varDefs;
}
}
void processVars(StyleSheet styleSheet) {
// Build list of all var definitions.
- var mainStyleSheetVarDefs = (new _VarDefAndUsage(
- this._messages, _allVarDefinitions)..visitTree(styleSheet)).varDefs;
+ var mainStyleSheetVarDefs =
+ (new _VarDefAndUsage(this._messages, _allVarDefinitions)
+ ..visitTree(styleSheet))
+ .varDefs;
// Resolve all definitions to a non-VarUsage (terminal expression).
mainStyleSheetVarDefs.forEach((key, value) {
@@ -170,7 +173,7 @@ class _VarDefAndUsage extends Visitor {
}
List<Expression> resolveUsageTerminal(VarUsage usage) {
- var result = [];
+ var result = <Expression>[];
var varDef = _knownVarDefs[usage.name];
var expressions;
« no previous file with comments | « packages/csslib/lib/src/options.dart ('k') | packages/csslib/lib/src/property.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698