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

Function flush

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

Source from the content-addressed store, hash-verified

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

Callers 1

commandsHrefFunction · 0.70

Calls 2

staticStringFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected