SemanticToken

data class SemanticToken(val tokenId: Int, val role: SemanticRole, val relatedNodeKind: SyntaxKind)

Parser-derived semantic annotation for one significant token.

It can drive syntax highlighting without discarding the lossless lexical token stream.

Constructors

Link copied to clipboard
constructor(tokenId: Int, role: SemanticRole, relatedNodeKind: SyntaxKind)

Properties

Link copied to clipboard

syntax-node category responsible for the annotation

Link copied to clipboard

context-sensitive role at this occurrence

Link copied to clipboard

absolute annotated token ID