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

Function isAndQuery

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

Source from the content-addressed store, hash-verified

36export const isTypeQuery = (query: QueryIR): query is QueryIR & { type: Type } => query.type != null;
37export const isSubstringQuery = (query: QueryIR): query is QueryIR & { substring: Substring } => query.substring != null;
38export const isAndQuery = (query: QueryIR): query is QueryIR & { and: And } => query.and != null;
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;

Callers 1

traverseQueryIRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected