| 553 | * to framework to perform rendering. |
| 554 | */ |
| 555 | export class NoopNgZone implements NgZone { |
| 556 | readonly hasPendingMicrotasks = false; |
| 557 | readonly hasPendingMacrotasks = false; |
| 558 | readonly isStable = true; |
| 559 | readonly onUnstable = new EventEmitter<any>(); |
| 560 | readonly onMicrotaskEmpty = new EventEmitter<any>(); |
| 561 | readonly onStable = new EventEmitter<any>(); |
| 562 | readonly onError = new EventEmitter<any>(); |
| 563 | |
| 564 | run<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any): T { |
| 565 | return fn.apply(applyThis, applyArgs); |
| 566 | } |
| 567 | |
| 568 | runGuarded<T>(fn: (...args: any[]) => any, applyThis?: any, applyArgs?: any): T { |
| 569 | return fn.apply(applyThis, applyArgs); |
| 570 | } |
| 571 | |
| 572 | runOutsideAngular<T>(fn: (...args: any[]) => T): T { |
| 573 | return fn(); |
| 574 | } |
| 575 | |
| 576 | runTask<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any, name?: string): T { |
| 577 | return fn.apply(applyThis, applyArgs); |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | function shouldBeIgnoredByZone(applyArgs: unknown): boolean { |
| 582 | return hasApplyArgsData(applyArgs, '__ignore_ng_zone__'); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…