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

Function flush

src/resolution/frameworks/angular-router.ts:817–830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

815 let i = 1;
816 let element = '';
817 const flush = (): boolean => {
818 const e = element.trim();
819 element = '';
820 if (e.length === 0) return true;
821 const literal = staticString(e);
822 if (literal !== null) {
823 parts.push(...literal.split('/').filter((seg) => seg.length > 0));
824 return true;
825 }
826 // A matrix-params object says nothing about the path.
827 if (e.startsWith('{')) return true;
828 parts.push(HOLE);
829 return true;
830 };
831 while (i < close) {
832 const ch = arr[i]!;
833 if (ch === '"' || ch === "'" || ch === '`') {

Callers 1

commandsHrefFunction · 0.70

Calls 2

staticStringFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected