MCPcopy Create free account
hub / github.com/Effect-TS/effect / addToStack

Method addToStack

packages/effect/src/internal/trie.ts:118–129  ·  view source on GitHub ↗
(node: Node<V>, keyString: string)

Source from the content-addressed store, hash-verified

116 }
117
118 addToStack(node: Node<V>, keyString: string) {
119 if (node.right !== undefined) {
120 this.stack.push([node.right, keyString, false])
121 }
122 if (node.mid !== undefined) {
123 this.stack.push([node.mid, keyString + node.key, false])
124 }
125 this.stack.push([node, keyString, true])
126 if (node.left !== undefined) {
127 this.stack.push([node.left, keyString, false])
128 }
129 }
130
131 [Symbol.iterator](): IterableIterator<T> {
132 return new TrieIterator(this.trie, this.f, this.filter)

Callers 1

nextMethod · 0.95

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected