Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colbymchenry/codegraph
/ functions
Functions
3,841 in github.com/colbymchenry/codegraph
⨍
Functions
3,841
◇
Types & classes
553
↳
Endpoints
1
↓ 12 callers
Method
destroy
Terminate all workers and answer any outstanding calls gracefully.
src/mcp/query-pool.ts:312
↓ 12 callers
Function
enclosingFn
Innermost function/method node whose line range contains `line`.
src/resolution/callback-synthesizer.ts:155
↓ 12 callers
Method
getCallers
* Get callers of a function/method * * @param nodeId - ID of the function/method node * @param maxDepth - Maximum depth to traverse (default:
src/index.ts:1618
↓ 12 callers
Method
getNodesByIds
* Batch lookup: fetch many nodes by ID in a single SQL round-trip. * * Replaces the N+1 pattern in graph traversal where every edge would * t
src/db/queries.ts:796
↓ 12 callers
Method
postMessage
(msg: unknown)
src/mcp/query-pool.ts:41
↓ 12 callers
Method
stop
()
src/mcp/transport.ts:76
↓ 11 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/swift.rs:329
↓ 11 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/php.rs:314
↓ 11 callers
Function
detectLanguage
(filePath: string, source?: string, overrides?: Record<string, Language>)
src/extraction/grammars.ts:477
↓ 11 callers
Method
getCodeGraph
* Get CodeGraph instance for a project * * If projectPath is provided, opens that project's CodeGraph (cached). * Otherwise returns the defau
src/mcp/tools.ts:1030
↓ 11 callers
Method
getIncomingEdges
* Get incoming edges to a node
src/index.ts:1517
↓ 11 callers
Method
getStats
* Get statistics about the knowledge graph
src/index.ts:1220
↓ 11 callers
Function
isGeneratedFile
(filePath: string)
src/extraction/generated-detection.ts:79
↓ 11 callers
Function
isInitialized
(projectRoot: string)
src/directory.ts:93
↓ 11 callers
Function
is_word_at
(s: &[u8], i: usize)
codegraph-kernel/src/cfnptr.rs:106
↓ 11 callers
Method
pragma
(str: string, options?: { simple?: boolean })
src/db/sqlite-adapter.ts:29
↓ 11 callers
Method
push_ref
(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node)
codegraph-kernel/src/tsjs/mod.rs:294
↓ 11 callers
Function
rowToNode
* Convert database row to Node object
src/db/queries.ts:131
↓ 11 callers
Method
sync
* Sync with current file state (incremental update) * * Uses a mutex to prevent concurrent indexing operations.
src/index.ts:742
↓ 11 callers
Method
textResult
(text: string)
src/mcp/tools.ts:4698
↓ 11 callers
Method
visitNode
Visit a child node (dispatches through the standard visitNode logic)
src/extraction/tree-sitter-types.ts:54
↓ 11 callers
Function
word_end
(s: &[u8], mut i: usize)
codegraph-kernel/src/cfnptr.rs:148
↓ 10 callers
Function
atomicWriteFileSync
(filePath: string, content: string)
src/installer/targets/shared.ts:81
↓ 10 callers
Function
collect
Collect candidate files.
scripts/kernel-parity.mjs:74
↓ 10 callers
Function
createYielder
(budgetMs: number = DEFAULT_YIELD_BUDGET_MS)
src/resolution/cooperative-yield.ts:42
↓ 10 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/kotlin.rs:321
↓ 10 callers
Function
fn
(name: string)
__tests__/resolution.test.ts:1041
↓ 10 callers
Function
getTelemetry
()
src/telemetry/index.ts:543
↓ 10 callers
Function
isSourceFile
(filePath: string, overrides?: Record<string, Language>)
src/extraction/grammars.ts:184
↓ 10 callers
Method
is_ts
TS-family (typescript/tsx): type annotations, interfaces, enums, aliases, visibility, isStatic. The JS family lacks all of those hooks.
codegraph-kernel/src/tsjs/mod.rs:46
↓ 10 callers
Function
loadAllGrammars
()
src/extraction/grammars.ts:438
↓ 10 callers
Function
onProgress
(progress: IndexProgress)
src/ui/shimmer-progress.ts:74
↓ 10 callers
Method
start
(handler: MessageHandler)
src/mcp/transport.ts:75
↓ 10 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/lua.rs:160
↓ 10 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/python.rs:143
↓ 10 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/ruby.rs:207
↓ 9 callers
Function
atomText
Text of an atom with quoted-atom quotes stripped (`'EXIT'` → `EXIT`).
src/extraction/languages/erlang.ts:27
↓ 9 callers
Method
collect
(n: Node<'t>, depth: u32, out: &mut Vec<Node<'t>>)
codegraph-kernel/src/tsjs/extractors.rs:875
↓ 9 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/ccpp/mod.rs:482
↓ 9 callers
Function
extractName
* Extract the name from a node based on language
src/extraction/tree-sitter.ts:90
↓ 9 callers
Method
getCallers
* Find all callers of a function/method * * @param nodeId - ID of the function/method node * @param maxDepth - Maximum depth to traverse (def
src/graph/traversal.ts:261
↓ 9 callers
Method
getNodesByQualifiedName
Get all nodes by qualified name
src/resolution/types.ts:74
↓ 9 callers
Method
insertEdges
* Insert multiple edges in a transaction
src/db/queries.ts:1668
↓ 9 callers
Function
isLanguageSupported
(language: Language)
src/extraction/grammars.ts:529
↓ 9 callers
Function
safeJsonParse
(value: string, fallback: T)
src/utils.ts:193
↓ 9 callers
Function
validatePathWithinRoot
( projectRoot: string, filePath: string, options?: { allowSymlinkEscape?: boolean } )
src/utils.ts:110
↓ 9 callers
Method
visitNode
* Visit a node and extract information
src/extraction/tree-sitter.ts:936
↓ 8 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/dart.rs:263
↓ 8 callers
Method
extract_name
extractName incl. the resolveName hook: a multi-segment extension name (`extension KF.Builder`) takes the LAST type_identifier's text.
codegraph-kernel/src/swift.rs:431
↓ 8 callers
Method
getCallees
* Find all functions/methods called by a function * * @param nodeId - ID of the function/method node * @param maxDepth - Maximum depth to tra
src/graph/traversal.ts:319
↓ 8 callers
Function
getKernel
()
src/extraction/kernel/loader.ts:144
↓ 8 callers
Function
getMcpServerConfig
()
src/installer/targets/shared.ts:24
↓ 8 callers
Function
is_word
(b: u8)
codegraph-kernel/src/cfnptr.rs:101
↓ 8 callers
Method
postMessage
(msg: unknown)
src/extraction/parse-pool.ts:40
↓ 8 callers
Method
push_ref_at
(&mut self, from_row: u32, name: &str, kind: &str, node: Node)
codegraph-kernel/src/scala.rs:271
↓ 8 callers
Method
release
* Release the lock
src/utils.ts:284
↓ 8 callers
Function
sliceLines
(content: string, startLine?: number, endLine?: number)
src/resolution/callback-synthesizer.ts:107
↓ 8 callers
Method
top_row
(&self)
codegraph-kernel/src/tsjs/mod.rs:282
↓ 7 callers
Function
advance
codegraph-kernel/grammars/kotlin/scanner.c:60
↓ 7 callers
Function
blankRange
* Replace every char in a slice with spaces, but keep newlines so line * numbers computed downstream remain valid.
src/resolution/strip-comments.ts:72
↓ 7 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/rustlang.rs:247
↓ 7 callers
Function
defaultsOnlyIgnore
* Defaults-only ignore matcher (no root `.gitignore` merged). Used wherever the * parent repo's own ignore rules must NOT apply — inside embedded chi
src/extraction/index.ts:308
↓ 7 callers
Method
detect
Detect if project uses this framework (project-level, called once at startup)
src/resolution/types.ts:202
↓ 7 callers
Method
extract
* Parse and extract from the source code
src/extraction/tree-sitter.ts:454
↓ 7 callers
Method
extractFunction
* Extract a function
src/extraction/tree-sitter.ts:1517
↓ 7 callers
Method
extract_function
(&mut self, node: Node<'t>, name_override: Option<String>)
codegraph-kernel/src/tsjs/extractors.rs:17
↓ 7 callers
Method
extract_name
extractName — the zero-field grammar means the nameField lookup always misses; names come from the shared fallback scan (first direct identifier-famil
codegraph-kernel/src/kotlin.rs:443
↓ 7 callers
Method
extract_name
extractName (tree-sitter.ts:90) — the C#-reachable paths: the `name` field (always present on named declarations), else the shared identifier scan, el
codegraph-kernel/src/csharp.rs:486
↓ 7 callers
Method
extract_name
extractName: extractNameRaw + the universal recoverMangledName net (wired for BOTH c and cpp in languages/c-cpp.ts).
codegraph-kernel/src/ccpp/mod.rs:581
↓ 7 callers
Method
extract_name
extractName / extractNameRaw for the TS/JS configs.
codegraph-kernel/src/tsjs/mod.rs:736
↓ 7 callers
Function
getDatabasePath
(projectRoot: string)
src/db/index.ts:720
↓ 7 callers
Method
getFiles
* Get all tracked files
src/index.ts:1535
↓ 7 callers
Method
getWalSizeBytes
* Size of the `-wal` sidecar file in bytes. 0 when it doesn't exist (non-WAL * journal mode, in-memory DB, or no write since the last checkpoint+re
src/db/index.ts:433
↓ 7 callers
Function
init_signature
The `= <first 100 UTF-16 units>[...]` initializer signature used by extractVariable (its `.length >= 100` check fires exactly when the slice hit the c
codegraph-kernel/src/textutil.rs:150
↓ 7 callers
Method
insertUnresolvedRefsBatch
* Insert multiple unresolved references in a transaction
src/db/queries.ts:1980
↓ 7 callers
Function
jsonDeepEqual
(a: unknown, b: unknown)
src/installer/targets/shared.ts:111
↓ 7 callers
Method
push_ref_at
(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node)
codegraph-kernel/src/java.rs:292
↓ 7 callers
Method
push_ref_at
(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node)
codegraph-kernel/src/rustlang.rs:224
↓ 7 callers
Method
push_ref_at
(&mut self, from_row: u32, name: &str, kind: &str, node: Node)
codegraph-kernel/src/dart.rs:238
↓ 7 callers
Method
push_ref_at
(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node)
codegraph-kernel/src/php.rs:308
↓ 7 callers
Function
register
(f: fn())
__tests__/fixtures/kernel-parity/torture.rs:164
↓ 7 callers
Function
resolveMethodOnType
( typeName: string, methodName: string, ref: UnresolvedRef, context: ResolutionContext, confidence:
src/resolution/name-matcher.ts:536
↓ 7 callers
Function
scanDirectory
( rootDir: string, onProgress?: (current: number, file: string) => void )
src/extraction/index.ts:1187
↓ 7 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/rlang.rs:144
↓ 7 callers
Method
top_row
(&self)
codegraph-kernel/src/php.rs:278
↓ 7 callers
Method
top_row
(&self)
codegraph-kernel/src/ccpp/mod.rs:452
↓ 7 callers
Method
truncateOutput
* Truncate output if it exceeds the maximum length
src/mcp/tools.ts:4559
↓ 7 callers
Method
visibility_of
getVisibility: FIRST `modifier` child whose text is one of the four levels wins; none → private (the C# default).
codegraph-kernel/src/csharp.rs:419
↓ 6 callers
Method
acquire
* Acquire the lock * * @returns A release function to call when done
src/utils.ts:384
↓ 6 callers
Function
body_of
resolveBody ?? getChildByField(node, 'body') — the body-walk resolution.
codegraph-kernel/src/tsjs/mod.rs:896
↓ 6 callers
Function
buildDefaultIgnore
(rootDir: string)
src/extraction/index.ts:296
↓ 6 callers
Function
bytes_to_string
(bytes: &[u8])
codegraph-kernel/src/cfnptr.rs:1123
↓ 6 callers
Function
clamp
(value: number, min: number, max: number)
src/utils.ts:205
↓ 6 callers
Function
cleanup
()
src/mcp/proxy.ts:449
↓ 6 callers
Method
clear
()
src/resolution/lru-cache.ts:59
↓ 6 callers
Method
clearCaches
* Clear internal caches
src/resolution/index.ts:388
↓ 6 callers
Function
clearProjectConfigCache
()
src/project-config.ts:342
↓ 6 callers
Function
collapseWs
(text: string)
src/extraction/languages/erlang.ts:31
↓ 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
← previous
next →
101–200 of 3,841, ranked by callers