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
Function
fnptr_paren_tail
`\(\s*(?:\w+\s+)*\*\s*(\w+)\s*\)\s*\(` matched at `open` (which must hold `(`). Returns (name_range, end_after_second_paren). The `(?:\w+\s+)*` group
codegraph-kernel/src/cfnptr.rs:305
↓ 2 callers
Function
formatDuration
* Format duration in milliseconds to human readable
src/bin/codegraph.ts:281
↓ 2 callers
Method
formatNodeList
(nodes: Node[], title: string, labels?: Map<string, string>)
src/mcp/tools.ts:4587
↓ 2 callers
Function
formatUpdateNotice
(current: string, latest: string)
src/upgrade/update-check.ts:134
↓ 2 callers
Function
formatUptime
(ms: number)
src/mcp/daemon-manager.ts:23
↓ 2 callers
Method
functionReturnedObject
* The object literal a function expression returns — either the `=> ({...})` * arrow form (a parenthesized_expression wrapping an object) or a *
src/extraction/tree-sitter.ts:2222
↓ 2 callers
Method
function_returned_object
(&self, fn_node: Node<'t>)
codegraph-kernel/src/tsjs/extractors.rs:500
↓ 2 callers
Method
gateLanguage
(result: ResolvedRef | null, ref: UnresolvedRef)
src/resolution/index.ts:2406
↓ 2 callers
Method
getAdjacentEdges
* Get adjacent edges based on direction
src/graph/traversal.ts:235
↓ 2 callers
Method
getAllNodeNames
* Get all distinct node names (lightweight — just name strings for pre-filtering)
src/db/queries.ts:2149
↓ 2 callers
Method
getAllNodes
* Get all nodes in the database
src/db/queries.ts:1068
↓ 2 callers
Method
getAncestors
* Get the containment hierarchy for a node (ancestors) * * @param nodeId - ID of the node * @returns Array of ancestor nodes from immediate p
src/graph/traversal.ts:682
↓ 2 callers
Method
getBackend
* Active SQLite backend for this project's connection (`node-sqlite` — Node's * built-in real-SQLite module). Surfaced via `codegraph status` and t
src/index.ts:1231
↓ 2 callers
Method
getCallGraph
* Get the call graph for a function * * Returns both callers (functions that call this function) and * callees (functions called by this func
src/index.ts:1581
↓ 2 callers
Method
getChangedFiles
* Get files that have changed since last index
src/index.ts:1074
↓ 2 callers
Method
getChildren
* Get immediate children of a node * * @param nodeId - ID of the node * @returns Array of child nodes
src/graph/traversal.ts:720
↓ 2 callers
Method
getCode
* Get the source code for a node * * Reads the file and extracts the code between startLine and endLine. * * @param nodeId - ID of the nod
src/index.ts:1750
↓ 2 callers
Method
getContext
* Get the context for a node (ancestors, children, references) * * Returns comprehensive context about a node including its containment * hie
src/index.ts:1553
↓ 2 callers
Method
getCrossFileIncomingEdgesWithTarget
* Cross-file edges whose TARGET is a node in `filePath` and whose SOURCE is a * node in a *different* file, paired with the target node's (name, ki
src/db/queries.ts:1835
↓ 2 callers
Method
getDbFileSizeBytes
Size of the main DB file in bytes (0 for in-memory/unknown) — the WAL * valve scales its fold caps with it (resolveWalValveMb).
src/db/index.ts:444
↓ 2 callers
Method
getDegradedReason
The reason live watching degraded, or null if it is healthy.
src/sync/watcher.ts:702
↓ 2 callers
Method
getDistinctFileLanguages
* Distinct languages present in the files table. One indexed aggregate — * lets the dynamic-edge synthesizers skip passes for languages the project
src/db/queries.ts:1099
↓ 2 callers
Function
getExploreOutputBudget
(fileCount: number)
src/mcp/tools.ts:192
↓ 2 callers
Method
getFile
* Get a file record by path
src/index.ts:1528
↓ 2 callers
Method
getFileDependents
* Get dependents of a file * * @param filePath - Path to the file * @returns Array of file paths that depend on this file
src/index.ts:1698
↓ 2 callers
Method
getFileDependents
* Get dependents of a file * * Returns all files that import from this file. * * @param filePath - Path to the file * @returns Array of
src/graph/queries.ts:134
↓ 2 callers
Function
getGitVisibleFiles
* Get all files visible to git (tracked + untracked but not ignored). * Respects .gitignore at all levels (root, subdirectories) and descends into *
src/extraction/index.ts:1018
↓ 2 callers
Method
getImpactRadius
* Calculate the impact radius of a node * * Returns all nodes that could be affected by changes to this node. * * @param nodeId - ID of th
src/graph/traversal.ts:520
↓ 2 callers
Method
getIndexState
* Completeness of the last full index run. `'complete'` is the only good * state. `'indexing'` after the fact means a run was killed mid-index (OOM
src/index.ts:1096
↓ 2 callers
Method
getJournalMode
* The journal mode actually in effect (e.g. 'wal', 'delete'). * * SQLite silently keeps the prior mode if WAL can't be enabled — e.g. on * fi
src/db/index.ts:388
↓ 2 callers
Method
getLastIndexedAt
* Most recent index timestamp (ms since epoch) across all tracked files, or * null when nothing is indexed yet. Lets library consumers check index
src/index.ts:1083
↓ 2 callers
Method
getMetadata
* Get a metadata value by key
src/db/queries.ts:2476
↓ 2 callers
Method
getNodesByLowerName
Get nodes by lowercase name (O(1) lookup for fuzzy matching)
src/resolution/types.ts:115
↓ 2 callers
Method
getNodesByQualifiedNameExact
* Get nodes by exact qualified name match (uses idx_nodes_qualified_name index)
src/db/queries.ts:1132
↓ 2 callers
Function
getOpencodeServerEntry
()
src/installer/targets/opencode.ts:118
↓ 2 callers
Method
getPendingFiles
* Files seen by the file watcher since the last successful sync — * the per-file "stale" signal MCP tools attach to responses so an agent * can
src/index.ts:1058
↓ 2 callers
Method
getPendingFiles
* Snapshot of files seen by the watcher since the last successful sync. * * Used by MCP tool responses to mark stale results without blocking on
src/sync/watcher.ts:962
↓ 2 callers
Method
getProjectAliases
* Project import-path aliases (tsconfig/jsconfig `paths`). Returns * `null` when the project doesn't define any. Cached per resolver * instance
src/resolution/types.ts:142
↓ 2 callers
Method
getRelatedFiles
* Get unique files from a subgraph
src/context/index.ts:1300
↓ 2 callers
Function
getSection
(content: string, sectionName: string)
src/resolution/frameworks/cargo-workspace.ts:17
↓ 2 callers
Method
getSegmentCoOccurrence
* Names whose segments cover at least `minWords` distinct PROMPT WORDS — * the co-occurrence probe behind the prompt hook's medium tier: the words
src/db/queries.ts:706
↓ 2 callers
Method
getSegmentMatches
* Graph-derived prompt matching for the front-load hook's MEDIUM tier: * which indexed symbols do these prose words name? "state machine des * c
src/index.ts:1321
↓ 2 callers
Function
getStaticTools
()
src/mcp/tools.ts:784
↓ 2 callers
Function
getStemVariants
(term: string)
src/search/query-utils.ts:85
↓ 2 callers
Function
getSupportedLanguages
()
src/extraction/grammars.ts:569
↓ 2 callers
Method
getTypeHierarchy
* Get the type hierarchy for a class/interface * * Returns both ancestors (types this extends/implements) and * descendants (types that exten
src/index.ts:1594
↓ 2 callers
Function
getVersion
()
src/installer/index.ts:52
↓ 2 callers
Method
getWatcherDegradedReason
The reason live watching degraded, or null if it is healthy (#876).
src/index.ts:1042
↓ 2 callers
Function
git
(cwd: string, ...args: string[])
__tests__/extraction.test.ts:6964
↓ 2 callers
Function
git
(cwd: string, ...args: string[])
__tests__/multi-repo-workspace.test.ts:32
↓ 2 callers
Function
gitlinkEmbeddedRepoSkipped
* Whether an embedded repo found as a tracked gitlink (mode 160000, #1031/#1033) * must be SKIPPED rather than indexed. A gitlink is tracked, so `.gi
src/extraction/index.ts:728
↓ 2 callers
Function
greetDef
()
__tests__/sync.test.ts:548
↓ 2 callers
Function
has
(...ls: string[])
src/resolution/callback-synthesizer.ts:3664
↓ 2 callers
Method
hasAnyPossibleMatch
* Check if a reference name has any possible match in the codebase. * Uses the pre-built knownNames set to skip expensive resolution * for names
src/resolution/index.ts:766
↓ 2 callers
Function
hasBetaSignupChoice
(deps: BetaSignupDeps = {})
src/installer/beta-signup.ts:49
↓ 2 callers
Method
healSegmentVocabIfEmpty
* One-shot upgrade heal for callers that open the graph WITHOUT syncing — * concretely the prompt hook, whose MEDIUM tier reads the segment * vo
src/index.ts:1426
↓ 2 callers
Method
helper
(Object arg)
__tests__/fixtures/kernel-parity/Torture.java:52
↓ 2 callers
Function
hermesHome
()
src/installer/targets/hermes.ts:105
↓ 2 callers
Function
importedFqnOf
* When several classes share a simple type name, the caller file's import of * that type is the only signal that names WHICH one (#314). Returns the
src/resolution/name-matcher.ts:1028
↓ 2 callers
Function
includeStaticRoots
* The static directory prefix of each `include` pattern — the literal leading * path up to the first glob segment — trailing-slashed, used to (a) wal
src/extraction/index.ts:368
↓ 2 callers
Method
indexFile
* Index a single file
src/extraction/index.ts:2146
↓ 2 callers
Method
indexFiles
* Index specific files * * Uses a mutex to prevent concurrent indexing operations.
src/index.ts:722
↓ 2 callers
Function
inferCppReceiverType
( receiverName: string, ref: UnresolvedRef, context: ResolutionContext, depth = 0, )
src/resolution/name-matcher.ts:675
↓ 2 callers
Function
inferLocalReceiverType
* Infer a receiver's type from its local declaration/initializer in the * enclosing function body. Language-dispatched; returns null for languages *
src/resolution/name-matcher.ts:1360
↓ 2 callers
Method
initialize
* Initialize the resolver (detect frameworks, etc.)
src/resolution/index.ts:309
↓ 2 callers
Method
inner_signature
dartInnerSignature (dart.ts:9-17).
codegraph-kernel/src/dart.rs:368
↓ 2 callers
Method
insertNameSegments
Write `name`'s segments into name_segment_vocab (idempotent).
src/db/queries.ts:413
↓ 2 callers
Method
insertNameSegmentsBatch
Insert segments for a batch of names in one transaction (vocab heal path).
src/db/queries.ts:680
↓ 2 callers
Method
inside_class_like
(&self)
codegraph-kernel/src/kotlin.rs:268
↓ 2 callers
Method
inside_class_like
(&self)
codegraph-kernel/src/java.rs:265
↓ 2 callers
Method
inside_class_like
(&self)
codegraph-kernel/src/go.rs:195
↓ 2 callers
Method
inside_class_like
isInsideClassLikeNode — stack TOP only, file doesn't count.
codegraph-kernel/src/rustlang.rs:217
↓ 2 callers
Method
inside_class_like
(&self)
codegraph-kernel/src/csharp.rs:282
↓ 2 callers
Method
inside_class_like
(&self)
codegraph-kernel/src/ccpp/mod.rs:455
↓ 2 callers
Method
inside_class_like
isInsideClassLikeNode.
codegraph-kernel/src/tsjs/mod.rs:287
↓ 2 callers
Function
installCommandSupervision
(label: string, watchdog: WatchdogOptions = {})
src/bin/command-supervision.ts:54
↓ 2 callers
Function
installFatalHandlers
(deps: FatalHandlerDeps = {})
src/bin/fatal-handler.ts:79
↓ 2 callers
Function
installGitSyncHook
( projectRoot: string, hooks: GitHookName[] = DEFAULT_SYNC_HOOKS, )
src/sync/git-hooks.ts:125
↓ 2 callers
Function
isAlive
(pid: number)
__tests__/index-orphan-watchdog.test.ts:24
↓ 2 callers
Function
isAlive
(pid: number)
__tests__/mcp-ppid-watchdog.test.ts:33
↓ 2 callers
Method
isAlwaysIgnored
Our own dirs are always ignored, regardless of .gitignore.
src/sync/watcher.ts:638
↓ 2 callers
Function
isCobolCopybookRef
(ref: UnresolvedRef)
src/resolution/import-resolver.ts:729
↓ 2 callers
Function
isConfigLeafNode
(node: { kind: string; language?: string })
src/utils.ts:64
↓ 2 callers
Method
isDegraded
* Whether live watching has degraded permanently (until the next start()). * Distinct from {@link isActive}: a degraded watcher is inactive, but an
src/sync/watcher.ts:697
↓ 2 callers
Function
isDrupalHookFile
(filePath: string)
src/resolution/frameworks/drupal.ts:207
↓ 2 callers
Function
isErlangAppFile
(filePath: string)
src/extraction/grammars.ts:213
↓ 2 callers
Function
isExpoModuleSource
* Detect whether a file is plausibly an Expo Module — looking for both * the `: Module` inheritance and at least one declarative `Function(...)` * /
src/resolution/frameworks/expo-modules.ts:88
↓ 2 callers
Method
isIndexStale
* True when the on-disk index was built by an engine whose extraction is * older than the one now running — i.e. a re-index would add data a migrat
src/index.ts:1123
↓ 2 callers
Method
isInitialized
* Check if a directory has been initialized as a CodeGraph project
src/index.ts:406
↓ 2 callers
Method
isInsideClassLikeNode
* Check if the current node stack indicates we are inside a class-like node * (class, struct, interface, trait). File nodes do not count as class-l
src/extraction/tree-sitter.ts:1486
↓ 2 callers
Function
isLombok
(n: Row | undefined)
__tests__/lombok.test.ts:48
↓ 2 callers
Function
isNixPathImportRef
(ref: UnresolvedRef)
src/resolution/import-resolver.ts:51
↓ 2 callers
Function
isObjcExposed
(sourceSlice: string)
src/resolution/swift-objc-bridge.ts:273
↓ 2 callers
Function
isProcessAlive
(pid: number)
src/mcp/daemon.ts:666
↓ 2 callers
Method
isReplacedOnDisk
* True when the DB file at our path has been REPLACED on disk since we opened * it — a different inode now lives at the same path, so the fd we sti
src/db/index.ts:681
↓ 2 callers
Function
isShopifyLiquidJson
(filePath: string)
src/extraction/grammars.ts:199
↓ 2 callers
Function
isStaticProjectPath
(value: string)
src/extraction/languages/nix.ts:31
↓ 2 callers
Function
isSyncHookInstalled
( projectRoot: string, hooks: GitHookName[] = DEFAULT_SYNC_HOOKS, )
src/sync/git-hooks.ts:202
↓ 2 callers
Function
isTopLevel
(level: number)
src/extraction/languages/cobol.ts:193
↓ 2 callers
Method
isVbnetConstructorShapedArrayCreation
* VB.NET `New Invoice(1)` is syntactically ambiguous between constructing * Invoice with an argument and allocating an Invoice array of bound 1; th
src/extraction/tree-sitter.ts:4600
← previous
next →
901–1,000 of 3,841, ranked by callers