Documentation ¶
Index ¶
- Constants
- type CompletionItem
- type CompletionKind
- type Document
- type File
- type LookUpResult
- type Project
- func (p *Project) DeleteFile(path string)
- func (p *Project) GetErrors(path string) map[string]ast.Errors
- func (p *Project) GetFile(path string) (string, bool)
- func (p *Project) GetModule(path string) *ast.Module
- func (p *Project) GetRawText(path string) (string, error)
- func (p *Project) ListCompletionItems(location *ast.Location) ([]CompletionItem, error)
- func (p *Project) LookupDefinition(location *ast.Location) ([]*ast.Location, error)
- func (p *Project) LookupReferences(loc *ast.Location) ([]*ast.Location, error)
- func (p *Project) SearchTargetTerm(location *ast.Location) (term *ast.Term, err error)
- func (p *Project) TermDocument(loc *ast.Location) ([]Document, error)
- func (p *Project) UpdateFile(path string, text string, version int) error
- type TextEdit
Constants ¶
View Source
const (
BuiltinDetail = `built-in function
See https://www.openpolicyagent.org/docs/latest/policy-reference/#built-in-functions`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompletionItem ¶
type CompletionItem struct { Label string Kind CompletionKind Detail string TextEdit *TextEdit AdditionalTextEdits []TextEdit }
type CompletionKind ¶
type CompletionKind int
const ( Unknown CompletionKind = iota VariableItem PackageItem FunctionItem BuiltinFunctionItem ImportItem )
type LookUpResult ¶
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func NewProject ¶
func (*Project) DeleteFile ¶
func (*Project) ListCompletionItems ¶
func (p *Project) ListCompletionItems(location *ast.Location) ([]CompletionItem, error)
func (*Project) LookupDefinition ¶
func (*Project) LookupReferences ¶
func (*Project) SearchTargetTerm ¶
func (*Project) TermDocument ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.