39 left = left.Dereference();
48 right = right.Dereference();
102 yield
return In(context, left, right);
Describes a specific position inside a source file.
Contains Static Data for the BadScript Language.
const string IN_OPERATOR_NAME
Base Implementation for all Expressions used inside the Script.
static IEnumerable< BadObject > ExecuteOperatorOverride(BadObject left, BadObject right, BadExecutionContext context, string name, BadSourcePosition position)
Helper function that executes an operator override function if implemented.
BadSourcePosition Position
The source Position of the Expression.
IEnumerable< BadObject > Execute(BadExecutionContext context)
Evaluates the Expression within the current Execution Context.
Base Implementation of all Binary Expressions.
BadExpression Right
Right side of the Expression.
BadExpression Left
Left side of the Expression.
Implements the 'in' operator. The 'in' operator is used to check if a key is present in an instance o...
static IEnumerable< BadObject > InWithOverride(BadExecutionContext context, BadObject left, BadObject right, BadSourcePosition position)
Implements the logic of the 'in' operator but checks for an operator override first.
BadInExpression(BadExpression left, BadExpression right, BadSourcePosition position)
Constructor for the 'in' operator.
override string GetSymbol()
static BadObject In(BadExecutionContext ctx, BadObject left, BadObject right)
Implements the logic of the 'in' operator.
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
The Execution Context. Every execution of a script needs a context the script is running in....
BadScope Scope
The Root Scope of the Context.
Gets thrown by the runtime.
static BadRuntimeException Create(BadScope? scope, string message)
Creates a new BadScriptException.
The Base Class for all BadScript Objects.
virtual 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...
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements the Interface for Native Strings.
Contains Shared Data Structures and Functionality.
Contains the Binary Expressions for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.
Contains the Native Runtime Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.