mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-03 10:08:01 +01:00
Fix broken type annotations.
This commit is contained in:
parent
98f063f59d
commit
5b4348f8bf
@ -418,14 +418,14 @@ class SassNumber extends Value {
|
|||||||
throw new SassScriptException('Undefined operation "$this <= $other".');
|
throw new SassScriptException('Undefined operation "$this <= $other".');
|
||||||
}
|
}
|
||||||
|
|
||||||
SassNumber modulo(Value other) {
|
Value modulo(Value other) {
|
||||||
if (other is SassNumber) {
|
if (other is SassNumber) {
|
||||||
return _coerceNumber(other, (num1, num2) => num1 % num2);
|
return _coerceNumber(other, (num1, num2) => num1 % num2);
|
||||||
}
|
}
|
||||||
throw new SassScriptException('Undefined operation "$this % $other".');
|
throw new SassScriptException('Undefined operation "$this % $other".');
|
||||||
}
|
}
|
||||||
|
|
||||||
SassNumber plus(Value other) {
|
Value plus(Value other) {
|
||||||
if (other is SassNumber) {
|
if (other is SassNumber) {
|
||||||
return _coerceNumber(other, (num1, num2) => num1 + num2);
|
return _coerceNumber(other, (num1, num2) => num1 + num2);
|
||||||
}
|
}
|
||||||
@ -433,7 +433,7 @@ class SassNumber extends Value {
|
|||||||
throw new SassScriptException('Undefined operation "$this + $other".');
|
throw new SassScriptException('Undefined operation "$this + $other".');
|
||||||
}
|
}
|
||||||
|
|
||||||
SassNumber minus(Value other) {
|
Value minus(Value other) {
|
||||||
if (other is SassNumber) {
|
if (other is SassNumber) {
|
||||||
return _coerceNumber(other, (num1, num2) => num1 - num2);
|
return _coerceNumber(other, (num1, num2) => num1 - num2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user