diagnostic

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitOK    = 0
	ExitError = 1
	ExitUsage = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	File     string
	Line     int
	Col      int
	Message  string
	Hint     string
	Severity Severity
}

func (Diagnostic) String

func (d Diagnostic) String() string

type List

type List []Diagnostic

func (*List) Add

func (l *List) Add(d Diagnostic)

func (*List) AddError

func (l *List) AddError(file string, line, col int, message, hint string)

func (*List) AddWarning

func (l *List) AddWarning(file string, line, col int, message, hint string)

func (List) HasErrors

func (l List) HasErrors() bool

type Severity

type Severity int
const (
	Error   Severity = iota
	Warning Severity = iota
	Info    Severity = iota
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL