SassCompilerFunction

Swift
public final class SassCompilerFunction: SassValue, Sendable

A Sass compiler function.

A compiler function is an opaque function defined by the Sass compiler that can be passed as an argument to or returned by a SassFunction.

Right now there is no way to explicitly request they be executed; all you can do with this type is validate that it appears when you expect it to and pass it back to the compiler when needed.


Topics

Properties

var id: Int

The function ID. Opaque to users, meaningful to Sass implementations.

Declaration
Swift
public let id: Int

Misc

static func ==(lhs: SassCompilerFunction, rhs: SassCompilerFunction) -> Bool

Compiler functions are equal if they have the same ID and apply to the same compilation. We only test the first part of that so watch out.

Declaration
Swift
public static func == (lhs: SassCompilerFunction, rhs: SassCompilerFunction)
    -> Bool

func hash(into: inout Hasher)

Hash the compiler function

Declaration
Swift
public override func hash(into hasher: inout Hasher)

func accept<V, R>(visitor: V) -> R

Take part in the SassValueVisitor protocol.

Declaration
Swift
public override func accept<V, R>(visitor: V) throws -> R
where V: SassValueVisitor, R == V.ReturnType

var description: String

A short description of the value.

Declaration
Swift
public override var description: String { get }