cast(_:)

Force-casts the current syntax node to its own type.

SyntaxProtocol.swift:140

This declaration is deprecated: This cast will always succeed

func cast(_ syntaxType: Self.Type) -> Self

Returns

The current syntax node.