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

Function joinPath

src/resolution/frameworks/java.ts:562–565  ·  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

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

Callers 1

extractFunction · 0.70

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected