operate static method
Creates and simplifies a CalculationOperation with the given operator
,
left
, and right
.
This automatically simplifies the operation, so it may return a SassNumber rather than a CalculationOperation.
Each of left
and right
must be either a SassNumber, a
SassCalculation, an unquoted SassString, or a CalculationOperation.
Implementation
static Object operate(
CalculationOperator operator, Object left, Object right) =>
operateInternal(operator, left, right,
inLegacySassFunction: false, simplify: true);