syntaxNodeType

The dynamic metatype of the concrete node.

SyntaxProtocol.swift:184
var syntaxNodeType: SyntaxProtocol.Type { get }

You almost always want to prefer this over type(of: self) because if self is a DeclSyntax representing a FunctionDeclSyntax, type(of: self) will return DeclSyntax, while syntaxNodeType looks at the dynamic kind of this node and returns FunctionDeclSyntax.