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

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

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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/css_printer.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 9b682ce4cb127126f0589830647683cd481c3f65..b18abd1626c1686043a90c7aed5e5b880c75f976 100644
--- a/packages/csslib/lib/src/polyfill.dart
+++ b/packages/csslib/lib/src/polyfill.dart
@@ -10,7 +10,6 @@ part of csslib.parser;
*/
class PolyFill {
final Messages _messages;
- final bool _warningsAsErrors;
Map<String, VarDefinition> _allVarDefinitions =
new Map<String, VarDefinition>();
@@ -21,7 +20,7 @@ class PolyFill {
* CSS pseudo-elements 'name::custom-element' is mapped to the manged name
* associated with the pseudo-element key.
*/
- PolyFill(this._messages, this._warningsAsErrors);
+ PolyFill(this._messages);
/**
* Run the analyzer on every file that is a style sheet or any component that
@@ -227,7 +226,7 @@ VarDefinition _findTerminalVarDefinition(
var expressions = varDef.expression as Expressions;
for (var expr in expressions.expressions) {
if (expr is VarUsage) {
- var usageName = (expr as VarUsage).name;
+ var usageName = expr.name;
var foundDef = varDefs[usageName];
// If foundDef is unknown check if defaultValues; if it exist then resolve
@@ -236,7 +235,7 @@ VarDefinition _findTerminalVarDefinition(
// We're either a VarUsage or terminal definition if in varDefs;
// either way replace VarUsage with it's default value because the
// VarDefinition isn't found.
- var defaultValues = (expr as VarUsage).defaultValues;
+ var defaultValues = expr.defaultValues;
var replaceExprs = expressions.expressions;
assert(replaceExprs.length == 1);
replaceExprs.replaceRange(0, 1, defaultValues);
« no previous file with comments | « packages/csslib/lib/src/css_printer.dart ('k') | packages/csslib/lib/src/property.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698