SassCompilerFunction
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
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
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)
func hash(into: inout Hasher)
func accept<V, R>(visitor: V) -> R
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
var description: String