DataDictionary.Interpreter.BinaryExpression.getUnboundParameter C# (CSharp) Method

getUnboundParameter() private method

Gets the unbound parameters from the function definition and place holders
private getUnboundParameter ( DataDictionary.Interpreter.InterpretationContext context, DataDictionary.Functions.Function function ) : List
context DataDictionary.Interpreter.InterpretationContext
function DataDictionary.Functions.Function
return List
        private List<Parameter> getUnboundParameter(InterpretationContext context, Function function)
        {
            List<Parameter> retVal = new List<Parameter>();

            if (function != null)
            {
                foreach (Parameter formal in function.FormalParameters)
                {
                    IVariable actual = context.FindOnStack(formal);
                    if (actual != null)
                    {
                        PlaceHolder placeHolder = actual.Value as PlaceHolder;
                        if (placeHolder != null)
                        {
                            retVal.Add(formal);
                        }
                    }
                }
            }

            return retVal;
        }