MCPcopy Index your code
hub / github.com/angular/angular / createNewSegmentChildren

Function createNewSegmentChildren

packages/router/src/create_url_tree.ts:546–559  ·  view source on GitHub ↗
(outlets: {[name: string]: readonly unknown[] | string})

Source from the content-addressed store, hash-verified

544}
545
546function createNewSegmentChildren(outlets: {[name: string]: readonly unknown[] | string}): {
547 [outlet: string]: UrlSegmentGroup;
548} {
549 const children: {[outlet: string]: UrlSegmentGroup} = {};
550 Object.entries(outlets).forEach(([outlet, commands]) => {
551 if (typeof commands === 'string') {
552 commands = [commands];
553 }
554 if (commands !== null) {
555 children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);
556 }
557 });
558 return children;
559}
560
561function stringify(params: {[key: string]: any}): {[key: string]: string} {
562 const res: {[key: string]: string} = {};

Callers 1

createNewSegmentGroupFunction · 0.85

Calls 3

createNewSegmentGroupFunction · 0.85
forEachMethod · 0.45
entriesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…