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;
|
if (unified == null) return null;
|
||||||
return [unified]..addAll(compound.skip(1));
|
return [unified]..addAll(compound.skip(1));
|
||||||
} else {
|
} else {
|
||||||
return [this]..addAll(compound);
|
return <SimpleSelector>[this]..addAll(compound);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -979,6 +979,6 @@ CompoundSelector _prependParent(CompoundSelector compound) {
|
|||||||
..addAll(compound.components.skip(1)));
|
..addAll(compound.components.skip(1)));
|
||||||
} else {
|
} else {
|
||||||
return new CompoundSelector(
|
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) {
|
} else if (condition is SupportsNegation) {
|
||||||
return "not ${_parenthesize(condition.condition)}";
|
return "not ${_parenthesize(condition.condition)}";
|
||||||
} else if (condition is SupportsInterpolation) {
|
} else if (condition is SupportsInterpolation) {
|
||||||
return condition.expression.accept(this);
|
return condition.expression.accept(this).toString();
|
||||||
} else if (condition is SupportsDeclaration) {
|
} else if (condition is SupportsDeclaration) {
|
||||||
return "(${condition.name.accept(this)}: ${condition.value.accept(this)})";
|
return "(${condition.name.accept(this)}: ${condition.value.accept(this)})";
|
||||||
} else {
|
} else {
|
||||||
|
@ -184,7 +184,7 @@ class _SerializeCssVisitor
|
|||||||
while (!scanner.isDone && scanner.readChar() != $lf) {}
|
while (!scanner.isDone && scanner.readChar() != $lf) {}
|
||||||
if (scanner.isDone) return null;
|
if (scanner.isDone) return null;
|
||||||
|
|
||||||
var min = null;
|
int min;
|
||||||
while (!scanner.isDone) {
|
while (!scanner.isDone) {
|
||||||
while (!scanner.isDone && scanner.scanChar($space)) {}
|
while (!scanner.isDone && scanner.scanChar($space)) {}
|
||||||
if (scanner.isDone || scanner.scanChar($lf)) continue;
|
if (scanner.isDone || scanner.scanChar($lf)) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user