39 Func<BadSourcePosition?, BadObject> getter,
40 Action<BadObject,BadSourcePosition?, BadPropertyInfo?>? setter =
null,
41 Action<BadSourcePosition?>?
delete =
null)
67 Func<BadSourcePosition?, BadObject> getter,
68 Action<BadObject, BadSourcePosition?, BadPropertyInfo?, bool>? setter,
69 Action<BadSourcePosition?>?
delete =
null)
74#region Nested type: BadObjectReferenceImpl
84 private readonly Action<BadSourcePosition?>?
m_Delete;
89 private readonly Func<BadSourcePosition?, BadObject>
m_Getter;
99 private readonly Action<BadObject, BadSourcePosition?, BadPropertyInfo?, bool>?
m_Setter;
109 Func<BadSourcePosition?, BadObject> getter,
110 Action<BadObject, BadSourcePosition?, BadPropertyInfo?, bool>? setter,
111 Action<BadSourcePosition?>?
delete)
Describes a specific position inside a source file.
Gets thrown by the runtime.
static BadRuntimeException Create(BadScope? scope, string message)
Creates a new BadScriptException.
The Base Class for all BadScript Objects.
Implements a Reference Object.
override BadClassPrototype GetPrototype()
readonly? Action< BadSourcePosition?> m_Delete
Deletes the Reference from the Referenced Object.
override void Delete(BadSourcePosition? position)
readonly? Action< BadObject, BadSourcePosition?, BadPropertyInfo?, bool > m_Setter
The Setter of the Reference.
override string ToSafeString(List< BadObject > done)
override BadObject Resolve(BadSourcePosition? position)
BadObjectReferenceImpl(string refText, Func< BadSourcePosition?, BadObject > getter, Action< BadObject, BadSourcePosition?, BadPropertyInfo?, bool >? setter, Action< BadSourcePosition?>? delete)
Creates a new Reference Object.
readonly Func< BadSourcePosition?, BadObject > m_Getter
The Getter of the Reference.
override void Set(BadObject obj, BadSourcePosition? position, BadPropertyInfo? info=null, bool noChangeEvent=false)
readonly string m_RefText
The Debug Text.
Implements the base functionality for a BadScript Reference.
BadObject Resolve(BadSourcePosition? position)
Returns the Referenced Object.
static BadObjectReference Make(string refText, Func< BadSourcePosition?, BadObject > getter, Action< BadObject, BadSourcePosition?, BadPropertyInfo?>? setter=null, Action< BadSourcePosition?>? delete=null)
Creates a new Reference Object.
static BadObjectReference Make(string refText, Func< BadSourcePosition?, BadObject > getter, Action< BadObject, BadSourcePosition?, BadPropertyInfo?, bool >? setter, Action< BadSourcePosition?>? delete=null)
Creates a new Reference Object.
void Delete(BadSourcePosition? position)
Deletes the Reference from the Referenced Object.
void Set(BadObject obj, BadSourcePosition? position, BadPropertyInfo? info=null, bool noChangeEvent=false)
Sets the Referenced Object to a new Value.
Stores Meta Information about a Property.
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.
override BadClassPrototype GetPrototype()
Contains Shared Data Structures and Functionality.
Contains the Error Objects for the BadScript2 Language.
Contains Runtime Type Objects.
Contains the Runtime Objects.