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

Method lastSegment

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

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

(s: string)

Source from the content-addressed store, hash-verified

124
125 /** Last `.`-segment (`App.ViewModels.RegisterModel` → `RegisterModel`). */
126 private lastSegment(s: string): string {
127 const i = s.lastIndexOf('.');
128 return i >= 0 ? s.slice(i + 1) : s;
129 }
130
131 /**
132 * 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