MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / inRustScope

Function inRustScope

src/resolution/frameworks/rust.ts:19–22  ·  view source on GitHub ↗

* Whether the item a name heuristic found is one the reference can name: * `Context<'_>` under `use std::task::{Context, Poll}` is std's, not tokio's * `runtime::context::Context` (642 of them).

(id: string, ref: UnresolvedRef, context: ResolutionContext)

Source from the content-addressed store, hash-verified

17 * `runtime::context::Context` (642 of them).
18 */
19function inRustScope(id: string, ref: UnresolvedRef, context: ResolutionContext): boolean {
20 const node = context.getNodeById?.(id);
21 return !node || isRustNameInScope(node, ref, context);
22}
23
24export const rustResolver: FrameworkResolver = {
25 name: 'rust',

Callers 1

resolveFunction · 0.85

Calls 1

getNodeByIdMethod · 0.65

Tested by

no test coverage detected