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