(sf: ts.SourceFile)
| 56 | * Narrows a `ts.SourceFile` if it has an `NgExtension` property. |
| 57 | */ |
| 58 | export 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. |
no outgoing calls
no test coverage detected