visitSupportsCondition method
Replaces each expression in condition
.
The default implementation of the visit methods call this to visit any SupportsCondition they encounter.
Implementation
@protected
SupportsCondition visitSupportsCondition(SupportsCondition condition) {
if (condition is SupportsOperation) {
return SupportsOperation(
visitSupportsCondition(condition.left),
visitSupportsCondition(condition.right),
condition.operator,
condition.span);
} else if (condition is SupportsNegation) {
return SupportsNegation(
visitSupportsCondition(condition.condition), condition.span);
} else if (condition is SupportsInterpolation) {
return SupportsInterpolation(
condition.expression.accept(this), condition.span);
} else if (condition is SupportsDeclaration) {
return SupportsDeclaration(condition.name.accept(this),
condition.value.accept(this), condition.span);
} else {
throw SassException(
"BUG: Unknown SupportsCondition $condition.", condition.span);
}
}