private void Push(GreenNode node) { if (_count >= _stack.Length) { var tmp = new NodeIteration[_stack.Length * 2]; Array.Copy(_stack, tmp, _stack.Length); _stack = tmp; } _stack[_count] = new NodeIteration(node); _count++; }
private void Push(Syntax.InternalSyntax.SyntaxNode node) { if (this.count >= this.stack.Length) { var tmp = new NodeIteration[this.stack.Length * 2]; Array.Copy(this.stack, tmp, this.stack.Length); this.stack = tmp; } this.stack[this.count] = new NodeIteration(node); this.count++; }
private void Push(GreenNode node) { if (count >= this.stack.Length) { var tmp = new NodeIteration[this.stack.Length * 2]; Array.Copy(this.stack, tmp, this.stack.Length); this.stack = tmp; } this.stack[count] = new NodeIteration(node); count++; }