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

Method objectKeyName

src/extraction/tree-sitter.ts:3608–3610  ·  view source on GitHub ↗

Property-key text with surrounding quotes stripped (`'foo'` → `foo`).

(key: SyntaxNode)

Source from the content-addressed store, hash-verified

3606
3607 /** Property-key text with surrounding quotes stripped (`'foo'` → `foo`). */
3608 private objectKeyName(key: SyntaxNode): string {
3609 return getNodeText(key, this.source).replace(/^['"`]|['"`]$/g, '');
3610 }
3611
3612 /**
3613 * Given a `call_expression` initializer (`create((set, get) => ({...}))`),

Callers 4

ownedMemberFunctionMethod · 0.95
extractRtkEndpointsMethod · 0.95

Calls 1

getNodeTextFunction · 0.90

Tested by

no test coverage detected