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

AddParam() public method

Adds a parameter to the function parameter list.
Adds a parameter to the function parameter list. Sets the parent of the param node to this node.
/// if param is /// null ///
public AddParam ( AstNode param ) : void
param AstNode the parameter
return void
		public virtual void AddParam(AstNode param)
		{
			AssertNotNull(param);
			if (@params == null)
			{
				@params = new List<AstNode>();
			}
			@params.Add(param);
			param.SetParent(this);
		}