16 private readonly Func<BadExecutionContext, BadObject[], IEnumerable<BadObject>>
m_Func;
28 Func<
BadObject[], IEnumerable<BadObject>> func,
31 params
BadFunctionParameter[] parameters) : base(name, false, isStatic, returnType, false, parameters)
33 m_Func = (_, args) => func(args);
49 params
BadFunctionParameter[] parameters) : base(name, false, isStatic, returnType, false,parameters)
63 Func<
BadObject[], IEnumerable<BadObject>> func,
66 params
string[] names)
85 return m_Func.Invoke(caller, args);
The Execution Context. Every execution of a script needs a context the script is running in....
Interop Function taking an array of arguments.
readonly Func< BadExecutionContext, BadObject[], IEnumerable< BadObject > > m_Func
The Function Lambda.
BadEnumerableInteropFunction(BadWordToken? name, Func< BadObject[], IEnumerable< BadObject > > func, bool isStatic, BadClassPrototype returnType, params BadFunctionParameter[] parameters)
Creates a new BadInteropFunction.
static BadEnumerableInteropFunction Create(Func< BadObject[], IEnumerable< BadObject > > func, bool isStatic, BadClassPrototype returnType, params string[] names)
Creates a new BadInteropFunction.
BadEnumerableInteropFunction(BadWordToken? name, Func< BadExecutionContext, BadObject[], IEnumerable< BadObject > > func, bool isStatic, BadClassPrototype returnType, params BadFunctionParameter[] parameters)
Creates a new BadInteropFunction.
override IEnumerable< BadObject > InvokeBlock(BadObject[] args, BadExecutionContext caller)
The Base Class for all BadScript Objects.
Implements a function that can be called from the script.
void CheckParameters(BadObject[] args, BadExecutionContext caller, BadSourcePosition? position=null)
Checks Parameters for the given function call.
Provides function parameter info.
Implements a Class Prototype for the BadScript Language.
Contains the Reader Tokens for the BadScript2 Language.
Contains the Interop Function Classes for the BadScript2 Language.
Contains Runtime Function Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.