(severity hcl.DiagnosticSeverity)
| 92 | } |
| 93 | |
| 94 | func severityString(severity hcl.DiagnosticSeverity) string { |
| 95 | switch severity { |
| 96 | case hcl.DiagError: |
| 97 | return "error" |
| 98 | case hcl.DiagWarning: |
| 99 | return "warning" |
| 100 | default: |
| 101 | return "unsupported-severity" |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | func rangeString(rng hcl.Range) string { |
| 106 | return fmt.Sprintf( |