MCPcopy Create free account
hub / github.com/SplootCode/splootcode / getRightChildOf

Method getRightChildOf

packages/core/src/language/childset.ts:197–203  ·  view source on GitHub ↗
(node: SplootNode)

Source from the content-addressed store, hash-verified

195 }
196
197 getRightChildOf(node: SplootNode): SplootNode {
198 const idx = this.children.indexOf(node)
199 if (idx + 1 >= this.children.length) {
200 return null
201 }
202 return this.children[idx + 1]
203 }
204
205 isChild(node: SplootNode): boolean {
206 return this.children.indexOf(node) != -1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected