internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); if (this._expression != null) { this._expression.Accept(visitor); } else { for (int index = 0; index < this._elements.Count; ++index) { switch (this._elements[index]) { case ParseTreeNode parseTreeNode: parseTreeNode.Accept(visitor); break; case Token node: visitor.Visit(node, index); break; } } } if (this._outputRedirection != null) { this._outputRedirection.Accept(visitor); } if (this._errorRedirection == null) { return; } this._errorRedirection.Accept(visitor); }
private void AcceptInternal(ParseTreeVisitor visitor, bool topLevel) { if (!topLevel && visitor.SkipInvokableScriptBlocks) { return; } visitor.Visit(this); if (this._parameterDeclarationNode != null) { this._parameterDeclarationNode.Accept(visitor); } if (this._begin != null) { this._begin.Accept(visitor); } if (this._process != null) { this._process.Accept(visitor); } if (this._end != null) { this._end.Accept(visitor); } if (this._dynamicParams == null) { return; } this._dynamicParams.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); foreach (ParseTreeNode clause in this._clauses) { clause?.Accept(visitor); } }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); foreach (ParseTreeNode expression in this._expressions) { expression.Accept(visitor); } }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); if (visitor.SkipInvokableScriptBlocks) { return; } this._body.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); if (this._left is ParseTreeNode left) { left.Accept(visitor); } this._rightHandSide.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); if (this._location == null) { return; } this._location.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); if (!(this._argument is ParseTreeNode parseTreeNode)) { return; } parseTreeNode.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); this._target.Accept(visitor); if (!(this._property is ParseTreeNode property)) { return; } property.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); foreach (object obj in this._arguments) { if (obj is ParseTreeNode parseTreeNode) { parseTreeNode.Accept(visitor); } } }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); for (int index = 0; index < this._expressions.Count; ++index) { if (this._keys[index] is ParseTreeNode key) { key.Accept(visitor); } this._expressions[index].Accept(visitor); } }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); if (this._commandsAllowed != null) { foreach (ParseTreeNode parseTreeNode in this._commandsAllowed) { parseTreeNode.Accept(visitor); } } this._body.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); this._body.Accept(visitor); foreach (ParseTreeNode catchBlock in this._catchBlocks) { catchBlock.Accept(visitor); } if (this._finally == null) { return; } this._finally.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); if (!visitor.SkipInvokableScriptBlocks && this._traps != null) { foreach (ParseTreeNode trap in this._traps) { trap.Accept(visitor); } } foreach (ParseTreeNode statement in this._statements) { statement.Accept(visitor); } }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); if (this._parameter != null) { this._parameter.Accept(visitor); } foreach (ParseTreeNode attribute in this._attributes) { attribute.Accept(visitor); } if (this._initializer == null) { return; } this._initializer.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); if (this._initialExpression != null) { this._initialExpression.Accept(visitor); } if (this._loopExpression != null) { this._loopExpression.Accept(visitor); } if (this._incrementExpression != null) { this._incrementExpression.Accept(visitor); } if (this._body == null) { return; } this._body.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) => visitor.Visit(this);
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); this._target.Accept(visitor); this._arguments.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); this._formatExpression.Accept(visitor); }
internal override void Accept(ParseTreeVisitor visitor) { visitor.Visit(this); this._body.Accept(visitor); this._condition.Accept(visitor); }