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

Method objectKeyName

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

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

(key: SyntaxNode)

Source from the content-addressed store, hash-verified

3775
3776 /** Property-key text with surrounding quotes stripped (`'foo'` → `foo`). */
3777 private objectKeyName(key: SyntaxNode): string {
3778 return getNodeText(key, this.source).replace(/^['"`]|['"`]$/g, '');
3779 }
3780
3781 /**
3782 * 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