Instance Methodswift-syntax 600.0.1SwiftSyntax
cast(_:)
Force-casts the current SyntaxChildChoices
instance to a given specialized syntax type.
This declaration is deprecated: This cast will always fail
func cast<S>(_ syntaxType: S.Type) -> S where S : SyntaxProtocol
Returns
An instance of the specialized syntax type.