cast(_:)

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

SyntaxProtocol.swift:756

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.