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
↓ 2 callers
Method
cap_height
(self, size, weight)
assets/generate-language-tiles.py:126
↓ 2 callers
Function
capitalizeJava
(name: string)
src/extraction/languages/java.ts:79
↓ 2 callers
Method
catchUpSync
* Reconcile the index with the current filesystem once, right after open — * catches edits, adds, deletes, and `git pull`/`checkout` changes made w
src/mcp/engine.ts:296
↓ 2 callers
Method
centered
(self, text, size, weight, center_x, baseline_y, track=TRACK)
assets/generate-language-tiles.py:143
↓ 2 callers
Function
cgShort
(n)
scripts/agent-eval/seq-matrix.mjs:25
↓ 2 callers
Function
cgroupMemoryAvailable
()
src/resolution/memory-budget.ts:60
↓ 2 callers
Function
check
()
__tests__/watcher.test.ts:48
↓ 2 callers
Method
check
One poll: fire an off-thread passive checkpoint when growth passes the soft threshold.
src/db/wal-valve.ts:164
↓ 2 callers
Function
checkForUpdateInBackground
( deps: UpdateCheckDeps = {}, log: (line: string) => void = (line) => process.stderr.write(line), )
src/upgrade/update-check.ts:239
↓ 2 callers
Method
checkpointWal
(mode: 'PASSIVE' | 'TRUNCATE')
src/db/index.ts:509
↓ 2 callers
Method
checkpointWalTruncate
* `PRAGMA wal_checkpoint(TRUNCATE)` — same off-thread pattern as PASSIVE, * but on success the WAL FILE is chopped to zero. A completed passive
src/db/index.ts:505
↓ 2 callers
Function
chmodExecutable
(file: string)
src/sync/git-hooks.ts:112
↓ 2 callers
Function
choicePath
(deps: BetaSignupDeps = {})
src/installer/beta-signup.ts:44
↓ 2 callers
Method
claimsReference
* Opt a reference NAME through the resolver's name-exists pre-filter, even when * no node is named that. Needed for dynamic dispatch where the call
src/resolution/types.ts:212
↓ 2 callers
Function
classifyFields
(rawFields: RawFieldDecl[])
src/resolution/c-fnptr-synthesizer.ts:593
↓ 2 callers
Function
cleanupLegacyLocalMcp
* Strip the codegraph entry from a legacy project-local * `./.claude.json` (written by pre-#207 installers, which Claude Code * never read). Surgica
src/installer/targets/claude.ts:262
↓ 2 callers
Function
cleanupLegacyWindowsState
* Remove whatever a pre-#535 install left in `%APPDATA%/opencode` — an MCP * entry opencode never reads, plus our marker-fenced AGENTS.md block. Retu
src/installer/targets/opencode.ts:263
↓ 2 callers
Method
cleanupLockfile
()
src/mcp/daemon.ts:500
↓ 2 callers
Method
clearNameSegmentVocab
Wipe the segment vocabulary. A full index calls this at its start; the * node write path repopulates it as files (re-)index, so the end state is
src/db/queries.ts:657
↓ 2 callers
Method
close
* Close the CodeGraph instance and release resources
src/index.ts:413
↓ 2 callers
Function
close_call_tail
`\s*\)?\s*\(` at `i` → position after the `(`. The optional `)` needs no backtracking: retrying without a consumed `)` lands `\(` on that `)`.
codegraph-kernel/src/cfnptr.rs:339
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/kotlin.rs:259
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/lua.rs:166
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/swift.rs:287
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/python.rs:149
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/go.rs:186
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/scala.rs:254
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/rustlang.rs:207
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/dart.rs:222
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/rlang.rs:150
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/ccpp/mod.rs:446
↓ 2 callers
Method
col_of
(&self, node: Node)
codegraph-kernel/src/tsjs/mod.rs:274
↓ 2 callers
Function
collectIncludedFilesForRoot
* The included source files (`codegraph.json` `include`) for a scan root, or an * empty set when nothing is force-included. Centralizes loading the m
src/extraction/index.ts:485
↓ 2 callers
Function
collectReferences
* Walk an `expression` subtree and emit a reference for every dotted name * whose head is a Terraform reference root (var / local / module / data / a
src/extraction/languages/terraform.ts:89
↓ 2 callers
Method
componentNameFromPath
()
src/extraction/cfml-extractor.ts:462
↓ 2 callers
Function
computePathProximity
* Compute directory proximity between two file paths. * Returns a score based on the number of shared directory segments.
src/resolution/name-matcher.ts:2025
↓ 2 callers
Function
configBaseDir
(loc: Location)
src/installer/targets/opencode.ts:83
↓ 2 callers
Function
configKeys
()
__tests__/config-secret-redaction.test.ts:65
↓ 2 callers
Function
configureConnection
* Apply connection-level PRAGMAs. Shared by `initialize` and `open` so the two * paths can't drift. * * `busy_timeout` is set FIRST, before any pra
src/db/index.ts:30
↓ 2 callers
Function
connectWithHello
( socketPath: string, expectedVersion: string = CodeGraphPackageVersion, )
src/mcp/proxy.ts:133
↓ 2 callers
Function
consume_and_count_char
codegraph-kernel/grammars/lua/scanner.c:29
↓ 2 callers
Function
contains_bytes
(s: &[u8], needle: &[u8])
codegraph-kernel/src/cfnptr.rs:182
↓ 2 callers
Function
content
(l: string)
src/extraction/languages/c-cpp.ts:554
↓ 2 callers
Function
countNewlines
(text: string, end: number)
src/mcp/dynamic-boundaries.ts:385
↓ 2 callers
Function
createDirectory
(projectRoot: string)
src/directory.ts:644
↓ 2 callers
Function
createResolver
(projectRoot: string, queries: QueryBuilder)
src/resolution/index.ts:2440
↓ 2 callers
Function
createTempDir
()
__tests__/extraction.test.ts:23
↓ 2 callers
Function
createVerboseProgress
* Create a plain-text progress callback for --verbose mode. * No animations, no ANSI tricks — just timestamped lines to stdout.
src/bin/codegraph.ts:301
↓ 2 callers
Function
dartCtorInfo
* Validated constructor info for `node`, or undefined if it isn't genuinely a * constructor. A constructor signature is structurally `<Class>` or *
src/extraction/languages/dart.ts:61
↓ 2 callers
Function
darwinMemoryAvailable
()
src/resolution/memory-budget.ts:87
↓ 2 callers
Function
debug
(msg: string)
src/extraction/kernel/loader.ts:94
↓ 2 callers
Method
debug
(message: string, context?: Record<string, unknown>)
src/errors.ts:171
↓ 2 callers
Method
definitionHeading
Section heading for one distinct definition in grouped output.
src/mcp/tools.ts:1563
↓ 2 callers
Method
deleteFile
* Delete a file record and its nodes
src/db/queries.ts:1896
↓ 2 callers
Function
deriveCheckIntervalMs
(timeoutMs: number)
src/mcp/liveness-watchdog.ts:85
↓ 2 callers
Function
deriveComponentNameFromManager
* Derive the JS-visible component name from a native ViewManager class. * Strip a trailing `Manager` (and optionally `ViewManager`) — RN's view * re
src/resolution/frameworks/fabric.ts:84
↓ 2 callers
Function
deriveInstallDir
( bundleRoot: string, os: 'unix' | 'windows', exists: (p: string) => boolean )
src/upgrade/index.ts:71
↓ 2 callers
Function
deriveProjectNameTokens
(projectRoot: string)
src/search/query-utils.ts:29
↓ 2 callers
Function
describeFatal
(value: unknown)
src/bin/fatal-handler.ts:40
↓ 2 callers
Method
detect
(loc: Location)
src/installer/targets/types.ts:96
↓ 2 callers
Function
detectAll
(loc: Location)
src/installer/targets/registry.ts:45
↓ 2 callers
Function
detectLanguage
(filePath: string)
src/resolution/frameworks/nestjs.ts:514
↓ 2 callers
Function
download
(url, dest, redirectsLeft)
scripts/npm-shim.js:177
↓ 2 callers
Method
dropClient
(session: MCPSession)
src/mcp/daemon.ts:386
↓ 2 callers
Method
dumpResolveProfile
Dump the CODEGRAPH_RESOLVE_PROFILE histogram to stderr (no-op when off).
src/resolution/index.ts:1420
↓ 2 callers
Function
eatWs
()
src/resolution/frameworks/nestjs.ts:372
↓ 2 callers
Method
endBulkEdgeLoad
* Leave bulk-edge-load mode: recreate the dropped indexes in one pass each * over the (now fully loaded) edges table — far cheaper than maintaining
src/db/index.ts:311
↓ 2 callers
Method
endBulkNodeLoad
* Leave bulk-load mode: rebuild the whole FTS index from the nodes table in * one pass (far cheaper than per-row trigger firings), then recreate th
src/db/index.ts:149
↓ 2 callers
Method
ensureDetectedFrameworks
* Detect frameworks on demand using the current scanned files (or a fresh * scan if none are provided). Cached on the orchestrator so repeat calls
src/extraction/index.ts:1497
↓ 2 callers
Method
ensureExitHook
()
src/telemetry/index.ts:527
↓ 2 callers
Function
ensureGitignore
* Write `.codegraph/.gitignore` if it's absent, or upgrade a stale * CodeGraph-generated default in place; a user-customized file is left alone. * B
src/directory.ts:623
↓ 2 callers
Function
ensureTrailingNewline
(text: string)
src/installer/targets/hermes.ts:137
↓ 2 callers
Function
escapeRegExp
(value: string)
src/installer/targets/hermes.ts:248
↓ 2 callers
Function
executeBinaryRemoval
( plan: BinaryRemovalPlan, deps: RemoveBinaryDeps = defaultRemoveDeps(), )
src/upgrade/remove-binary.ts:263
↓ 2 callers
Method
executeReadTool
* Run a single read tool to completion and return its raw {@link ToolResult}, * classifying expected failures the same way {@link execute}'s catch
src/mcp/tools.ts:1453
↓ 2 callers
Function
expandGrammarLanguages
* Expand an index set's languages to the grammars actually needed to parse it. * SFC languages (svelte/vue/astro) have no grammar of their own — thei
src/extraction/grammars.ts:360
↓ 2 callers
Function
expandMacroCalls
* Expand known function-like macro calls in `text` to a fixpoint (depth-capped). * `MAKE_CMD("get",…,getCommand,…)` → the positional value list whose
src/resolution/c-fnptr-synthesizer.ts:319
↓ 2 callers
Method
extractAnonymousClass
* Extract a Java/C# anonymous class — `new T() { ...members }`. Emits a * `class` node named `<T$anon@line>`, an `extends` reference to T (so *
src/extraction/tree-sitter.ts:4837
↓ 2 callers
Method
extractCall
(node: SyntaxNode)
src/extraction/tree-sitter.ts:3684
↓ 2 callers
Method
extractClass
* Extract a class
src/extraction/tree-sitter.ts:1679
↓ 2 callers
Method
extractCsharpPrimaryCtorParamRefs
* Record the dependencies declared by a C# PRIMARY CONSTRUCTOR * (`class Svc(IRepo repo, [FromKeyedServices("k")] ICache cache) { … }`, * C# 12+
src/extraction/tree-sitter.ts:5938
↓ 2 callers
Method
extractEnum
* Extract an enum
src/extraction/tree-sitter.ts:1914
↓ 2 callers
Method
extractEnumMembers
* Extract enum member names from an enum member node. * Handles multi-case declarations (Swift: `case put, delete`) and single-case patterns.
src/extraction/tree-sitter.ts:1958
↓ 2 callers
Method
extractFile
(filePath: string, content: string, language: string)
src/extraction/kernel/loader.ts:83
↓ 2 callers
Method
extractFunctionTag
* `<cffunction name="..." access="..." returntype="...">...</cffunction>`. * `parentClassId` decides `method` vs top-level `function`; `containerId
src/extraction/cfml-extractor.ts:259
↓ 2 callers
Function
extractImportMappings
( _filePath: string, content: string, language: Language )
src/resolution/import-resolver.ts:760
↓ 2 callers
Method
extractInstantiation
(node: SyntaxNode)
src/extraction/tree-sitter.ts:4610
↓ 2 callers
Method
extractInterface
* Extract an interface/protocol/trait
src/extraction/tree-sitter.ts:1834
↓ 2 callers
Method
extractMethod
* Extract a method
src/extraction/tree-sitter.ts:1737
↓ 2 callers
Method
extractNodeCode
* Extract code from a node's source file
src/context/index.ts:1192
↓ 2 callers
Method
extractObjectLiteralFunctions
* Extract function-valued properties of an object literal as named function * nodes (named by their property key). Shared by the two object-of-func
src/extraction/tree-sitter.ts:2164
↓ 2 callers
Function
extractSearchTerms
(query: string, options?: { stems?: boolean })
src/search/query-utils.ts:156
↓ 2 callers
Method
extractStaticMemberRef
* Static-member / value-read pass. A type/enum/class used only via a member * VALUE — `Enum.value`, `Type.CONST`, `Colors.red`, `Foo::BAR` — record
src/extraction/tree-sitter.ts:4750
↓ 2 callers
Method
extractStruct
* Extract a struct
src/extraction/tree-sitter.ts:1869
↓ 2 callers
Method
extract_anonymous_class
extractAnonymousClass — `new T() { ... }`.
codegraph-kernel/src/java.rs:904
↓ 2 callers
Method
extract_anonymous_class
extractAnonymousClass — `new T() { ... }`. The C# grammar never produces a class_body/declaration_list child on object_creation (object initializers a
codegraph-kernel/src/csharp.rs:1089
↓ 2 callers
Method
extract_anonymous_class
extractAnonymousClass — unreachable on v0.24.2 (the declaration_list nests inside `anonymous_class`, so findAnonymousClassBody finds no DIRECT child)
codegraph-kernel/src/php.rs:1082
↓ 2 callers
Method
extract_call
extractCall — the kotlin paths: navigation member branch (+ the #750 re-encode) and the raw-text else (paren-then-lambda / glued-invoke garbage preser
codegraph-kernel/src/kotlin.rs:985
↓ 2 callers
Method
extract_call
(&mut self, node: Node<'t>)
codegraph-kernel/src/lua.rs:629
↓ 2 callers
Method
extract_call
extractCall — the Java method_invocation paths.
codegraph-kernel/src/java.rs:818
← previous
next →
701–800 of 3,841, ranked by callers