MCPcopy Create free account

hub / github.com/colbymchenry/codegraph / functions

Functions3,841 in github.com/colbymchenry/codegraph

↓ 2 callersFunctionparseQuery
(raw: string)
src/search/query-parser.ts:66
↓ 2 callersFunctionparseStartupHandshakeTimeoutMs
(raw: string | undefined)
src/mcp/startup-handshake.ts:40
↓ 2 callersFunctionparseStringArg
First string literal anywhere in the args, or '' (covers `'x'`, `{ k: 'x' }`).
src/resolution/frameworks/nestjs.ts:467
↓ 2 callersFunctionparseStructFieldsRaw
(inner: string)
src/resolution/c-fnptr-synthesizer.ts:554
↓ 2 callersFunctionparseWatchdogTimeoutMs
( raw: string | undefined, fallback: number = DEFAULT_WATCHDOG_TIMEOUT_MS )
src/mcp/liveness-watchdog.ts:75
↓ 2 callersFunctionparse_struct_fields_raw
Port of `parseStructFieldsRaw` — structure only, classification TS-side.
codegraph-kernel/src/cfnptr.rs:1063
↓ 2 callersFunctionpathProximityFromDirs
* Compute directory proximity from a pre-split list of directory segments * (`filePath1` minus its filename) and a second file path. * Returns a sco
src/resolution/name-matcher.ts:2003
↓ 2 callersFunctionphpSimpleName
Short class name from a PHP reference: `\App\Events\Foo` / `App\Events::Foo` → `Foo`.
src/resolution/callback-synthesizer.ts:3355
↓ 2 callersFunctionplanBinaryRemoval
(p: RemoveBinaryProbes)
src/upgrade/remove-binary.ts:134
↓ 2 callersFunctionplanFrontload
(cwd: string, prompt: string)
src/directory.ts:543
↓ 2 callersFunctionpreParsedSource
* The preParse hoist (checklist §arch-1): languages with an offset-preserving * `preParse` hook (c/cpp macro blanking, csharp #237, metal #1121, cuda
src/extraction/kernel/index.ts:138
↓ 2 callersMethodprintConfig
* Print the MCP-server snippet a user would paste manually for this * target. Used by `codegraph install --print-config <id>` and by * the READM
src/installer/targets/types.ts:110
↓ 2 callersFunctionprintIndexResult
* Print indexing results using clack log methods
src/bin/codegraph.ts:373
↓ 2 callersFunctionprintPhaseDone
()
src/ui/shimmer-progress.ts:51
↓ 2 callersFunctionprocessHasWasmRuntimeFlags
( execArgv: readonly string[] = process.execArgv )
src/extraction/wasm-runtime-flags.ts:88
↓ 2 callersFunctionprojectHash
Short stable identifier for a project root — used in tmpdir/pipe names.
src/mcp/daemon-paths.ts:40
↓ 2 callersFunctionproviderSelectionFromExpr
* Read a provider-configuration address (`aws`, `aws.east`, `google-beta`) * from an expression. Anything more complex (conditionals, lookups) is *
src/extraction/languages/terraform.ts:644
↓ 2 callersMethodpushPhpUseRef
Convert a PHP FQN `Foo\Bar\Baz` to the stored `Foo\Bar::Baz` and emit an `imports` ref.
src/extraction/tree-sitter.ts:3563
↓ 2 callersMethodpushRef
(componentId: string, name: string, line: number, column: number)
src/extraction/razor-extractor.ts:136
↓ 2 callersMethodpush_ref
(&mut self, from_row: u32, name: &str, kind_code: u8, line: u32, column: u32)
codegraph-kernel/src/kotlin.rs:275
↓ 2 callersMethodpush_ref
(&mut self, from_row: u32, name: &str, kind_code: u8, line: u32, column: u32)
codegraph-kernel/src/swift.rs:303
↓ 2 callersMethodpush_ref_at
(&mut self, from_row: u32, name: &str, kind: &str, node: Node)
codegraph-kernel/src/lua.rs:176
↓ 2 callersMethodput_list
(&mut self, items: &[String])
codegraph-kernel/src/buffers.rs:166
↓ 2 callersFunctionreadDaemonLog
(root: string)
__tests__/mcp-daemon.test.ts:155
↓ 2 callersFunctionreadGitignorePatterns
* Read a `.gitignore` and return patterns safe to hand to the `ignore` matcher — * never throwing, even when the file isn't real gitignore text. Two
src/extraction/index.ts:244
↓ 2 callersFunctionreadGrammarWasmBytes
(languages: Language[])
src/extraction/grammars.ts:380
↓ 2 callersFunctionreadHelloLine
* Read one CRLF/LF-terminated JSON line from the socket, parse it as the * daemon hello, and return it. Bounded to {@link MAX_HELLO_LINE_BYTES} so a
src/mcp/proxy.ts:446
↓ 2 callersFunctionreadNodeSpanMatch
First capture of `re` across the node's line span, or null.
src/resolution/frameworks/terraform.ts:225
↓ 2 callersMethodrebuildNameSegmentVocab
* Rebuild the segment vocabulary from the current graph, batched and * yielding — the upgrade-heal path for indexes built before the vocab table
src/index.ts:1454
↓ 2 callersMethodreceiver_type_of
getReceiverType — extension functions: the last user_type BEFORE a `.` child; its FIRST type_identifier's text (qualified receivers take the FIRST seg
codegraph-kernel/src/kotlin.rs:537
↓ 2 callersMethodreceiver_type_of
extractCppReceiverType (languages/c-cpp.ts:86).
codegraph-kernel/src/ccpp/mod.rs:691
↓ 2 callersFunctionrecordBetaSignupChoice
( subscribed: boolean, deps: BetaSignupDeps = {}, )
src/installer/beta-signup.ts:59
↓ 2 callersFunctionrecordPath
(root: string)
src/mcp/daemon-registry.ts:45
↓ 2 callersFunctionrecord_is_struct
classifyClassNode (languages/csharp.ts): a record_declaration with an anonymous `struct` keyword child is a record struct.
codegraph-kernel/src/csharp.rs:260
↓ 2 callersMethodrecreate
* Rebuild the project's database from scratch and return a fresh, empty * instance — the "same result as a fresh init" semantics that `codegraph
src/index.ts:346
↓ 2 callersMethodrecycle
Tear down a worker that has hit its recycle threshold and replace it. Not a * crash, so it doesn't count against the budget.
src/extraction/parse-pool.ts:327
↓ 2 callersFunctionreferenceNameTail
* Last segment of a (possibly dotted/qualified) reference name — the part a * new symbol's plain node name could match: 'util.greet' → 'greet', * 'm
src/db/queries.ts:123
↓ 2 callersFunctionrefreshTargets
( targets: readonly AgentTarget[], location: Location, )
src/installer/index.ts:417
↓ 2 callersMethodregister
__tests__/fixtures/kernel-parity/torture.kt:140
↓ 2 callersFunctionregisterDaemon
(rec: DaemonRecord)
src/mcp/daemon-registry.ts:66
↓ 2 callersFunctionregisterStructLayout
(name: string, fields: FieldInfo[])
src/resolution/c-fnptr-synthesizer.ts:845
↓ 2 callersFunctionremoveDatabaseFiles
(dbPath: string)
src/db/index.ts:743
↓ 2 callersFunctionremoveGitSyncHook
( projectRoot: string, hooks: GitHookName[] = DEFAULT_SYNC_HOOKS, )
src/sync/git-hooks.ts:170
↓ 2 callersFunctionremoveHookCommandsMatching
* Remove stale codegraph auto-sync hooks from Claude `settings.json`. * * Surgical at the individual-command level: only entries matching * `isLega
src/installer/targets/claude.ts:322
↓ 2 callersFunctionremoveMcpEntryAt
* Surgically drop `mcp.codegraph` from one config file. Leaves sibling * servers, comments, and formatting untouched; drops an emptied `mcp` * wrapp
src/installer/targets/opencode.ts:233
↓ 2 callersFunctionremoveRulesEntry
* Remove the Cursor rules file on uninstall (and as a self-heal on * install — see issue #529). * * Unlike the shared CLAUDE.md / AGENTS.md files (
src/installer/targets/cursor.ts:208
↓ 2 callersFunctionremoveSteeringEntry
* Delete the steering file we own. If a user has hand-edited the file * out of recognition we still remove it — codegraph.md is a name we * claim, a
src/installer/targets/kiro.ts:158
↓ 2 callersFunctionremoveTomlTable
( fileContent: string, header: string, )
src/installer/targets/toml.ts:108
↓ 2 callersMethodrender
__tests__/fixtures/kernel-parity/torture.kt:69
↓ 2 callersFunctionrenderCodeGraphMcpBlock
()
src/installer/targets/hermes.ts:265
↓ 2 callersFunctionrenderCodeGraphMcpChild
()
src/installer/targets/hermes.ts:252
↓ 2 callersMethodreopenIfReplaced
* Heal a stale database handle in place. If `.codegraph/` was removed and * recreated at the SAME path while this instance held the DB open — a git
src/index.ts:214
↓ 2 callersMethodrequestParse
* Parse one file on the pool. Resolves with the extraction result, or REJECTS * if the parse times out or its worker crashes — the caller records t
src/extraction/parse-pool.ts:242
↓ 2 callersFunctionrequireModule
* If `callNode` is a `require(...)` call, return the module name; otherwise null. * Lua/Luau have no import statement — modules are loaded by calling
src/extraction/languages/lua.ts:28
↓ 2 callersFunctionreset_state
codegraph-kernel/grammars/lua/scanner.c:49
↓ 2 callersMethodresolveChainedCallsViaConformance
* Second resolution pass for chained static-factory / fluent calls whose * chained method is defined on a SUPERTYPE the receiver's type conforms to
src/resolution/index.ts:1264
↓ 2 callersFunctionresolveCppCallResultType
* Infer the class produced by a C++ call/construction expression, using return * types captured at extraction (#645). Handles, in order: * - `make
src/resolution/name-matcher.ts:807
↓ 2 callersFunctionresolveDaemonRoot
* Resolve the project root the daemon machinery should key on. Returns * `null` when no `.codegraph/` is reachable from the candidate path — in * th
src/mcp/index.ts:119
↓ 2 callersMethodresolveDeferredThisMemberRefs
* Second pass for `this.<member>` refs whose member wasn't on the enclosing * class itself (#808): once implements/extends edges exist, walk the
src/resolution/index.ts:2304
↓ 2 callersFunctionresolveDeps
(deps: UpdateCheckDeps = {})
src/upgrade/update-check.ts:70
↓ 2 callersFunctionresolveFn
(name: string, preferFile?: string)
src/resolution/c-fnptr-synthesizer.ts:879
↓ 2 callersFunctionresolveInclude
(includer: string, inc: string)
src/resolution/c-fnptr-synthesizer.ts:511
↓ 2 callersFunctionresolveJvmImport
( ref: UnresolvedRef, context: ResolutionContext )
src/resolution/import-resolver.ts:1242
↓ 2 callersFunctionresolveParsePoolSize
(envVal: string | undefined, cpuCount: number)
src/extraction/parse-pool.ts:112
↓ 2 callersFunctionresolveParseTimeoutMs
(envVal: string | undefined)
src/extraction/parse-pool.ts:104
↓ 2 callersFunctionresolvePoolSize
(envVal: string | undefined, cpuCount: number)
src/mcp/query-pool.ts:111
↓ 2 callersMethodresolvePoolSize
* Pool size from CPU headroom, memory headroom, and the explicit override. * Pure — every input injected — so the whole matrix is unit-testable.
src/resolution/resolver-pool.ts:86
↓ 2 callersFunctionresolveWasmPath
Absolute path of a language's grammar WASM (vendored or tree-sitter-wasms).
src/extraction/grammars.ts:344
↓ 2 callersFunctionresolveWorkspaceImport
( importPath: string, ws: WorkspacePackages )
src/resolution/workspace-packages.ts:207
↓ 2 callersFunctionresolve_field_body
typescriptExtractor.resolveBody / javascriptExtractor.resolveBody: the body of a function-valued class field, nested in the arrow / HOF-wrapped arrow.
codegraph-kernel/src/tsjs/mod.rs:871
↓ 2 callersFunctionrestoreDirectiveLines
* Restore preprocessor-directive lines to their original bytes after the * blanking passes ran. The token-level blanks match on shape, not context, s
src/extraction/languages/c-cpp.ts:762
↓ 2 callersFunctionresurrectRefFromDroppedEdge
* Resurrect a resolution edge that is about to be dropped (its target symbol * was removed, renamed, or its whole file deleted) as the ORIGINAL unres
src/extraction/index.ts:1400
↓ 2 callersMethodretryInitIfNeeded
* Lazy default-project resolution. Three layers: * 1. await the in-flight init kicked off from `handleInitialize` (if any); * 2. if still un
src/mcp/session.ts:305
↓ 2 callersMethodreturn_type_of
extractKotlinReturnType — positional: the first user_type/nullable_type AFTER function_value_parameters; function_body/type_constraints first → None;
codegraph-kernel/src/kotlin.rs:495
↓ 2 callersMethodreturn_type_of
extractSwiftReturnType — POSITIONAL: first user_type/optional_type after the name simple_identifier, before function_body; last dotted segment; generi
codegraph-kernel/src/swift.rs:505
↓ 2 callersMethodreturn_type_of
extractGoReturnType (languages/go.ts).
codegraph-kernel/src/go.rs:348
↓ 2 callersMethodreturn_type_of
extractDartReturnType (dart.ts:80-92).
codegraph-kernel/src/dart.rs:428
↓ 2 callersMethodreturn_type_of
extractCsharpReturnType — reads the `returns` field; feeds the #645/#608 chained-call resolution. Constructors have no `returns`.
codegraph-kernel/src/csharp.rs:468
↓ 2 callersMethodreturn_type_of
extractPhpReturnType — `self`/`static` collapse to the `'self'` marker (#608 chained-call fuel); primitives/unions → None.
codegraph-kernel/src/php.rs:448
↓ 2 callersMethodreturn_type_of
extractCppReturnType: the `type` field, normalized.
codegraph-kernel/src/ccpp/mod.rs:708
↓ 2 callersFunctionrewriteCPrefixedDeclMacroInitializers
(source: string)
src/extraction/languages/c-cpp.ts:1422
↓ 2 callersFunctionrmrf
(p)
scripts/npm-shim.js:241
↓ 2 callersFunctionrulesFile
()
__tests__/installer-targets.test.ts:1504
↓ 2 callersFunctionrulesPath
* Cursor "rules" file. Only meaningful for the project-local * location — Cursor reads `.cursor/rules/*.mdc` from the workspace * root. There is no
src/installer/targets/cursor.ts:66
↓ 2 callersFunctionrun
()
__tests__/evaluation/runner.ts:33
↓ 2 callersFunctionrunDaemonPicker
(deps: PickerDeps)
src/mcp/daemon-manager.ts:83
↓ 2 callersFunctionrunInstallerWithOptions
(opts: RunInstallerOptions)
src/installer/index.ts:85
↓ 2 callersFunctionrunMigrations
(db: SqliteDatabase, fromVersion: number)
src/db/migrations.ts:182
↓ 2 callersMethodrunPostExtract
* Run each framework resolver's cross-file finalization pass and persist * the returned node updates. Idempotent — safe to call after every indexAl
src/resolution/index.ts:322
↓ 2 callersFunctionscalaBaseTypeName
* Resolve a Scala type node to its base type NAME for name-matching — unwrapping * `generic_type` (`Monoid[Int]` → `Monoid`), taking the last segment
src/extraction/tree-sitter.ts:201
↓ 2 callersMethodscala_base_type_name
scalaBaseTypeName (tree-sitter.ts:201-224).
codegraph-kernel/src/scala.rs:473
↓ 2 callersFunctionscanDirectoryAsync
( rootDir: string, onProgress?: (current: number, file: string) => void )
src/extraction/index.ts:1217
↓ 2 callersFunctionscanDirectoryWalk
* Filesystem walk fallback for non-git projects.
src/extraction/index.ts:1248
↓ 2 callersFunctionscanDynamicDispatch
(body: string, language: string, fileStartLine: number)
src/mcp/dynamic-boundaries.ts:270
↓ 2 callersFunctionscanIncludes
(file: string)
src/resolution/c-fnptr-synthesizer.ts:605
↓ 2 callersFunctionscan_block_content
codegraph-kernel/grammars/lua/scanner.c:104
↓ 2 callersFunctionscan_block_end
codegraph-kernel/grammars/lua/scanner.c:92
↓ 2 callersFunctionscan_block_start
codegraph-kernel/grammars/lua/scanner.c:79
↓ 2 callersFunctionscan_file
Run the full extraction sweep for one file. `raw` is the file text exactly as the TS side read it; `structs` are the file's struct-node extents.
codegraph-kernel/src/cfnptr.rs:1153
↓ 2 callersFunctionscan_for_word
codegraph-kernel/grammars/kotlin/scanner.c:239
← previousnext →1,101–1,200 of 3,841, ranked by callers