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

Function isExtended

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

Source from the content-addressed store, hash-verified

56 * Narrows a `ts.SourceFile` if it has an `NgExtension` property.
57 */
58export function isExtended(sf: ts.SourceFile): sf is NgExtendedSourceFile {
59 return (sf as MaybeNgExtendedSourceFile)[NgExtension] !== undefined;
60}
61
62/**
63 * Returns the `NgExtensionData` for a given `ts.SourceFile`, adding it if none exists.

Callers 4

isFileShimSourceFileFunction · 0.85
isShimFunction · 0.85
untagTsFileFunction · 0.85
retagTsFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected