Rhino.Ast.FunctionNode.Visit C# (CSharp) Method

Visit() public method

Visits this node, the function name node if supplied, the parameters, and the body.
Visits this node, the function name node if supplied, the parameters, and the body. If there is a member-expr node, it is visited last.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void
		public override void Visit(NodeVisitor v)
		{
			if (v.Visit(this))
			{
				if (functionName != null)
				{
					functionName.Visit(v);
				}
				foreach (AstNode param in GetParams())
				{
					param.Visit(v);
				}
				GetBody().Visit(v);
				if (!isExpressionClosure)
				{
					if (memberExprNode != null)
					{
						memberExprNode.Visit(v);
					}
				}
			}
		}
	}