Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsedToken ¶
type ParsedToken struct {
Line int `json:"line"`
Column int `json:"column"`
Length int `json:"length"`
TokenType SemanticTokenType `json:"tokenType"`
}
type SemanticTokenProvider ¶
type SemanticTokenProvider interface {
GetSemanticTokens(content []byte) ([]ParsedToken, error)
}
func NewSemanticTokenProvider ¶
func NewSemanticTokenProvider() SemanticTokenProvider
type SemanticTokenType ¶
type SemanticTokenType string
const ( STTKeyword SemanticTokenType = "keyword" STTVariable SemanticTokenType = "variable" STTProperty SemanticTokenType = "property" STTType SemanticTokenType = "type" STTDecorator SemanticTokenType = "decorator" STTMethod SemanticTokenType = "method" STTString SemanticTokenType = "string" STTNumber SemanticTokenType = "number" STTOperator SemanticTokenType = "operator" )
Click to show internal directories.
Click to hide internal directories.