cast(_:)

Force-casts the current syntax node to a given specialized syntax type.

SyntaxProtocol.swift:118
func cast<S>(_ syntaxType: S.Type) -> S where S : SyntaxProtocol

Returns

An instance of the specialized type.