is(_:)

Checks if the current syntax node can be upcast to its base node type (TypeSyntax).

SyntaxBaseNodes.swift:1281

This declaration is deprecated: This cast will always succeed

func `is`(_ syntaxType: TypeSyntax.Type) -> Bool

Returns

true since the node can always be upcast to its base node.