MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / internalRemoveNode

Method internalRemoveNode

packages/core/src/document/document.ts:250–260  ·  view source on GitHub ↗
(node: Node, useMutator = false)

Source from the content-addressed store, hash-verified

248
249 @action
250 private internalRemoveNode(node: Node, useMutator = false) {
251 if (!this.nodes.has(node)) {
252 return
253 }
254
255 if (node.isRoot) {
256 this.rootNode = null
257 }
258
259 node.remove(true, useMutator)
260 }
261
262 @action
263 unlinkNode(node: Node) {

Callers 2

importMethod · 0.95
removeNodeMethod · 0.95

Calls 2

hasMethod · 0.65
removeMethod · 0.45

Tested by

no test coverage detected