4 "github.com/hashicorp/hcl2/hcl"
7 type Diagnostic interface {
9 Description() Description
12 // FromExpr returns the expression-related context for the diagnostic, if
13 // available. Returns nil if the diagnostic is not related to an
14 // expression evaluation.
20 //go:generate stringer -type=Severity
24 Warning Severity = 'W'
27 type Description struct {
37 type FromExpr struct {
38 Expression hcl.Expression
39 EvalContext *hcl.EvalContext