(type: DiagnosticHandlingStrategy, message: string)
| 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 | } |
no test coverage detected