z_mirror/luapls

git clone https://git.raiguard.me/z_mirror/luapls

Caleb HeuerRename ast.Error to ast.Diagnostic442023c

main
322 B18 linesraw
1package ast
2
3import (
4	"fmt"
5
6	"github.com/raiguard/luapls/lua/token"
7	protocol "github.com/tliron/glsp/protocol_3_16"
8)
9
10type Diagnostic struct {
11	Message  string
12	Range    token.Range
13	Severity protocol.DiagnosticSeverity
14}
15
16func (pe *Diagnostic) String() string {
17	return fmt.Sprintf("%s: %s", &pe.Range, pe.Message)
18}