Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrCollector ¶
type ErrCollector struct {
Errs []errors.StaticError
}
ErrCollector is a struct for accumulating warnings / errors from the linter. It is slightly more convenient and more clear than passing pointers to slices around.
func (*ErrCollector) Collect ¶
func (ec *ErrCollector) Collect(err errors.StaticError)
Collect adds an error to the list
func (*ErrCollector) StaticErr ¶
func (ec *ErrCollector) StaticErr(msg string, loc *ast.LocationRange)
StaticErr constructs a static error from msg and loc and adds it to the list.
Click to show internal directories.
Click to hide internal directories.