SassValueVisitor

Swift
public protocol SassValueVisitor

A protocol for implementing polymorphic operations over SassValue objects.


Topics

associatedtype ReturnType

The return type of the operation.

Declaration
Swift
associatedtype ReturnType

func visit(string: SassString) -> ReturnType

The operation for SassString.

Declaration
Swift
func visit(string: SassString) throws -> ReturnType

func visit(number: SassNumber) -> ReturnType

The operation for SassNumber.

Declaration
Swift
func visit(number: SassNumber) throws -> ReturnType

func visit(color: SassColor) -> ReturnType

The operation for SassColor.

Declaration
Swift
func visit(color: SassColor) throws -> ReturnType

func visit(list: SassList) -> ReturnType

The operation for SassList.

Declaration
Swift
func visit(list: SassList) throws -> ReturnType

func visit(map: SassMap) -> ReturnType

The operation for SassMap.

Declaration
Swift
func visit(map: SassMap) throws -> ReturnType

func visit(bool: SassBool) -> ReturnType

The operation for SassBool.

Declaration
Swift
func visit(bool: SassBool) throws -> ReturnType

func visit(null: SassNull) -> ReturnType

The operation for SassNull.

Declaration
Swift
func visit(null: SassNull) throws -> ReturnType

func visit(compilerFunction: SassCompilerFunction) -> ReturnType

The operation for SassCompilerFunction.

Declaration
Swift
func visit(compilerFunction: SassCompilerFunction) throws -> ReturnType

func visit(dynamicFunction: SassDynamicFunction) -> ReturnType

The operation for SassDynamicFunction.

Declaration
Swift
func visit(dynamicFunction: SassDynamicFunction) throws -> ReturnType

func visit(argumentList: SassArgumentList) -> ReturnType

The operation for SassArgumentList.

Declaration
Swift
func visit(argumentList: SassArgumentList) throws -> ReturnType

func visit(calculation: SassCalculation) -> ReturnType

The operation for SassCalculation.

Declaration
Swift
func visit(calculation: SassCalculation) throws -> ReturnType

func visit(mixin: SassMixin) -> ReturnType

The operation for SassMixin.

Declaration
Swift
func visit(mixin: SassMixin) throws -> ReturnType