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

Function extractCSharpTailIdent

src/resolution/frameworks/csharp.ts:448–452  ·  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

446
447/** Extract last identifier from an expression like `MyService.Handler` or `Handler`. */
448function extractCSharpTailIdent(expr: string): string | null {
449 const cleaned = expr.trim().replace(/\s+/g, '');
450 const m = cleaned.match(/(?:\.|^)([A-Za-z_][A-Za-z0-9_]*)$/);
451 return m ? m[1]! : null;
452}
453
454// Directory patterns
455const CONTROLLER_DIRS = ['/Controllers/'];

Callers 1

extractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected