Esempio n. 1
0
 private static object CallFunction(IInvokable functionDefinition, ScriptFunctionCall scriptFunctionCall, IScriptContext context)
 {
   scriptFunctionCall.Evaluate(context);
   return functionDefinition.Invoke(context, (object[])context.Result);
 }
Esempio n. 2
0
 private static void CallClassMethod(object obj, string memeberInfo, ScriptFunctionCall scriptFunctionCall, Type[] genericArguments, IScriptContext context)
 {
   scriptFunctionCall.Evaluate(context);
   context.Result = CallAppropriateMethod(context, obj, memeberInfo, genericArguments, (object[])context.Result);
 }
 public ScriptTypeConstructor(AstNodeArgs args)
     : base(args)
 {
   _typeExpr = ChildNodes[0] as ScriptTypeExpr;
   _callExpr = ChildNodes[1] as ScriptFunctionCall;
 }