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

Function valueMemberType

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

* The type a value member — a field, a property, or a function read without * parentheses — has, as written at it; a type parameter of its class is what * `args` gives it where it is reached from.

(member: Node, context: ResolutionContext, args: ReadonlyMap<string, VbType> = new Map())

Source from the content-addressed store, hash-verified

1017 * `args` gives it where it is reached from.
1018 */
1019function valueMemberType(member: Node, context: ResolutionContext, args: ReadonlyMap<string, VbType> = new Map()): VbType | null {
1020 const type = sited(member.kind === 'method' ? declaredReturnType(member, context) : memberDeclaredType(member, context),
1021 member.filePath, member.startLine);
1022 const given = type ? substitute(type, args) : null;
1023 return given !== type ? given : resolveTypeParameter(type, member, context);
1024}
1025
1026/**
1027 * The member a receiver-less `name` reads where a call is: a field, property

Callers 4

memberTypeFunction · 0.85
callResultTypeFunction · 0.85
memberAtFunction · 0.85
isOutsideNamesakeFunction · 0.85

Calls 5

sitedFunction · 0.85
declaredReturnTypeFunction · 0.85
memberDeclaredTypeFunction · 0.85
substituteFunction · 0.85
resolveTypeParameterFunction · 0.85

Tested by

no test coverage detected