MCPcopy Create free account
hub / github.com/angular/angular / copyFileShimData

Function copyFileShimData

packages/compiler-cli/src/ngtsc/shims/src/expando.ts:117–122  ·  view source on GitHub ↗
(from: ts.SourceFile, to: ts.SourceFile)

Source from the content-addressed store, hash-verified

115 * Copy any shim data from one `ts.SourceFile` to another.
116 */
117export function copyFileShimData(from: ts.SourceFile, to: ts.SourceFile): void {
118 if (!isFileShimSourceFile(from)) {
119 return;
120 }
121 sfExtensionData(to).fileShim = sfExtensionData(from).fileShim;
122}
123
124/**
125 * For those `ts.SourceFile`s in the `program` which have previously been tagged by a

Callers 1

getSourceFileMethod · 0.90

Calls 2

isFileShimSourceFileFunction · 0.85
sfExtensionDataFunction · 0.85

Tested by

no test coverage detected