mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
37 lines
621 B
Go
37 lines
621 B
Go
package indexes
|
|
|
|
import (
|
|
"config-lsp/common"
|
|
"config-lsp/handlers/ssh_config/ast"
|
|
)
|
|
|
|
|
|
type ValidPath string
|
|
|
|
func (v ValidPath) AsURI() string {
|
|
return "file://" + string(v)
|
|
}
|
|
|
|
type SSHIndexIncludeValue struct {
|
|
common.LocationRange
|
|
Value string
|
|
|
|
// Actual valid paths, these will be set by the analyzer
|
|
Paths []ValidPath
|
|
}
|
|
|
|
type SSHIndexIncludeLine struct {
|
|
Values []*SSHIndexIncludeValue
|
|
Option *ast.SSHOption
|
|
Block ast.SSHBlock
|
|
}
|
|
|
|
type SSHIndexes struct {
|
|
AllOptionsPerName map[string](map[ast.SSHBlock]([]*ast.SSHOption))
|
|
|
|
Includes []*SSHIndexIncludeLine
|
|
|
|
BlockRanges map[uint32]ast.SSHBlock
|
|
}
|
|
|