/// <summary> /// Define a function symbol within this scope. /// </summary> /// <param name="func">The function metadata</param> /// <param name="functionExpr">The function expression object that can execute the function</param> public virtual void DefineFunction(FunctionMetaData func, object functionExpr) { var symbol = new SymbolFunction(func); symbol.FuncExpr = functionExpr; this.Define(symbol); }
/// <summary> /// Define a function symbol within this scope. /// </summary> /// <param name="func">The function metadata</param> public virtual void DefineFunction(FunctionMetaData func) { var symbol = new SymbolFunction(func); this.Define(symbol); }