MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / insertChildren

Function insertChildren

packages/designer/src/document/node/node.ts:1506–1522  ·  view source on GitHub ↗
(
  container: INode,
  nodes: INode[] | IPublicTypeNodeData[],
  at?: number | null,
  copy?: boolean,
)

Source from the content-addressed store, hash-verified

1504}
1505
1506export function insertChildren(
1507 container: INode,
1508 nodes: INode[] | IPublicTypeNodeData[],
1509 at?: number | null,
1510 copy?: boolean,
1511): INode[] {
1512 let index = at;
1513 let node: any;
1514 const results: INode[] = [];
1515 // eslint-disable-next-line no-cond-assign
1516 while ((node = nodes.pop())) {
1517 node = insertChild(container, node, index, copy);
1518 results.push(node);
1519 index = node.index;
1520 }
1521 return results;
1522}

Callers 3

insertNodesMethod · 0.90
wrapWithMethod · 0.90
constructorMethod · 0.90

Calls 2

pushMethod · 0.80
insertChildFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…