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

Function fqcnRef

src/resolution/frameworks/drupal.ts:313–316  ·  view source on GitHub ↗

`Drupal\x\:Y`: the colon parks a failed reference under the class's short name, which is what a sync looks for.

(fqcn: string)

Source from the content-addressed store, hash-verified

311
312/** `Drupal\x\:Y`: the colon parks a failed reference under the class's short name, which is what a sync looks for. */
313function fqcnRef(fqcn: string): string {
314 const slash = fqcn.lastIndexOf('\\');
315 return `${FQCN_REF}${fqcn.slice(0, slash + 1)}:${fqcn.slice(slash + 1)}`;
316}
317
318const SERVICE_ID = /^(?:'([^']+)'|"([^"]+)"|([A-Za-z_\\][\w.\\-]*))\s*:\s*(.*)$/;
319

Callers 1

setClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected