Documentation ¶
Index ¶
Constants ¶
View Source
const ( DiagnosticError DiagnosticKind = "error" DiagnosticInfo = "info" DiagnosticWarning = "warning" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct { TextRange TextRange `json:"textRange"` Message string `json:"message"` Kind DiagnosticKind `json:"kind"` }
type DiagnosticKind ¶
type DiagnosticKind string
type Output ¶
func NewSerializingOutput ¶
func NewSerializingOutput(format SerializationFormat, report Report) Output
type PositionRange ¶
type Report ¶
type Report struct { Success bool `json:"success"` Time Time `json:"time"` Diagnostics []Diagnostic `json:"diagnostics"` }
type SerializationFormat ¶
type SerializationFormat struct {
// contains filtered or unexported fields
}
func NewJsonSerializationFormat ¶
func NewJsonSerializationFormat() SerializationFormat
func NewPrettyJsonSerializationFormat ¶
func NewPrettyJsonSerializationFormat() SerializationFormat
func NewPrettyXmlSerializationFormat ¶
func NewPrettyXmlSerializationFormat() SerializationFormat
func NewXmlSerializationFormat ¶
func NewXmlSerializationFormat() SerializationFormat
type TextRange ¶
type TextRange struct { Text string `json:"text"` Range PositionRange `json:"range"` File string `json:"file"` }
Click to show internal directories.
Click to hide internal directories.