Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFilesystem ¶
func NewFilesystem() *fsystem
Types ¶
type FileNotOpenErr ¶
type FileNotOpenErr struct {
URI URI
}
func (*FileNotOpenErr) Error ¶
func (e *FileNotOpenErr) Error() string
type Filesystem ¶
type Filesystem interface {
Open(lsp.TextDocumentItem) error
Change(lsp.VersionedTextDocumentIdentifier, []lsp.TextDocumentContentChangeEvent) error
Close(lsp.TextDocumentIdentifier) error
URI(lsp.DocumentURI) URI
HclBlockAtDocPosition(lsp.TextDocumentPositionParams) (*hcl.Block, hcl.Pos, error)
}
type InvalidHclPosErr ¶
type InvalidHclPosErr struct {
Pos hcl.Pos
InRange hcl.Range
}
func (*InvalidHclPosErr) Error ¶
func (e *InvalidHclPosErr) Error() string
type InvalidLspPosErr ¶
type InvalidLspPosErr struct {
Pos lsp.Position
}
func (*InvalidLspPosErr) Error ¶
func (e *InvalidLspPosErr) Error() string
type InvalidURIErr ¶
type InvalidURIErr struct {
URI URI
}
func (*InvalidURIErr) Error ¶
func (e *InvalidURIErr) Error() string
type NoBlockFoundErr ¶
type NoBlockFoundErr struct {
AtPos hcl.Pos
}
func (*NoBlockFoundErr) Error ¶
func (e *NoBlockFoundErr) Error() string
type URI ¶
type URI string
func (URI) LSPDocumentURI ¶
func (u URI) LSPDocumentURI() lsp.DocumentURI
Click to show internal directories.
Click to hide internal directories.