35 args = arr.InnerArray.ToArray();
39 args = BadNativeClassHelper.ExecuteEnumerate(ctx, a).ToArray();
43 throw new BadRuntimeException(
"Invalid Argument Type");
Implements Function Extensions.
override void AddExtensions(BadInteropExtensionProvider provider)
Public Extension API for the BS2 Runtime.
void RegisterObject(Type t, string propName, BadObject obj)
Registers the specified extension for the specified type.
Non Generic Interop Function.
Implements a Dynamic List/Array for the BadScript Language.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements a function that can be called from the script.
BadFunctionParameter[] Parameters
The Function Parameters.
BadWordToken? Name
(optional) Name of the Function
IEnumerable< BadObject > Invoke(BadObject[] args, BadExecutionContext caller)
Invokes the function with the specified arguments.
virtual BadMetaData MetaData
The Metadata of the Function.
BadClassPrototype ReturnType
The Return Type of the Function.
Provides function parameter info.
bool IsOptional
Indicates if this parameter is optional.
bool IsRestArgs
Indicates if this parameter is the rest parameter of the function.
string Name
The Name of the Parameter.
bool IsNullChecked
Indicates if this parameter is null checked by the runtime.
Helper Class that Builds a Native Class from a Prototype.
static readonly BadInterfacePrototype Enumerable
The IEnumerable Interface Prototype.
Contains Common Interop Extensions for the BadScript2 Runtime.
Contains the Error Objects for the BadScript2 Language.
Contains the Interop Function Classes for the BadScript2 Language.
Contains the Interop Abstractions and Implementations for the BadScript2 Language.
Contains Runtime Function Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.