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

Function elementType

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

The type of what a `For Each` over a value of type `t` binds: an array's or a .NET collection's element type.

(t: VbType)

Source from the content-addressed store, hash-verified

65
66/** The type of what a `For Each` over a value of type `t` binds: an array's or a .NET collection's element type. */
67function elementType(t: VbType): VbType | null {
68 if (t.array) return { ...t, array: false };
69 return t.args?.length === 1 && VB_ELEMENT_COLLECTIONS.test(t.name) && t.args[0]!.name !== '?' ? t.args[0]! : null;
70}
71
72/** VB.NET's built-in types, by keyword and by .NET name, keyed to the keyword. */
73const VB_BUILTIN_TYPES: ReadonlyMap<string, string> = new Map([

Callers 1

receiverTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected