1using System.Collections;
107 return propName is
"MoveNext" or
"GetCurrent" ||
108 base.HasProperty(propName, caller);
128 return "InteropEnumerator";
Implements the Scope for the Script Engine.
Gets thrown by the runtime.
Implements a simple wrapper for C# IEnumerators to be used in BS2.
override BadClassPrototype GetPrototype()
bool MoveNext()
Moves the Enumerator to the next element.
BadObject Current
The Current Element.
override string ToSafeString(List< BadObject > done)
void Dispose()
Disposes the Enumerator.
void Reset()
Resets the Enumerator.
readonly IEnumerator< BadObject > m_Enumerator
The Internal Enumerator.
readonly BadObjectReference m_Current
Current Function Reference.
override bool HasProperty(string propName, BadScope? caller=null)
Returns true if the object contains a given property or there exists an extension for the current Ins...
readonly BadObjectReference m_Next
GetNext Function Reference.
static readonly BadClassPrototype s_Prototype
The Prototype for the Interop Enumerator Object.
override BadObjectReference GetProperty(string propName, BadScope? caller=null)
Returns a Reference to the Property with the given Name.The Property Reference
BadInteropEnumerator(IEnumerator< BadObject > enumerator)
Creates a new Interop Enumerator.
Non Generic Interop Function.
The Base Class for all BadScript Objects.
virtual BadObjectReference GetProperty(string propName, BadScope? caller=null)
Returns a Reference to the Property with the given Name.
Implements the base functionality for a BadScript Reference.
static BadObjectReference Make(string refText, Func< BadObject > getter, Action< BadObject, BadPropertyInfo?>? setter=null, Action? delete=null)
Creates a new Reference Object.
The Any Prototype, Base type for all types.
static readonly BadAnyPrototype Instance
The Instance of the BadAnyPrototype.
Implements a Class Prototype for the BadScript Language.
Helper Class that Builds a Native Class from a Prototype.
static BadClassPrototype GetNative(string name)
Returns a Native Class Prototype for the given Native Type.
static readonly BadInterfacePrototype Enumerator
The IEnumerator Interface Prototype.
Implements a Native Class Prototype.
Implements a BadScript Interface Prototype.
BadObject CreateGeneric(BadObject[] args)
Resolves the Generic Object to a concrete type.
Defines a BadScript Enumerator.
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 Interface Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.