is(_:)

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

SyntaxProtocol.swift:59
func `is`<S>(_ syntaxType: S.Type) -> Bool where S : SyntaxProtocol

Returns

true if the node can be cast, false otherwise.