Fix new analysis issues.

This commit is contained in:
Natalie Weizenbaum 2016-09-30 16:41:22 -07:00
parent 03ca2bba08
commit ea4a171198
4 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ class TypeSelector extends SimpleSelector {
if (unified == null) return null;
return [unified]..addAll(compound.skip(1));
} else {
return [this]..addAll(compound);
return <SimpleSelector>[this]..addAll(compound);
}
}

View File

@ -979,6 +979,6 @@ CompoundSelector _prependParent(CompoundSelector compound) {
..addAll(compound.components.skip(1)));
} else {
return new CompoundSelector(
[new ParentSelector()]..addAll(compound.components));
<SimpleSelector>[new ParentSelector()]..addAll(compound.components));
}
}

View File

@ -545,7 +545,7 @@ class PerformVisitor implements StatementVisitor, ExpressionVisitor<Value> {
} else if (condition is SupportsNegation) {
return "not ${_parenthesize(condition.condition)}";
} else if (condition is SupportsInterpolation) {
return condition.expression.accept(this);
return condition.expression.accept(this).toString();
} else if (condition is SupportsDeclaration) {
return "(${condition.name.accept(this)}: ${condition.value.accept(this)})";
} else {

View File

@ -184,7 +184,7 @@ class _SerializeCssVisitor
while (!scanner.isDone && scanner.readChar() != $lf) {}
if (scanner.isDone) return null;
var min = null;
int min;
while (!scanner.isDone) {
while (!scanner.isDone && scanner.scanChar($space)) {}
if (scanner.isDone || scanner.scanChar($lf)) continue;