is(_:)

Checks if the current SyntaxChildChoices instance can be cast to a given specialized syntax type.

SyntaxProtocol.swift:734

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.