mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
36 lines
567 B
Go
36 lines
567 B
Go
package ast
|
|
|
|
import "config-lsp/common"
|
|
|
|
|
|
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 *SSHOption
|
|
Block *SSHBlock
|
|
}
|
|
|
|
type SSHIndexes struct {
|
|
Includes []*SSHIndexIncludeLine
|
|
}
|
|
|
|
func NewSSHIndexes() *SSHIndexes {
|
|
return &SSHIndexes{
|
|
Includes: make([]*SSHIndexIncludeLine, 0),
|
|
}
|
|
}
|
|
|