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

Function argsAt

__tests__/branch-guards.test.ts:384–388  ·  view source on GitHub ↗
(src: string, needle: string, language: 'tsx' | 'typescript' | 'swift' = 'tsx')

Source from the content-addressed store, hash-verified

382// =============================================================================
383
384async function argsAt(src: string, needle: string, language: 'tsx' | 'typescript' | 'swift' = 'tsx') {
385 const line = lineOf(src, needle);
386 const column = src.split('\n')[line - 1]!.indexOf(needle);
387 return callArgumentsInSource(src, language, line, column);
388}
389
390describe('call arguments', () => {
391 const login = `

Callers 1

Calls 2

callArgumentsInSourceFunction · 0.90
lineOfFunction · 0.70

Tested by

no test coverage detected