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

Method wrapHost

packages/compiler-cli/src/ngtsc/tsc_plugin.ts:92–103  ·  view source on GitHub ↗
(
    host: ts.CompilerHost & Partial<UnifiedModulesHost>,
    inputFiles: readonly string[],
    options: ts.CompilerOptions,
  )

Source from the content-addressed store, hash-verified

90 }
91
92 wrapHost(
93 host: ts.CompilerHost & Partial<UnifiedModulesHost>,
94 inputFiles: readonly string[],
95 options: ts.CompilerOptions,
96 ): PluginCompilerHost {
97 // TODO(alxhub): Eventually the `wrapHost()` API will accept the old `ts.Program` (if one is
98 // available). When it does, its `ts.SourceFile`s need to be re-tagged to enable proper
99 // incremental compilation.
100 this.options = {...this.ngOptions, ...options} as NgCompilerOptions;
101 this.host = NgCompilerHost.wrap(host, inputFiles, this.options, /* oldProgram */ null);
102 return this.host;
103 }
104
105 setupCompilation(
106 program: ts.Program,

Callers

nothing calls this directly

Calls 1

wrapMethod · 0.65

Tested by

no test coverage detected