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

Function moduleMemberIn

src/resolution/vbnet-receivers.ts:928–932  ·  view source on GitHub ↗

A member named `name` of a `Module` declared directly in namespace `ns`, which VB.NET reads through the namespace: `Assets.Logo`.

(ns: string[], name: string, ref: UnresolvedRef, context: ResolutionContext)

Source from the content-addressed store, hash-verified

926
927/** A member named `name` of a `Module` declared directly in namespace `ns`, which VB.NET reads through the namespace: `Assets.Logo`. */
928function moduleMemberIn(ns: string[], name: string, ref: UnresolvedRef, context: ResolutionContext): Node | undefined {
929 const key = ns.join('.');
930 return moduleMembersNamed(name, ref, context).find((n) =>
931 (VB_VALUE_KINDS.has(n.kind) || n.kind === 'method') && fullSegments(n, context).slice(0, -2).join('.') === key);
932}
933
934/** The call site's own file first, then its project's, the rest after, each in its given order. */
935export function preferVbProject(nodes: Node[], ref: UnresolvedRef, context: ResolutionContext): Node[] {

Callers 2

memberAtFunction · 0.85
matchVbMemberReadFunction · 0.85

Calls 4

moduleMembersNamedFunction · 0.85
fullSegmentsFunction · 0.85
hasMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected