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

Function isShim

packages/compiler-cli/src/ngtsc/shims/src/expando.ts:110–112  ·  view source on GitHub ↗
(sf: ts.SourceFile)

Source from the content-addressed store, hash-verified

108 * Check whether `sf` is a shim `ts.SourceFile` (either a per-file shim or a top-level shim).
109 */
110export function isShim(sf: ts.SourceFile): boolean {
111 return isExtended(sf) && (sf[NgExtension].fileShim !== null || sf[NgExtension].isTopLevelShim);
112}
113
114/**
115 * Copy any shim data from one `ts.SourceFile` to another.

Callers 8

isShimMethod · 0.90
maybeGenerateMethod · 0.90
tagMethod · 0.90
isShimMethod · 0.90
executeAnalysisPhaseFunction · 0.85

Calls 1

isExtendedFunction · 0.85

Tested by

no test coverage detected