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

getUnboundParametersFromValue() private method

Gets the unbound parameters from either the surface or the graph of the function
private getUnboundParametersFromValue ( DataDictionary.Functions.Function leftFunction ) : List
leftFunction DataDictionary.Functions.Function
return List
        private List<Parameter> getUnboundParametersFromValue(Function leftFunction)
        {
            List<Parameter> retVal = new List<Parameter>();

            if (leftFunction != null)
            {
                if (leftFunction.Surface != null)
                {
                    retVal.Add(leftFunction.Surface.XParameter);
                    retVal.Add(leftFunction.Surface.YParameter);
                }
                else if (leftFunction.Graph != null)
                {
                    // TODO : Use the parameters from the graph when available
                    retVal.Add((Parameter) leftFunction.FormalParameters[0]);
                }
            }

            return retVal;
        }