Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colbymchenry/codegraph
/ functions
Functions
5,753 in github.com/colbymchenry/codegraph
⨍
Functions
5,753
◇
Types & classes
1,206
↳
Endpoints
1
↓ 6 callers
Function
clearProjectConfigCache
()
src/project-config.ts:395
↓ 6 callers
Function
collapseWs
(text: string)
src/extraction/languages/erlang.ts:35
↓ 6 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/go.rs:222
↓ 6 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/ruby.rs:255
↓ 6 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/scala.rs:295
↓ 6 callers
Function
decodeLockInfo
(raw: string)
src/mcp/daemon-paths.ts:167
↓ 6 callers
Method
drain
()
src/mcp/query-pool.ts:262
↓ 6 callers
Method
ensureInitialized
* Walk up from `searchFrom` to find the nearest `.codegraph/` and open it. * Idempotent: concurrent callers share one in-flight init; subsequent
src/mcp/engine.ts:140
↓ 6 callers
Method
extractDecoratorsFor
* Scan `declNode` and its preceding siblings (within the parent's * named children) for decorator nodes, emitting a `decorates` * reference from
src/extraction/tree-sitter.ts:4964
↓ 6 callers
Method
extractTypeAnnotations
* Extract type references from type annotations on a function/method/field node. * Creates 'references' edges for parameter types, return types, an
src/extraction/tree-sitter.ts:5841
↓ 6 callers
Method
extract_name
(&self, node: Node)
codegraph-kernel/src/java.rs:471
↓ 6 callers
Method
extract_name
extractName — nameField `name`, else the identifier-like child scan.
codegraph-kernel/src/rustlang.rs:346
↓ 6 callers
Method
extract_name
(&self, node: Node)
codegraph-kernel/src/php.rs:407
↓ 6 callers
Function
facts
(src: &str)
codegraph-kernel/src/cfnptr.rs:1269
↓ 6 callers
Method
fill
(room: number)
src/mcp/tools.ts:5292
↓ 6 callers
Method
flushNow
* Drain in-memory state to the buffer, then send completed-day rollups and * lifecycle events. Bounded by `timeoutMs`; leftovers stay buffered for
src/telemetry/index.ts:277
↓ 6 callers
Method
generatedFilePredicate
* A `(path) => boolean` generated-file test over a BOUNDED candidate list, * unioning the index-time content-banner flag with the filename conventi
src/index.ts:1618
↓ 6 callers
Function
getCurrentVersion
(db: SqliteDatabase)
src/db/migrations.ts:185
↓ 6 callers
Function
getDaemonSocketCandidates
(projectRoot: string)
src/mcp/daemon-paths.ts:70
↓ 6 callers
Function
getDaemonSocketPath
(projectRoot: string)
src/mcp/daemon-paths.ts:87
↓ 6 callers
Function
getExploreOutputBudget
(fileCount: number)
src/mcp/tools.ts:220
↓ 6 callers
Method
getFileByPath
* Get a file record by path
src/db/queries.ts:2161
↓ 6 callers
Method
getUnresolvedReferencesCount
* Get the count of PENDING (never-attempted) references without loading * them into memory. Rows marked status='failed' — attempted by a completed
src/db/queries.ts:2318
↓ 6 callers
Method
is_exported
isExported: walk the parent chain for an export_statement.
codegraph-kernel/src/tsjs/mod.rs:798
↓ 6 callers
Function
joinPath
(base: string, resource: string)
__tests__/fixtures/factory-closure-ts/src/lib/http.ts:21
↓ 6 callers
Function
mergeRanges
(ranges: ReadonlyArray<ExploreLineRange>)
src/mcp/explore-dedup.ts:99
↓ 6 callers
Function
norm
(name: string)
src/resolution/callback-synthesizer.ts:1693
↓ 6 callers
Method
normalize
(p: string)
src/mcp/tools.ts:6130
↓ 6 callers
Method
open
__tests__/fixtures/kernel-parity/torture.cpp:43
↓ 6 callers
Function
preferredMcpConfigPath
* Pick the right MCP config path to write to. * * Prefers the unified `~/.gemini/config/mcp_config.json` when Antigravity * has signalled it's migr
src/installer/targets/antigravity.ts:99
↓ 6 callers
Method
push_ref_at
(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node)
codegraph-kernel/src/swift.rs:324
↓ 6 callers
Method
push_ref_at
(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node)
codegraph-kernel/src/csharp.rs:309
↓ 6 callers
Function
push_str
(out: &mut Vec<String>, bytes: &[u8])
codegraph-kernel/src/cfnptr.rs:1136
↓ 6 callers
Method
resolveReferences
* Resolve unresolved references and create edges * * This method takes unresolved references from extraction and attempts * to resolve them u
src/index.ts:1218
↓ 6 callers
Method
resolve_body
resolveBody (kotlin.ts:219): first ERROR child whose child(0) is `{` (fun-interface parent body — unreachable post-defer, kept for contract), else fir
codegraph-kernel/src/kotlin.rs:302
↓ 6 callers
Function
round
(f)
scripts/agent-eval/parse-run.mjs:1245
↓ 6 callers
Method
runBatched
* Run `rows` through a multi-row `INSERT` built as `head + (tuple,)*n`, * decomposed greedily into the cached batch sizes. Preserves row order.
src/db/queries.ts:293
↓ 6 callers
Method
searchNodes
* Search nodes by name using FTS with fallback to LIKE for better matching * * Search strategy: * 1. Try FTS5 prefix match (query*) for word-
src/db/queries.ts:1238
↓ 6 callers
Method
send
(response: JsonRpcResponse)
src/mcp/transport.ts:77
↓ 6 callers
Function
slice_utf16
JS `String.prototype.slice(0, n)` in UTF-16 units, without splitting a surrogate pair (when the cut would split one, we stop one code unit short — a l
codegraph-kernel/src/textutil.rs:111
↓ 6 callers
Method
spawnOne
()
src/extraction/parse-pool.ts:269
↓ 6 callers
Method
supportsLocation
* Whether this target supports the given install location. * * Some agents (GitHub Copilot CLI, the Copilot JetBrains plugin) * have no proje
src/installer/targets/types.ts:95
↓ 6 callers
Method
terminate
()
src/mcp/query-pool.ts:42
↓ 6 callers
Function
toQueryString
(params: Record<string, string | number | undefined>)
__tests__/fixtures/factory-closure-ts/src/lib/http.ts:11
↓ 6 callers
Function
tomlConfigPath
(loc: Location)
src/installer/targets/codex.ts:60
↓ 6 callers
Method
top_row
(&self)
codegraph-kernel/src/java.rs:262
↓ 6 callers
Method
top_row
(&self)
codegraph-kernel/src/swift.rs:294
↓ 6 callers
Method
top_row
(&self)
codegraph-kernel/src/ruby.rs:219
↓ 6 callers
Method
top_row
(&self)
codegraph-kernel/src/scala.rs:260
↓ 6 callers
Method
top_row
(&self)
codegraph-kernel/src/rustlang.rs:216
↓ 6 callers
Method
top_row
(&self)
codegraph-kernel/src/dart.rs:228
↓ 6 callers
Method
top_row
(&self)
codegraph-kernel/src/csharp.rs:279
↓ 6 callers
Method
validateString
* Validate that a value is a non-empty string within length bounds. * * The `maxLength` cap protects against MCP clients that ship huge * pay
src/mcp/tools.ts:1684
↓ 6 callers
Method
visibility_of
getVisibility: whole-text substring matching over `modifiers` children; default INTERNAL. `open` → internal, `fileprivate` → private (via the 'private
codegraph-kernel/src/swift.rs:462
↓ 6 callers
Method
visitFunctionBody
(body: SyntaxNode, _functionId: string)
src/extraction/tree-sitter.ts:5196
↓ 6 callers
Method
visit_function_body
(&mut self, body: Node<'t>)
codegraph-kernel/src/tsjs/mod.rs:686
↓ 6 callers
Method
visit_node
(&mut self, node: Node<'t>)
codegraph-kernel/src/csharp.rs:502
↓ 5 callers
Function
advance
codegraph-kernel/grammars/scala/scanner.c:135
↓ 5 callers
Function
allocateExploreBudget
( candidates: readonly ExploreAllocationCandidate[], budget: ExploreOutputBudget, maxFiles: number, )
src/mcp/tools.ts:674
↓ 5 callers
Method
clear
* Clear all data from the graph
src/index.ts:1922
↓ 5 callers
Method
clear
Drop everything. Used by tests; a real session just goes away instead.
src/mcp/explore-session-state.ts:279
↓ 5 callers
Function
codeGraphDirName
()
src/directory.ts:35
↓ 5 callers
Function
configPath
()
src/installer/targets/hermes.ts:111
↓ 5 callers
Function
configPath
(loc: Location)
src/installer/targets/opencode.ts:90
↓ 5 callers
Method
createEdges
* Create edges from resolved references
src/resolution/index.ts:1063
↓ 5 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/lua.rs:201
↓ 5 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/python.rs:185
↓ 5 callers
Function
currentScope
(ctx: ExtractorContext)
src/extraction/languages/cobol.ts:61
↓ 5 callers
Method
emit
(event: string, payload: unknown)
__tests__/fixtures/tail-render-ts/src/lib/socket.ts:2
↓ 5 callers
Method
errorResult
(message: string)
src/mcp/tools.ts:7049
↓ 5 callers
Function
exploreProjectKey
(projectRoot: string)
src/mcp/explore-session-state.ts:151
↓ 5 callers
Function
extract
(file_path: &str, source: &str)
codegraph-kernel/src/go.rs:103
↓ 5 callers
Method
extractInheritance
* Extract inheritance relationships
src/extraction/tree-sitter.ts:5362
↓ 5 callers
Method
extract_name
extractName (tree-sitter.ts:90-192) — resolveName (ctor names) → name field → the method_signature inner unwrap → identifier-ish child → `<anonymous>`
codegraph-kernel/src/dart.rs:560
↓ 5 callers
Method
extract_type_annotations
(&mut self, node: Node<'t>, from_row: u32)
codegraph-kernel/src/tsjs/extractors.rs:1274
↓ 5 callers
Function
fail
(error: string, status = 400)
telemetry-dashboard/src/api.ts:53
↓ 5 callers
Method
findAllSymbols
* Find ALL symbols matching a name. Used by callers/callees/impact to aggregate * results across all matching symbols (e.g., multiple classes with
src/mcp/tools.ts:6842
↓ 5 callers
Function
finish
( peers: { pid: number | null; hostPid: number | null }, putBack?: Buffer, )
src/mcp/daemon.ts:806
↓ 5 callers
Method
getGeneratedPathsAmong
* Which of `filePaths` the index flagged as tool-generated (schema v9+). * * Bounded-lookup by design: every consumer already holds a short cand
src/db/queries.ts:2016
↓ 5 callers
Method
getImportMappings
Get cached import mappings for a file
src/resolution/types.ts:134
↓ 5 callers
Method
getJournalMode
* The journal mode actually in effect ('wal', 'delete', …). 'wal' means * readers never block on a concurrent writer; anything else means they can,
src/index.ts:1311
↓ 5 callers
Method
getLanguageFromNodeId
* Get language from node ID
src/resolution/index.ts:2100
↓ 5 callers
Method
getStats
* Get graph statistics
src/db/queries.ts:2804
↓ 5 callers
Method
isEnabled
()
src/telemetry/index.ts:205
↓ 5 callers
Function
isProcessAlive
(pid: number)
src/mcp/daemon-registry.ts:61
↓ 5 callers
Function
isTestFile
(filePath: string)
src/search/query-utils.ts:290
↓ 5 callers
Method
listen
(socketPath: string)
src/mcp/daemon.ts:220
↓ 5 callers
Function
loadParsedConfig
* Load the parsed `codegraph.json` for a project, mtime-cached. A missing or * malformed file yields the zero-config default. One `stat` (and at most
src/project-config.ts:314
↓ 5 callers
Method
mb
(n: number)
src/db/wal-valve.ts:127
↓ 5 callers
Function
mcpConfigPath
()
src/installer/targets/copilot-cli.ts:54
↓ 5 callers
Function
mcpJsonPath
(loc: Location)
src/installer/targets/kiro.ts:48
↓ 5 callers
Function
mcpJsonPath
(loc: Location)
src/installer/targets/claude.ts:49
↓ 5 callers
Function
mcpJsonPath
()
src/installer/targets/copilot-jetbrains.ts:81
↓ 5 callers
Function
mcpJsonPath
(loc: Location)
src/installer/targets/copilot-vscode.ts:80
↓ 5 callers
Function
mcpJsonPath
(loc: Location)
src/installer/targets/cursor.ts:56
↓ 5 callers
Function
notify
()
__tests__/fixtures/factory-closure-ts/src/stores/dashboard-store.ts:342
↓ 5 callers
Function
number
(n)
telemetry-dashboard/public/theme.js:89
↓ 5 callers
Function
numberSourceLines
* Prefix each line of a source slice with its 1-based line number, matching * the Read tool's `cat -n` convention (number + tab) so the agent treats
src/mcp/tools.ts:819
↓ 5 callers
Function
on_small_stack
(f: impl FnOnce() -> T + Send + 'static)
codegraph-kernel/src/stack.rs:192
↓ 5 callers
Function
pathFor
* Path math keyed on the TARGET platform (not the host) — same convention as * `detectInstallMethod`, so the planner is deterministic when unit-teste
src/upgrade/remove-binary.ts:103
← previous
next →
201–300 of 5,753, ranked by callers