MCPcopy
hub / github.com/opensumi/core / toString

Function toString

packages/core-common/src/problem-pattern.ts:363–376  ·  view source on GitHub ↗
(severity: Severity | undefined)

Source from the content-addressed store, hash-verified

361 }
362
363 export function toString(severity: Severity | undefined): string {
364 switch (severity) {
365 case Severity.Error:
366 return error;
367 case Severity.Warning:
368 return warning;
369 case Severity.Info:
370 return info;
371 case Severity.Log:
372 return log;
373 default:
374 return ignore;
375 }
376 }
377
378 export function toArray(): string[] {
379 return [ignore, error, warning, info, log];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected