gotools/gopls/internal/protocol/semtok/semtok.go

type Token

type TokenType

const TokComment

const TokFunction

const TokKeyword

const TokLabel

const TokMacro

const TokMethod

const TokNamespace

const TokNumber

const TokOperator

const TokParameter

const TokString

const TokType

const TokTypeParam

const TokVariable

type Modifier

const ModDefaultLibrary

const ModDefinition

const ModReadonly

const ModArray

const ModBool

const ModChan

const ModInterface

const ModMap

const ModNumber

const ModPointer

const ModSignature

const ModSlice

const ModString

const ModStruct

// Encode returns the LSP encoding of a sequence of tokens.
// The noStrings, noNumbers options cause strings, numbers to be skipped.
// The lists of types and modifiers determines the bitfield encoding.
func Encode(
	tokens []Token,
	noStrings, noNumbers bool,
	types, modifiers []string) []uint32 {}