( property: DateIndexProperty, operator: DateRangeOperator, date: string )
| 725 | } |
| 726 | |
| 727 | getTaskPathsForDateRange( |
| 728 | property: DateIndexProperty, |
| 729 | operator: DateRangeOperator, |
| 730 | date: string |
| 731 | ): Set<string> { |
| 732 | this.ensureFilterIndexes(); |
| 733 | |
| 734 | const targetDate = getDatePart(date); |
| 735 | const index = property === "due" ? this.dueDateIndex : this.scheduledDateIndex; |
| 736 | const matchingPaths = new Set<string>(); |
| 737 | |
| 738 | for (const [indexedDate, paths] of index) { |
| 739 | if (!this.matchesDateRange(indexedDate, operator, targetDate)) { |
| 740 | continue; |
| 741 | } |
| 742 | |
| 743 | for (const path of paths) { |
| 744 | matchingPaths.add(path); |
| 745 | } |
| 746 | } |
| 747 | |
| 748 | return matchingPaths; |
| 749 | } |
| 750 | |
| 751 | private matchesDateRange( |
| 752 | indexedDate: string, |
no test coverage detected