langsrv

package
v0.24.4-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 3 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL