as(_:)

Attempts to cast the current SyntaxChildChoices instance to a given specialized syntax type.

SyntaxProtocol.swift:744

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.