Microsoft.CSharp.RuntimeBinder.RuntimeBinder.StripNamedArguments C# (CSharp) Method

StripNamedArguments() private method

private StripNamedArguments ( EXPR pArg ) : EXPR
pArg Microsoft.CSharp.RuntimeBinder.Semantics.EXPR
return Microsoft.CSharp.RuntimeBinder.Semantics.EXPR
        private EXPR StripNamedArguments(EXPR pArg)
        {
            if (pArg.isLIST())
            {
                EXPRLIST list = pArg.asLIST();
                while (list != null)
                {
                    list.SetOptionalElement(StripNamedArgument(list.GetOptionalElement()));

                    if (list.GetOptionalNextListNode().isLIST())
                    {
                        list = list.GetOptionalNextListNode().asLIST();
                    }
                    else
                    {
                        list.SetOptionalNextListNode(StripNamedArgument(list.GetOptionalNextListNode()));
                        break;
                    }
                }
            }
            return StripNamedArgument(pArg);
        }
        #endregion