assertCalculation method
Throws a SassScriptException if this isn't a calculation.
If this came from a function argument, name is the argument name
(without the $). It's used for error reporting.
Implementation
SassCalculation assertCalculation([String? name]) =>
throw SassScriptException("$this is not a calculation.", name);