search: use Map for parse tree changes
Created by: rvantonder
- Introduces
Map
for code that wants to change ParseTrees - Refactor alerts to use
Map
Side note: these changes are towards separating code dependencies on Query
that really just want access to ParseTree
and transformations on it.
Side note: Map
is loosely based on query transformer functions in Zoekt, but I would say it's a common higher-order function for transforming trees. Such functions will be useful with AND/OR queries.