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

Function makeWrapHost

packages/compiler-cli/test/ngtsc/env.ts:484–496  ·  view source on GitHub ↗
(wrapped: AugmentedCompilerHost)

Source from the content-addressed store, hash-verified

482}
483
484function makeWrapHost(wrapped: AugmentedCompilerHost): (host: ts.CompilerHost) => ts.CompilerHost {
485 return (delegate) => {
486 wrapped.delegate = delegate;
487 return new Proxy(delegate, {
488 get: (target: ts.CompilerHost, name: string): any => {
489 if ((wrapped as any)[name] !== undefined) {
490 return (wrapped as any)[name]!.bind(wrapped);
491 }
492 return (target as any)[name];
493 },
494 });
495 };
496}

Callers 4

setupMethod · 0.85
enablePreloadingMethod · 0.85
tsconfigMethod · 0.85

Calls 1

bindMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…