1using System.Collections;
64 IEnumerator IEnumerable.GetEnumerator()
79 return propName ==
"GetEnumerator" ||
80 base.HasProperty(propName, caller);
86 return propName ==
"GetEnumerator"
94 return "BadInteropEnumerable";
Implements the Scope for the Script Engine.
Gets thrown by the runtime.
Implements an Interop Enumerable Object.
BadInteropEnumerable(IEnumerable< BadObject > enumerable)
Creates a new BadInteropEnumerable.
IEnumerator< BadObject > GetEnumerator()
Returns the Enumerator.
readonly IEnumerable< BadObject > m_Enumerable
The Enumerable Object.
static readonly BadClassPrototype s_Prototype
The Prototype for the Interop Enumerable Object.
readonly BadFunction m_Func
The Function that returns the Enumerator.
override BadObjectReference GetProperty(string propName, BadScope? caller=null)
Returns a Reference to the Property with the given Name.The Property Reference
override string ToSafeString(List< BadObject > done)
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...
override BadClassPrototype GetPrototype()
Implements a simple wrapper for C# IEnumerators to be used in BS2.
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.
Implements a function that can be called from the script.
Implements a Class Prototype for the BadScript Language.
Helper Class that Builds a Native Class from a Prototype.
static readonly BadInterfacePrototype Enumerable
The IEnumerable Interface Prototype.
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 Enumerable.
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 Interface Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.