Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct {
OriginalSrc string // Complete original src
Range Range
RangedSrc string // Src for just the Range
LineSrc string // Src for the line at the start of Range
Severity Severity
Message string
Code *rl.Error
}
func NewDiagnosticError ¶
func NewDiagnosticFromNode ¶
type RadChecker ¶
type RadChecker interface {
UpdateSrc(src string)
CheckDefault() (Result, error)
Check(Opts) (Result, error)
}
func NewChecker ¶
func NewChecker() (RadChecker, error)
func NewCheckerWithTree ¶
type RadCheckerImpl ¶
type RadCheckerImpl struct {
// contains filtered or unexported fields
}
func (*RadCheckerImpl) Check ¶
func (c *RadCheckerImpl) Check(opts Opts) (Result, error)
todo use opts
func (*RadCheckerImpl) CheckDefault ¶
func (c *RadCheckerImpl) CheckDefault() (Result, error)
func (*RadCheckerImpl) UpdateSrc ¶
func (c *RadCheckerImpl) UpdateSrc(src string)
type Result ¶
type Result struct {
// todo Rad versions
Diagnostics []Diagnostic
}
Click to show internal directories.
Click to hide internal directories.