15 "MemberInfo is a read only object"
78 new Lazy<BadObjectReference>(() =>
99 return new BadArray(attributes.ToList());
113 if (args.Length == 1)
118 else if (args.Length == 2)
126 .
Set(args[0],
null,
null, noEvents.Value);
137 case "GetAttributes":
144 return base.HasProperty(propName, caller);
154 case "GetAttributes":
177 return "MemberInfo: " +
m_Name;
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
BadObject SetValue(BadExecutionContext ctx, BadObject[] args)
static BadClassPrototype Prototype
readonly Lazy< BadObjectReference > m_GetValueReference
readonly Lazy< BadObjectReference > m_MemberTypeReference
BadObject GetValue(BadExecutionContext ctx, BadObject[] args)
override BadClassPrototype GetPrototype()
BadMemberInfo(string name, BadScope scope)
readonly Lazy< BadObjectReference > m_IsReadonlyReference
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 Lazy< BadObjectReference > m_NameReference
override string ToSafeString(List< BadObject > done)
readonly Lazy< BadObjectReference > m_GetAttributesReference
BadObject GetAttributes(BadExecutionContext ctx, BadObject[] args)
readonly Lazy< BadObjectReference > m_SetValueReference
override BadObjectReference GetProperty(string propName, BadScope? caller=null)
Returns a Reference to the Property with the given Name.
readonly BadScope m_Scope
static readonly BadNativeClassPrototype< BadMemberInfo > s_Prototype
Implements the Scope for the Script Engine.
BadObjectReference GetVariable(string name, BadScope caller)
Returns the variable reference of the specified variable.
IReadOnlyDictionary< string, BadObject[]> Attributes
BadPropertyInfo GetVariableInfo(string name)
Returns the variable info of the specified variable.
Gets thrown by the runtime.
static BadRuntimeException Create(BadScope? scope, string message)
Creates a new BadScriptException.
Interop Function taking an array of arguments.
Implements a Dynamic List/Array for the BadScript Language.
static BadClassPrototype Prototype
The Prototype for the BadScript Array.
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.
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements the base functionality for a BadScript Reference.
static BadObjectReference Make(string refText, Func< BadSourcePosition?, BadObject > getter, Action< BadObject, BadSourcePosition?, BadPropertyInfo?>? setter=null, Action< BadSourcePosition?>? delete=null)
Creates a new Reference Object.
void Set(BadObject obj, BadSourcePosition? position, BadPropertyInfo? info=null, bool noChangeEvent=false)
Sets the Referenced Object to a new Value.
bool IsReadOnly
Indicates if this property is read only.
BadClassPrototype? Type
The (optional) Type used for typechecking if a value gets assigned to this property.
Provides function parameter info.
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.
Implements a Native Class Prototype.
Implements the Interface for Native Boolean.
Contains the Error Objects for the BadScript2 Language.
Contains the Interop Function Classes for the BadScript2 Language.
Contains Runtime Function Objects.
Contains the Native Runtime Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.