MCPcopy Index your code
hub / github.com/angular/angular / add

Method add

packages/localize/tools/src/diagnostics.ts:25–29  ·  view source on GitHub ↗
(type: DiagnosticHandlingStrategy, message: string)

Source from the content-addressed store, hash-verified

23 return this.messages.some((m) => m.type === 'error');
24 }
25 add(type: DiagnosticHandlingStrategy, message: string) {
26 if (type !== 'ignore') {
27 this.messages.push({type, message});
28 }
29 }
30 warn(message: string) {
31 this.messages.push({type: 'warning', message});
32 }

Callers 1

checkDuplicateMessagesFunction · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected