Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenModifier ¶
type TokenModifier string
var ( // Modifiers predefined in LSP spec TokenModifierDeclaration TokenModifier = "declaration" TokenModifierDefinition TokenModifier = "definition" TokenModifierReadonly TokenModifier = "readonly" TokenModifierStatic TokenModifier = "static" TokenModifierDeprecated TokenModifier = "deprecated" TokenModifierAbstract TokenModifier = "abstract" TokenModifierAsync TokenModifier = "async" TokenModifierModification TokenModifier = "modification" TokenModifierDocumentation TokenModifier = "documentation" TokenModifierDefaultLibrary TokenModifier = "defaultLibrary" )
type TokenModifiers ¶
type TokenModifiers []TokenModifier
func (TokenModifiers) AsStrings ¶
func (tm TokenModifiers) AsStrings() []string
func (TokenModifiers) BitMask ¶
func (tm TokenModifiers) BitMask(declaredModifiers TokenModifiers) int
type TokenType ¶
type TokenType string
const ( // Types predefined in LSP spec TokenTypeClass TokenType = "class" TokenTypeComment TokenType = "comment" TokenTypeEnum TokenType = "enum" TokenTypeEnumMember TokenType = "enumMember" TokenTypeEvent TokenType = "event" TokenTypeFunction TokenType = "function" TokenTypeInterface TokenType = "interface" TokenTypeKeyword TokenType = "keyword" TokenTypeMacro TokenType = "macro" TokenTypeMethod TokenType = "method" TokenTypeModifier TokenType = "modifier" TokenTypeNamespace TokenType = "namespace" TokenTypeNumber TokenType = "number" TokenTypeOperator TokenType = "operator" TokenTypeParameter TokenType = "parameter" TokenTypeProperty TokenType = "property" TokenTypeRegexp TokenType = "regexp" TokenTypeString TokenType = "string" TokenTypeStruct TokenType = "struct" TokenTypeType TokenType = "type" TokenTypeTypeParameter TokenType = "typeParameter" TokenTypeVariable TokenType = "variable" )
type TokenTypes ¶
type TokenTypes []TokenType
func (TokenTypes) AsStrings ¶
func (tt TokenTypes) AsStrings() []string
func (TokenTypes) Index ¶
func (tt TokenTypes) Index(tokenType TokenType) int
Click to show internal directories.
Click to hide internal directories.