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

Function isLanguageQuery

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

Source from the content-addressed store, hash-verified

26export const isRegexpQuery = (query: QueryIR): query is QueryIR & { regexp: Regexp } => query.regexp != null;
27export const isSymbolQuery = (query: QueryIR): query is QueryIR & { symbol: Symbol } => query.symbol != null;
28export const isLanguageQuery = (query: QueryIR): query is QueryIR & { language: Language } => query.language != null;
29export const isConstQuery = (query: QueryIR): query is QueryIR & { const: boolean } => query.const != null;
30export const isRepoQuery = (query: QueryIR): query is QueryIR & { repo: Repo } => query.repo != null;
31export const isRepoRegexpQuery = (query: QueryIR): query is QueryIR & { repo_regexp: RepoRegexp } => query.repo_regexp != null;

Callers 1

traverseQueryIRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected