mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Fix new analysis issues.
This commit is contained in:
parent
03ca2bba08
commit
ea4a171198
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user