as(_:)

Attempts to upcast the current syntax node to Syntax node.

SyntaxProtocol.swift:99

This declaration is deprecated: Use `Syntax.init` for upcasting.

func `as`(_ syntaxType: Syntax.Type) -> Syntax?

Returns

The Syntax node created from the current syntax node, as the node can always be upcast to Syntax node.