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

Function joinPath

src/resolution/frameworks/java.ts:564–567  ·  view source on GitHub ↗

Join a class-level prefix and a method sub-path into one normalized `/path`.

(prefix: string, sub: string)

Source from the content-addressed store, hash-verified

562
563/** Join a class-level prefix and a method sub-path into one normalized `/path`. */
564function joinPath(prefix: string, sub: string): string {
565 const parts = [prefix, sub].map((p) => p.replace(/^\/+|\/+$/g, '')).filter(Boolean);
566 return '/' + parts.join('/');
567}
568
569/** Java modifiers a method may carry before its type parameters and return type. */
570const JAVA_METHOD_MODIFIERS = new Set([

Callers 1

extractFunction · 0.70

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected