(value: string)
| 737 | * milliseconds. Returns null if it cannot be parsed. |
| 738 | */ |
| 739 | export 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 | |
| 750 | class DynamicAstValidator extends RecursiveAstVisitor { |
| 751 | private dynamicNode: AST | null = null; |
no test coverage detected
searching dependent graphs…