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

Function toKeyOf

src/resolution/frameworks/tanstack-router.ts:352–357  ·  view source on GitHub ↗

The `to:` value of an object destination, or null when it has none or it is computed.

(args: string)

Source from the content-addressed store, hash-verified

350
351/** The `to:` value of an object destination, or null when it has none or it is computed. */
352function toKeyOf(args: string): string | null {
353 const end = matchBracket(args, 0);
354 if (end < 0) return null;
355 const field = readFields(args, 0, end).get('to');
356 return field ? readStringAt(field.text.trimStart(), 0) : null;
357}
358
359// =============================================================================
360// The resolver

Callers 1

tanstackDestinationFunction · 0.85

Calls 4

matchBracketFunction · 0.90
readFieldsFunction · 0.90
readStringAtFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected