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

Method lastSegment

src/extraction/razor-extractor.ts:117–120  ·  view source on GitHub ↗

Last `.`-segment (`App.ViewModels.RegisterModel` → `RegisterModel`).

(s: string)

Source from the content-addressed store, hash-verified

115
116 /** Last `.`-segment (`App.ViewModels.RegisterModel` → `RegisterModel`). */
117 private lastSegment(s: string): string {
118 const i = s.lastIndexOf('.');
119 return i >= 0 ? s.slice(i + 1) : s;
120 }
121
122 /**
123 * Split a type expression into the capitalized type names it contains — base

Callers 3

typeNamesMethod · 0.95
extractDirectivesMethod · 0.95
extractComponentTagsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected