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

Method isLinked

packages/core/src/document/node/node.ts:498–509  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

496 */
497 @computed
498 get isLinked() {
499 let current: Node | null = this
500
501 while (current) {
502 if (current.isRoot) {
503 return true
504 }
505 current = current.parent
506 }
507
508 return false
509 }
510
511 /**
512 * insert a node at a specific position or a reference node

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected