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

Function parseDeferredTime

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

Source from the content-addressed store, hash-verified

740 * milliseconds. Returns null if it cannot be parsed.
741 */
742export function parseDeferredTime(value: string): number | null {
743 const match = value.match(TIME_PATTERN);
744
745 if (!match) {
746 return null;
747 }
748
749 const [time, units] = match;
750 return parseFloat(time) * (units === 's' ? 1000 : 1);
751}
752
753class DynamicAstValidator extends RecursiveAstVisitor {
754 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