MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / normalizeSymbolName

Function normalizeSymbolName

src/utils/tree-sitter.ts:195–200  ·  view source on GitHub ↗
(rawName: string)

Source from the content-addressed store, hash-verified

193}
194
195function normalizeSymbolName(rawName: string): string {
196 return rawName
197 .replace(/[\s\n\t]+/g, ' ')
198 .trim()
199 .replace(/^[:@#]+/, '');
200}
201
202function maybeGetNameNode(node: Node): Node | null {
203 for (const fieldName of NAME_FIELD_CANDIDATES) {

Callers 1

extractNodeNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected