3 // diagnosticBase can be embedded in other diagnostic structs to get
4 // default implementations of Severity and Description. This type also
5 // has default implementations of Source and FromExpr that return no source
6 // location or expression-related information, so embedders should generally
7 // override those method to return more useful results where possible.
8 type diagnosticBase struct {
14 func (d diagnosticBase) Severity() Severity {
18 func (d diagnosticBase) Description() Description {
25 func (d diagnosticBase) Source() Source {
29 func (d diagnosticBase) FromExpr() *FromExpr {