as(_:)

Casts the current syntax node to its own type.

SyntaxProtocol.swift:110

This declaration is deprecated: This cast will always succeed

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

Returns

The current syntax node.