Documentation
¶
Index ¶
- type Diagnostic
- type Validator
- func (v *Validator) Check() (exitCode int, err error)
- func (v *Validator) CurrentModule() *Module
- func (v *Validator) Diagnostics() []*Diagnostic
- func (v *Validator) Fset() *token.FileSet
- func (v *Validator) Global() *Scope
- func (v *Validator) GooseRoot() string
- func (v *Validator) ImportStack() []*Module
- func (v *Validator) Modules() map[string]*Module
- func (v *Validator) Report(severity protocol.DiagnosticSeverity, node ast.Node, message string, ...)
- func (v *Validator) Stderr() io.Writer
- func (v *Validator) Stdin() io.Reader
- func (v *Validator) Stdout() io.Writer
- func (v *Validator) Throw(msg string, parts ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct {
Module *Module
Node ast.Node
Severity protocol.DiagnosticSeverity
Message string
}
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) CurrentModule ¶
func (v *Validator) CurrentModule() *Module
func (*Validator) Diagnostics ¶
func (v *Validator) Diagnostics() []*Diagnostic
func (*Validator) ImportStack ¶
func (v *Validator) ImportStack() []*Module
Click to show internal directories.
Click to hide internal directories.