MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / evaluateFilterNode

Method evaluateFilterNode

src/services/FilterService.ts:341–347  ·  view source on GitHub ↗

* Recursively evaluate a filter node (group or condition) against a task * Returns true if the task matches the filter criteria

(
		node: FilterGroup | FilterCondition,
		task: TaskInfo,
		targetDate?: Date
	)

Source from the content-addressed store, hash-verified

339 * Returns true if the task matches the filter criteria
340 */
341 private evaluateFilterNode(
342 node: FilterGroup | FilterCondition,
343 task: TaskInfo,
344 targetDate?: Date
345 ): boolean {
346 return evaluateFilterNode(node, task, this.createPredicateEvaluationContext(), targetDate);
347 }
348
349 private createPredicateEvaluationContext(): FilterPredicateEvaluationContext {
350 return {

Callers 4

getGroupedTasksMethod · 0.95
getTasksForDateMethod · 0.95
getOverdueTasksMethod · 0.95

Calls 2

evaluateFilterNodeFunction · 0.90

Tested by

no test coverage detected