Example #1
0
        /// <summary>
        /// Provides the callable that is called by this expression
        /// </summary>
        /// <param name="namable"></param>
        /// <returns></returns>
        public override ICallable getCalled(InterpretationContext context)
        {
            ICallable retVal = null;

            if (Term != null)
            {
                retVal = Term.getCalled(context);
            }
            else if (Expression != null)
            {
                retVal = Expression.getCalled(context);
            }

            // TODO : Investigate why this
            if (retVal == null)
            {
                retVal = GetValue(context) as ICallable;
            }

            return(retVal);
        }