Instance Methodswift-syntax 600.0.1SwiftSyntax
is(_:)
Checks if the current SyntaxChildChoices
instance can be cast to a given specialized syntax type.
This declaration is deprecated: This cast will always fail
func `is`<S>(_ syntaxType: S.Type) -> Bool where S : SyntaxProtocol
Returns
true
if the node can be cast, false
otherwise.