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
↓ 519 callers
Method
join
(prefix: string, seg: string)
src/extraction/tree-sitter.ts:3453
↓ 267 callers
Method
has
(key: K)
src/resolution/lru-cache.ts:42
↓ 264 callers
Method
get
(...params: any[])
src/db/sqlite-adapter.ts:15
↓ 187 callers
Method
unwrap
__tests__/fixtures/kernel-parity/torture.cpp:67
↓ 154 callers
Method
set
(key: K, value: V)
src/resolution/lru-cache.ts:46
↓ 142 callers
Function
getNodeText
(node: SyntaxNode, source: string)
src/extraction/tree-sitter-helpers.ts:35
↓ 137 callers
Method
exec
(sql: string)
src/db/sqlite-adapter.ts:28
↓ 122 callers
Method
prepare
(sql: string)
src/db/sqlite-adapter.ts:27
↓ 117 callers
Function
edge_kind_index
(kind: &str)
codegraph-kernel/src/buffers.rs:131
↓ 110 callers
Function
getChildByField
(node: SyntaxNode, fieldName: string)
src/extraction/tree-sitter-helpers.ts:42
↓ 95 callers
Method
all
(...params: any[])
src/db/sqlite-adapter.ts:16
↓ 93 callers
Method
resolve
Resolve a reference using framework-specific patterns
src/resolution/types.ts:204
↓ 91 callers
Method
close
()
src/db/sqlite-adapter.ts:31
↓ 91 callers
Method
put
(&mut self, s: &str)
codegraph-kernel/src/buffers.rs:147
↓ 83 callers
Function
preceding_docstring
getPrecedingDocstring — collect the comment run immediately preceding the node (climbing out of declaration wrappers first), cleaned and joined. Retur
codegraph-kernel/src/docstring.rs:133
↓ 80 callers
Method
indexAll
* Index all files in the project * * Uses a mutex to prevent concurrent indexing operations.
src/index.ts:436
↓ 73 callers
Method
getNodesByName
Get all nodes by name
src/resolution/types.ts:72
↓ 69 callers
Method
write
(line: string)
src/mcp/transport.ts:327
↓ 62 callers
Method
collect
(w: &Walker<'t>, n: Node<'t>, prefix: &str, paths: &mut Vec<(String, Node<'t>)>)
codegraph-kernel/src/rustlang.rs:719
↓ 59 callers
Method
readFile
Read file content
src/resolution/types.ts:89
↓ 58 callers
Method
len
(&self)
codegraph-kernel/src/buffers.rs:174
↓ 56 callers
Method
error
(message: string, context?: Record<string, unknown>)
src/errors.ts:173
↓ 53 callers
Method
getNodesInFile
Get all nodes in a file
src/resolution/types.ts:70
↓ 50 callers
Method
init
(raw: String)
__tests__/fixtures/kernel-parity/torture.swift:31
↓ 45 callers
Method
getAllFiles
Get all files
src/resolution/types.ts:113
↓ 44 callers
Function
col16
Column (UTF-16 units) of `byte_pos` on line `row`, given `line_starts`.
codegraph-kernel/src/textutil.rs:99
↓ 44 callers
Method
initSync
* Initialize synchronously (without indexing)
src/index.ts:274
↓ 42 callers
Function
extractFromSource
( filePath: string, source: string, language?: Language, frameworkNames?: string[] )
src/extraction/tree-sitter.ts:6655
↓ 40 callers
Method
destroy
* Alias for close() for backwards compatibility. * @deprecated Use close() instead
src/index.ts:1813
↓ 40 callers
Method
on
(event: 'message', cb: (m: unknown) => void)
src/mcp/query-pool.ts:43
↓ 37 callers
Method
getNodesByKind
Get all nodes of a kind
src/resolution/types.ts:76
↓ 35 callers
Method
run
(...params: any[])
src/db/sqlite-adapter.ts:14
↓ 34 callers
Method
execute
* Execute a tool by name
src/mcp/tools.ts:1354
↓ 34 callers
Method
getNodeById
* Look up a node by its id. Lets matchers derive the FROM-symbol's * enclosing-class scope (Swift implicit-self method scoping, `this.X` * membe
src/resolution/types.ts:132
↓ 34 callers
Method
set
(&mut self, pair: u16, value: bool)
codegraph-kernel/src/buffers.rs:188
↓ 33 callers
Method
push_edge
(&mut self, r: &EdgeRow)
codegraph-kernel/src/buffers.rs:297
↓ 33 callers
Function
resolve
(p: string)
src/directory.ts:127
↓ 31 callers
Function
initGrammars
()
src/extraction/grammars.ts:244
↓ 31 callers
Method
push_node
(&mut self, r: &NodeRow)
codegraph-kernel/src/buffers.rs:273
↓ 30 callers
Function
node_kind_index
(kind: &str)
codegraph-kernel/src/buffers.rs:127
↓ 30 callers
Function
stripCommentsForRegex
(content: string, lang: CommentLang)
src/resolution/strip-comments.ts:41
↓ 27 callers
Method
createNode
Create a node and add it to the extraction result
src/extraction/tree-sitter-types.ts:52
↓ 27 callers
Method
createNode
* Create a Node object
src/extraction/tree-sitter.ts:1308
↓ 27 callers
Function
is_generated_file
isGeneratedFile (src/extraction/generated-detection.ts) — full pattern list ported so future language walkers share it.
codegraph-kernel/src/textutil.rs:43
↓ 27 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/tsjs/mod.rs:266
↓ 26 callers
Function
tryKernelExtract
( filePath: string, source: string, language: Language )
src/extraction/kernel/index.ts:282
↓ 24 callers
Method
fileExists
Check if a file exists
src/resolution/types.ts:87
↓ 24 callers
Method
getOutgoingEdges
* Get outgoing edges from a node
src/db/queries.ts:1716
↓ 23 callers
Method
iterateNodesByKind
* Stream nodes of a kind one at a time instead of materializing (and, unlike * `getNodesByKind`, without populating the resolver's per-kind array c
src/resolution/types.ts:85
↓ 22 callers
Function
readJsonFile
(filePath: string)
src/installer/targets/shared.ts:58
↓ 22 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/java.rs:250
↓ 21 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/csharp.rs:267
↓ 20 callers
Function
logDebug
(message: string, context?: Record<string, unknown>)
src/errors.ts:224
↓ 20 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/ccpp/mod.rs:440
↓ 19 callers
Function
generateNodeId
( filePath: string, kind: NodeKind, name: string, line: number )
src/extraction/tree-sitter-helpers.ts:18
↓ 19 callers
Function
getCodeGraphDir
(projectRoot: string)
src/directory.ts:85
↓ 19 callers
Method
join
(prefix: &str, seg: &str)
codegraph-kernel/src/rustlang.rs:716
↓ 19 callers
Function
loadGrammarsForLanguages
(languages: Language[], wasmBytes?: Record<string, Uint8Array>)
src/extraction/grammars.ts:404
↓ 19 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/dart.rs:216
↓ 18 callers
Method
addUnresolvedReference
Add an unresolved reference
src/extraction/tree-sitter-types.ts:58
↓ 18 callers
Method
getDb
* Get the underlying database instance
src/db/index.ts:358
↓ 18 callers
Method
getIncomingEdges
* Get incoming edges to a node
src/db/queries.ts:1745
↓ 18 callers
Method
openSync
* Open synchronously (without sync)
src/index.ts:381
↓ 18 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/swift.rs:281
↓ 18 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/rustlang.rs:201
↓ 17 callers
Method
popScope
Pop the last node ID from the scope stack
src/extraction/tree-sitter-types.ts:62
↓ 17 callers
Method
searchNodes
* Search nodes by text
src/index.ts:1301
↓ 17 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/go.rs:180
↓ 17 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/scala.rs:248
↓ 17 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/php.rs:266
↓ 16 callers
Function
build_meta
(t: &Tables, arena_len: u32, errors_json: StrRef, duration_ms: f64)
codegraph-kernel/src/buffers.rs:340
↓ 16 callers
Method
clear
* Clear all data from the database
src/db/queries.ts:2505
↓ 16 callers
Method
getNode
* Get a node by ID
src/index.ts:1252
↓ 16 callers
Function
grammar_for
(language: &str)
codegraph-kernel/src/langs.rs:44
↓ 16 callers
Method
ignores
(rel: string)
src/extraction/index.ts:655
↓ 16 callers
Function
line_starts
Byte offsets of each line start, for UTF-16 column conversion.
codegraph-kernel/src/textutil.rs:82
↓ 16 callers
Method
pushScope
Push a node ID onto the scope stack (for containment/qualified name building)
src/extraction/tree-sitter-types.ts:60
↓ 16 callers
Function
resolve
(ref: UnresolvedRef, context: ResolutionContext)
src/resolution/frameworks/go.ts:27
↓ 16 callers
Method
text
(&self, node: Node)
codegraph-kernel/src/kotlin.rs:253
↓ 16 callers
Function
utf16_len
UTF-16 code units in `s` — what web-tree-sitter (and JS string ops) count, so kernel-emitted columns are byte-identical to the wasm path's.
codegraph-kernel/src/textutil.rs:94
↓ 15 callers
Method
create_node
createNode (tree-sitter.ts): id, qualified name from the scope stack, contains edge from the parent scope, value-ref bookkeeping.
codegraph-kernel/src/tsjs/mod.rs:324
↓ 15 callers
Function
file_node_id
(file_path: &str)
codegraph-kernel/src/ids.rs:36
↓ 15 callers
Method
into_vec
(self)
codegraph-kernel/src/buffers.rs:178
↓ 15 callers
Function
node_id
(file_path: &str, kind: &str, name: &str, line: u32)
codegraph-kernel/src/ids.rs:16
↓ 15 callers
Function
normalizePath
(filePath: string)
src/utils.ts:213
↓ 15 callers
Method
warn
(message: string, context?: Record<string, unknown>)
src/errors.ts:172
↓ 15 callers
Function
writeJsonFile
(filePath: string, data: Record<string, any>)
src/installer/targets/shared.ts:100
↓ 14 callers
Function
getGlyphs
()
src/ui/glyphs.ts:106
↓ 14 callers
Method
getOutgoingEdges
* Get outgoing edges from a node
src/index.ts:1510
↓ 14 callers
Method
getProjectRoot
Get project root
src/resolution/types.ts:111
↓ 14 callers
Method
initialize
* Initialize a new database at the given path
src/db/index.ts:67
↓ 14 callers
Function
logWarn
(message: string, context?: Record<string, unknown>)
src/errors.ts:231
↓ 14 callers
Method
push_ref
(&mut self, r: &RefRow)
codegraph-kernel/src/buffers.rs:312
↓ 14 callers
Function
resetKernelForTests
()
src/extraction/kernel/loader.ts:176
↓ 14 callers
Method
transaction
(fn: (...args: any[]) => T)
src/db/sqlite-adapter.ts:30
↓ 13 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/csharp.rs:315
↓ 13 callers
Function
getPrecedingDocstring
(node: SyntaxNode, source: string)
src/extraction/tree-sitter-helpers.ts:95
↓ 13 callers
Function
loadExtensionOverrides
(rootDir: string)
src/project-config.ts:300
↓ 13 callers
Function
skip_jsws
(s: &[u8], mut i: usize)
codegraph-kernel/src/cfnptr.rs:136
↓ 12 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/java.rs:298
next →
1–100 of 3,841, ranked by callers