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

Function typeKey

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

A type's key for comparing two of them: the built-in keyword or the lowercased name, `[]` for an array.

(t: VbType)

Source from the content-addressed store, hash-verified

103
104/** A type's key for comparing two of them: the built-in keyword or the lowercased name, `[]` for an array. */
105function typeKey(t: VbType): string {
106 const lower = t.name.toLowerCase();
107 return `${VB_BUILTIN_TYPES.get(lower) ?? lower}${t.array ? '[]' : ''}`;
108}
109
110function isBuiltin(t: VbType): boolean {
111 return !t.array && VB_BUILTIN_TYPES.has(t.name.toLowerCase());

Callers 5

bclInstanceMethodsFunction · 0.85
mayExtendFunction · 0.85
extensionForFunction · 0.85
matchVbTypedCallFunction · 0.85
valueReceiverFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected