Documentation ¶
Overview ¶
Package diagnostic represents diagnostic information about a Dogma application's source code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct { Severity Severity Begin, End token.Position Message string Suggestion *Change }
Diagnostic represents a diagnostic message.
func (*Diagnostic) SuggestChange ¶
func (d *Diagnostic) SuggestChange(message string, edits ...Edit) *Diagnostic
SuggestChange adds a set of edits that the user may perform to resolve this diagnostic.
type Severity ¶
type Severity int
Severity is an enumeration describing the severity of a diagnostic.
const ( // Error indicates that the diagnostic describes usage of Dogma that will // not function correctly. Error Severity = iota // Warning indicates that the diagnostic describes usage of Dogma that is // not recommended. Warning // Improvement indicates that the describes usage of Dogma that may be // improved, but is not problematic. Improvement )
Click to show internal directories.
Click to hide internal directories.