type Token … type TokenType … const TokNamespace … const TokType … const TokInterface … const TokTypeParam … const TokParameter … const TokVariable … const TokMethod … const TokFunction … const TokKeyword … const TokComment … const TokString … const TokNumber … const TokOperator … const TokMacro … const TokLabel … // 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 { … }