2024-09-22 17:56:48 +02:00

35 lines
585 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
}