mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-19 07:25:27 +02:00
61 lines
1020 B
Go
61 lines
1020 B
Go
package ast
|
|
|
|
import (
|
|
"config-lsp/common"
|
|
docvalues "config-lsp/doc-values"
|
|
|
|
protocol "github.com/tliron/glsp/protocol_3_16"
|
|
)
|
|
|
|
type AliasValueInterface interface {
|
|
GetAliasValue() AliasValue
|
|
FetchCompletions(line string, cursor uint32) []protocol.CompletionItem
|
|
CheckIsValid() []*docvalues.InvalidValue
|
|
}
|
|
|
|
func (a AliasValue) GetAliasValue() AliasValue {
|
|
return a
|
|
}
|
|
|
|
func (a AliasValue) FetchCompletions(line string, cursor uint32) []protocol.CompletionItem {
|
|
return nil
|
|
}
|
|
func (a AliasValue) CheckIsValid() []*docvalues.InvalidValue {
|
|
return nil
|
|
}
|
|
|
|
type AliasValue struct {
|
|
Location common.LocationRange
|
|
Value string
|
|
}
|
|
|
|
type AliasValueUser struct {
|
|
AliasValue
|
|
}
|
|
|
|
type path string
|
|
|
|
type AliasValueFile struct {
|
|
AliasValue
|
|
Path path
|
|
}
|
|
|
|
type AliasValueCommand struct {
|
|
AliasValue
|
|
Command string
|
|
}
|
|
|
|
type AliasValueIncludePath struct {
|
|
Location common.LocationRange
|
|
Path path
|
|
}
|
|
|
|
type AliasValueInclude struct {
|
|
AliasValue
|
|
Path AliasValueIncludePath
|
|
}
|
|
|
|
type AliasValueEmail struct {
|
|
AliasValue
|
|
}
|