Instance Methodswift-syntax 600.0.1SwiftSyntax
as(_:)
Attempts to cast the current SyntaxChildChoices
instance to a given specialized syntax type.
This declaration is deprecated: This cast will always fail
func `as`<S>(_ syntaxType: S.Type) -> S? where S : SyntaxProtocol
Returns
An instance of the specialized syntax type, or nil
if the cast fails.