Documentation ¶
Index ¶
- Constants
- Variables
- type CChar
- type CFloat
- type CInt
- type CString
- type CUnit
- type Coder
- type ConstValue
- type DataOptionIdentifier
- type FullIdentifier
- type FullIdentifiers
- type Identifier
- type InfixIdentifier
- type Location
- func (loc Location) Bytecode() bytecode.Location
- func (loc Location) Contains(cursor Location) bool
- func (loc Location) CursorString() string
- func (loc Location) End() uint32
- func (loc Location) EqualsTo(other Location) bool
- func (loc Location) FileContent() []rune
- func (loc Location) FilePath() string
- func (loc Location) GetLineAndColumn() (startLine, startColumn, endLine, endColumn int)
- func (loc Location) IsEmpty() bool
- func (loc Location) Size() uint32
- func (loc Location) Start() uint32
- func (loc Location) Text() string
- func (loc Location) ToToken(type_ SemanticTokenType, modifiers ...SemanticTokenModifier) SemanticToken
- type PackageIdentifier
- type QualifiedIdentifier
- type SemanticToken
- type SemanticTokenModifier
- type SemanticTokenType
Constants ¶
View Source
const ( TokenModifierDeclaration SemanticTokenModifier = 0x01 TokenModifierDefinition = 0x02 TokenModifierReadonly = 0x04 TokenModifierStatic = 0x08 TokenModifierDeprecated = 0x10 TokenModifierAbstract = 0x20 TokenModifierAsync = 0x40 TokenModifierModification = 0x80 TokenModifierDocumentation = 0x100 TokenModifierDefaultLibrary = 0x200 )
Variables ¶
View Source
var SemanticTokenModifiersLegend = []string{
"declaration",
"definition",
"readonly",
"static",
"deprecated",
"abstract",
"async",
"modification",
"documentation",
"defaultLibrary",
}
View Source
var SemanticTokenTypesLegend = []string{
"namespace",
"type",
"class",
"enum",
"interface",
"struct",
"typeParameter",
"parameter",
"variable",
"property",
"enumMember",
"event",
"function",
"method",
"macro",
"keyword",
"modifier",
"comment",
"string",
"number",
"regexp",
"operator",
"decorator",
}
Functions ¶
This section is empty.
Types ¶
type CChar ¶
type CChar struct {
Value rune
}
func (CChar) AppendBytecode ¶
func (CChar) Code ¶
func (c CChar) Code(currentModule QualifiedIdentifier) string
func (CChar) EqualsTo ¶
func (c CChar) EqualsTo(o ConstValue) bool
type CFloat ¶
type CFloat struct {
Value float64
}
func (CFloat) AppendBytecode ¶
func (CFloat) Code ¶
func (c CFloat) Code(currentModule QualifiedIdentifier) string
func (CFloat) EqualsTo ¶
func (c CFloat) EqualsTo(o ConstValue) bool
type CInt ¶
type CInt struct {
Value int64
}
func (CInt) AppendBytecode ¶
func (CInt) Code ¶
func (c CInt) Code(currentModule QualifiedIdentifier) string
func (CInt) EqualsTo ¶
func (c CInt) EqualsTo(o ConstValue) bool
type CString ¶
type CString struct {
Value string
}
func (CString) AppendBytecode ¶
func (CString) Code ¶
func (c CString) Code(currentModule QualifiedIdentifier) string
func (CString) EqualsTo ¶
func (c CString) EqualsTo(o ConstValue) bool
type CUnit ¶
type CUnit struct { }
func (CUnit) AppendBytecode ¶
func (CUnit) Code ¶
func (c CUnit) Code(currentModule QualifiedIdentifier) string
func (CUnit) EqualsTo ¶
func (c CUnit) EqualsTo(o ConstValue) bool
type Coder ¶
type Coder interface {
Code(currentModule QualifiedIdentifier) string
}
type ConstValue ¶
type DataOptionIdentifier ¶
type DataOptionIdentifier string
type FullIdentifier ¶
type FullIdentifier string
func (FullIdentifier) Module ¶
func (f FullIdentifier) Module() QualifiedIdentifier
type FullIdentifiers ¶
type FullIdentifiers []FullIdentifier
func (FullIdentifiers) Join ¶
func (fx FullIdentifiers) Join(sep string) string
type Identifier ¶
type Identifier string
type InfixIdentifier ¶
type InfixIdentifier string
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
func NewLocation ¶
func NewLocationCursor ¶
func NewLocationSrc ¶
func (Location) CursorString ¶
func (Location) FileContent ¶
func (Location) GetLineAndColumn ¶
func (Location) ToToken ¶
func (loc Location) ToToken(type_ SemanticTokenType, modifiers ...SemanticTokenModifier) SemanticToken
type PackageIdentifier ¶
type PackageIdentifier string
type QualifiedIdentifier ¶
type QualifiedIdentifier string
type SemanticToken ¶
type SemanticToken struct {
Line, Char, Length uint32
Type SemanticTokenType
Modifiers SemanticTokenModifier
}
type SemanticTokenModifier ¶
type SemanticTokenModifier uint32
type SemanticTokenType ¶
type SemanticTokenType uint32
const ( TokenTypeNamespace SemanticTokenType = iota TokenTypeType TokenTypeClass TokenTypeEnum TokenTypeInterface TokenTypeStruct TokenTypeTypeParameter TokenTypeParameter TokenTypeVariable TokenTypeProperty TokenTypeEnumMember TokenTypeEvent TokenTypeFunction TokenTypeMethod TokenTypeMacro TokenTypeKeyword TokenTypeModifier TokenTypeComment TokenTypeString TokenTypeNumber TokenTypeRegexp TokenTypeOperator TokenTypeDecorator )
Click to show internal directories.
Click to hide internal directories.