ReplaceExpressionVisitor mixin Visitor

A visitor that recursively traverses each expression in a SassScript AST and replaces its contents with the values returned by nested recursion.

In addition to the methods from ExpressionVisitor, this has more general protected methods that can be overridden to add behavior for a wide variety of AST nodes:

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
visitArgumentInvocation(ArgumentInvocation invocation) ArgumentInvocation
Replaces each expression in an invocation.
visitBinaryOperationExpression(BinaryOperationExpression node) Expression
override
visitBooleanExpression(BooleanExpression node) Expression
override
visitColorExpression(ColorExpression node) Expression
override
visitFunctionExpression(FunctionExpression node) Expression
override
visitIfExpression(IfExpression node) Expression
override
visitInterpolatedFunctionExpression(InterpolatedFunctionExpression node) Expression
override
visitInterpolation(Interpolation interpolation) Interpolation
Replaces each expression in an interpolation.
visitListExpression(ListExpression node) Expression
override
visitMapExpression(MapExpression node) Expression
override
visitNullExpression(NullExpression node) Expression
override
visitNumberExpression(NumberExpression node) Expression
override
visitParenthesizedExpression(ParenthesizedExpression node) Expression
override
visitSelectorExpression(SelectorExpression node) Expression
override
visitStringExpression(StringExpression node) Expression
override
visitSupportsCondition(SupportsCondition condition) SupportsCondition
Replaces each expression in condition.
visitSupportsExpression(SupportsExpression node) Expression
override
visitUnaryOperationExpression(UnaryOperationExpression node) Expression
override
visitValueExpression(ValueExpression node) Expression
override
visitVariableExpression(VariableExpression node) Expression
override

Operators

operator ==(Object other) bool
The equality operator.
inherited