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

Method insertBefore

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

Source from the content-addressed store, hash-verified

1127 }
1128
1129 insertBefore(node: INode, ref?: INode, useMutator = true) {
1130 const nodeInstance = ensureNode(node, this.document);
1131 this.children?.internalInsert(nodeInstance, ref ? ref.index : null, useMutator);
1132 }
1133
1134 insertAfter(node: any, ref?: INode, useMutator = true) {
1135 const nodeInstance = ensureNode(node, this.document);

Callers 1

replaceChildMethod · 0.95

Calls 2

ensureNodeFunction · 0.85
internalInsertMethod · 0.65

Tested by

no test coverage detected