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

Function extractCSharpTailIdent

src/resolution/frameworks/csharp.ts:402–406  ·  view source on GitHub ↗

Extract last identifier from an expression like `MyService.Handler` or `Handler`.

(expr: string)

Source from the content-addressed store, hash-verified

400
401/** Extract last identifier from an expression like `MyService.Handler` or `Handler`. */
402function extractCSharpTailIdent(expr: string): string | null {
403 const cleaned = expr.trim().replace(/\s+/g, '');
404 const m = cleaned.match(/(?:\.|^)([A-Za-z_][A-Za-z0-9_]*)$/);
405 return m ? m[1]! : null;
406}
407
408// Directory patterns
409const CONTROLLER_DIRS = ['/Controllers/'];

Callers 1

extractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected