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

Function parseDeferredTime

packages/compiler/src/render3/r3_deferred_triggers.ts:739–748  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

737 * milliseconds. Returns null if it cannot be parsed.
738 */
739export function parseDeferredTime(value: string): number | null {
740 const match = value.match(TIME_PATTERN);
741
742 if (!match) {
743 return null;
744 }
745
746 const [time, units] = match;
747 return parseFloat(time) * (units === 's' ? 1000 : 1);
748}
749
750class DynamicAstValidator extends RecursiveAstVisitor {
751 private dynamicNode: AST | null = null;

Callers 4

parsePlaceholderBlockFunction · 0.90
parseLoadingBlockFunction · 0.90
createIdleTriggerFunction · 0.85
createTimerTriggerFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…