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

Method insertAfter

packages/designer/src/document/node/node.ts:1134–1137  ·  view source on GitHub ↗
(node: any, ref?: INode, useMutator = true)

Source from the content-addressed store, hash-verified

1132 }
1133
1134 insertAfter(node: any, ref?: INode, useMutator = true) {
1135 const nodeInstance = ensureNode(node, this.document);
1136 this.children?.internalInsert(nodeInstance, ref ? (ref.index || 0) + 1 : null, useMutator);
1137 }
1138
1139 getParent() {
1140 return this.parent;

Callers 1

insertMethod · 0.95

Calls 2

ensureNodeFunction · 0.85
internalInsertMethod · 0.65

Tested by

no test coverage detected