MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / String

Method String

etscore/severity.go:42–59  ·  view source on GitHub ↗

String returns the string representation of a Severity.

()

Source from the content-addressed store, hash-verified

40
41// String returns the string representation of a Severity.
42func (s Severity) String() string {
43 switch s {
44 case SeverityOff:
45 return "off"
46 case SeverityWarning:
47 return "warning"
48 case SeverityError:
49 return "error"
50 case SeveritySuggestion:
51 return "suggestion"
52 case SeverityMessage:
53 return "message"
54 case SeveritySkipFile:
55 return "skip-file"
56 default:
57 return "unknown"
58 }
59}
60
61// IsOff returns true if the severity disables the diagnostic.
62func (s Severity) IsOff() bool {

Callers 6

MarshalJSONMethod · 0.95
formatLayerHoverFunction · 0.45
formatEffectTypeParamsFunction · 0.45
diagnosticSeveritySchemaFunction · 0.45
severitySchemaFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 2

diagnosticSeveritySchemaFunction · 0.36
severitySchemaFunction · 0.36