50 obj = obj.Dereference();
59 yield
return task.Runnable.GetReturn();
79 if (task.Runnable.Error !=
null)
85 yield
return task.Runnable.GetReturn();
Describes a specific position inside a source file.
Implements the 'await' expression.
override IEnumerable< BadExpression > GetDescendants()
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
readonly BadExpression m_TaskExpr
The Task Expression.
BadAwaitExpression(BadExpression expr, BadSourcePosition position)
Constructs a new Await Expression.
Implements a Task Object.
void Pause()
Pauses the Task.
The BadScript Task Runner.
void AddTask(BadTask task, bool runImmediately=false)
Adds a Task to the Task Runner.
BadTask? Current
the Current task
Base Implementation for all Expressions used inside the Script.
IEnumerable< BadExpression > GetDescendantsAndSelf()
Returns all Descendants of the Expression and the Expression itself.
BadSourcePosition Position
The source Position of the Expression.
IEnumerable< BadObject > Execute(BadExecutionContext context)
Evaluates the Expression within the current Execution Context.
The Execution Context. Every execution of a script needs a context the script is running in....
Gets thrown if the runtime encounters an error.
Gets thrown by the runtime.
static BadRuntimeException Create(BadScope? scope, string message)
Creates a new BadScriptException.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Contains Shared Data Structures and Functionality.
Contains task/async Extensions and Integrations for the BadScript2 Runtime.
Contains the Expressions for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.
Contains the Runtime Objects.
Contains the Runtime Implementation.