MCPcopy
hub / github.com/microsoft/pyright / NullConsole

Class NullConsole

server/src/common/console.ts:19–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17// the number of logs and errors, which can be useful
18// for unit tests.
19export class NullConsole implements ConsoleInterface {
20 logCount = 0;
21 errorCount = 0;
22
23 log(message: string) {
24 this.logCount++;
25 }
26
27 error(message: string) {
28 this.errorCount++;
29 }
30}
31
32export class StandardConsole implements ConsoleInterface {
33 log(message: string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…