Documentation
¶
Overview ¶
Package quickfix carries the source edits that resolve a diagnostic, attached by the layer that reported it and rendered by an editor as a quick fix.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edit ¶
type Edit struct {
Span source.Span
NewText string
// OwnLine makes the edit a whole line inserted before Span.Offset, indented
// like the line that offset sits on (see Render).
OwnLine bool
}
Edit replaces the text a span covers. A zero-length span is an insertion at its offset.
func InsertLine ¶
InsertLine returns an insertion of text as its own line before offset.
Click to show internal directories.
Click to hide internal directories.