(field, rawValue)
| 303 | if (enc.has("favorite")) delete filters.favorite; |
| 304 | if (enc.has("rating")) delete filters.rating; |
| 305 | if (enc.has("ratingMin")) delete filters.ratingMin; |
| 306 | } |
| 307 | |
| 308 | function readSearchClauses() { |
| 309 | return readSearchBoolTokens() |
| 310 | .filter((x) => x.t === "clause") |
| 311 | .map((c) => ({ field: c.field, value: c.value })) |
| 312 | .filter((c) => c.value); |
| 313 | } |
| 314 | |
| 315 | function hasActiveSearchClauses() { |
| 316 | return normalizeTokensForIpc(readSearchBoolTokens()).length > 0; |
| 317 | } |
| 318 | |
| 319 | function isSearchOperand(tok) { |
| 320 | return tok && (tok.t === "clause" || tok.t === "filter" || tok.t === "filterMulti"); |
| 321 | } |
nothing calls this directly
no test coverage detected