BadScript 2
Loading...
Searching...
No Matches
BadNullExpression.cs
Go to the documentation of this file.
4
6
11{
16 public BadNullExpression(BadSourcePosition position) : base(true, position) { }
17
21 public object Value => null!;
22
27 public override string ToString()
28 {
29 return BadStaticKeys.NULL;
30 }
31
33 protected override IEnumerable<BadObject> InnerExecute(BadExecutionContext context)
34 {
35 yield return BadObject.Null;
36 }
37
39 public override IEnumerable<BadExpression> GetDescendants()
40 {
41 yield break;
42 }
43}
Describes a specific position inside a source file.
Contains Static Data for the BadScript Language.
Base Implementation for all Expressions used inside the Script.
override string ToString()
String Representation of the Expression.
BadNullExpression(BadSourcePosition position)
Constructor for the null expression.
override IEnumerable< BadExpression > GetDescendants()
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
The Execution Context. Every execution of a script needs a context the script is running in....
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
static readonly BadObject Null
The Null Value for the BadScript Language.
Definition BadObject.cs:28
Gets implemented by all Constant/Native Expressions to provide fast access to the value without unwra...
Contains Shared Data Structures and Functionality.
Contains the Constant Expressions for the BadScript2 Language.
Contains the Runtime Objects.
Definition BadArray.cs:10
Contains the Runtime Implementation.