MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / warn

Method warn

src/debug/logging.ts:18–20  ·  view source on GitHub ↗
(errorOrMessage: any, category?: LogCategory)

Source from the content-addressed store, hash-verified

16 this.log(message, LogSeverity.Info, category);
17 }
18 public warn(errorOrMessage: any, category?: LogCategory): void {
19 this.log(errorString(errorOrMessage), LogSeverity.Warn, category);
20 }
21 public error(errorOrMessage: any, category?: LogCategory): void {
22 this.log(errorString(errorOrMessage), LogSeverity.Error, category);
23 }

Callers

nothing calls this directly

Calls 2

logMethod · 0.95
errorStringFunction · 0.90

Tested by

no test coverage detected