MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / isBranchQuery

Function isBranchQuery

packages/web/src/features/search/ir.ts:41–41  ·  view source on GitHub ↗
(query: QueryIR)

Source from the content-addressed store, hash-verified

39export const isOrQuery = (query: QueryIR): query is QueryIR & { or: Or } => query.or != null;
40export const isNotQuery = (query: QueryIR): query is QueryIR & { not: Not } => query.not != null;
41export const isBranchQuery = (query: QueryIR): query is QueryIR & { branch: Branch } => query.branch != null;
42export const isBoostQuery = (query: QueryIR): query is QueryIR & { boost: Boost } => query.boost != null;
43
44/**

Callers 2

createZoektSearchRequestFunction · 0.90
traverseQueryIRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected