Token
A syntactic token.
Tokens describe how a span of source text should be presented (for syntax
highlighting, say), which is a different question from what it is --
Node answers that. A token that names a declaration
reports it as an opaque NodeId in node, resolvable
with Unit.node.
Example
Fields
context @ (:CALL: | nil)[get]The syntactic context the token appears in:
:CALL:for a callee position, ornil.kind @ TokenKind[get]The token kind.
node @ (NodeId | nil)[get]The ID of the declaration this token names, or
nilwhen it names none.span @ Span[get]The span of source text the token covers.