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

Function getCurrentDirectiveDef

packages/core/src/render3/state.ts:524–527  ·  view source on GitHub ↗
(tData: TData)

Source from the content-addressed store, hash-verified

522 * @param tData Current `TData` where the `DirectiveDef` will be looked up at.
523 */
524export function getCurrentDirectiveDef(tData: TData): DirectiveDef<any> | null {
525 const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;
526 return currentDirectiveIndex === -1 ? null : (tData[currentDirectiveIndex] as DirectiveDef<any>);
527}
528
529export function getCurrentQueryIndex(): number {
530 return instructionState.lFrame.currentQueryIndex;

Callers 3

wrapInStaticStylingKeyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…