BadScript 2
Loading...
Searching...
No Matches
BadNullExpression.cs
Go to the documentation of this file.
1
using
BadScript2.Common
;
2
using
BadScript2.Runtime
;
3
using
BadScript2.Runtime.Objects
;
4
5
namespace
BadScript2.Parser.Expressions.Constant
;
6
10
public
class
BadNullExpression
:
BadExpression
,
IBadNativeExpression
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
}
BadScript2.Common.BadSourcePosition
Describes a specific position inside a source file.
Definition
BadSourcePosition.cs:9
BadScript2.Common.BadStaticKeys
Contains Static Data for the BadScript Language.
Definition
BadStaticKeys.cs:11
BadScript2.Common.BadStaticKeys.NULL
const string NULL
Definition
BadStaticKeys.cs:36
BadScript2.Parser.Expressions.BadExpression
Base Implementation for all Expressions used inside the Script.
Definition
BadExpression.cs:23
BadScript2.Parser.Expressions.Constant.BadNullExpression
Implements the Null Expression.
Definition
BadNullExpression.cs:11
BadScript2.Parser.Expressions.Constant.BadNullExpression.ToString
override string ToString()
String Representation of the Expression.
Definition
BadNullExpression.cs:27
BadScript2.Parser.Expressions.Constant.BadNullExpression.BadNullExpression
BadNullExpression(BadSourcePosition position)
Constructor for the null expression.
Definition
BadNullExpression.cs:16
BadScript2.Parser.Expressions.Constant.BadNullExpression.GetDescendants
override IEnumerable< BadExpression > GetDescendants()
Definition
BadNullExpression.cs:39
BadScript2.Parser.Expressions.Constant.BadNullExpression.InnerExecute
override IEnumerable< BadObject > InnerExecute(BadExecutionContext context)
Definition
BadNullExpression.cs:33
BadScript2.Parser.Expressions.Constant.BadNullExpression.Value
object Value
The Raw Value of the Expression.
Definition
BadNullExpression.cs:21
BadScript2.Runtime.BadExecutionContext
The Execution Context. Every execution of a script needs a context the script is running in....
Definition
BadExecutionContext.cs:16
BadScript2.Runtime.Objects.BadObject
The Base Class for all BadScript Objects.
Definition
BadObject.cs:14
BadScript2.Runtime.Objects.BadObject.Null
static readonly BadObject Null
The Null Value for the BadScript Language.
Definition
BadObject.cs:28
BadScript2.Parser.Expressions.Constant.IBadNativeExpression
Gets implemented by all Constant/Native Expressions to provide fast access to the value without unwra...
Definition
IBadNativeExpression.cs:8
BadScript2.Common
Contains Shared Data Structures and Functionality.
Definition
BadParseException.cs:1
BadScript2.Parser.Expressions.Constant
Contains the Constant Expressions for the BadScript2 Language.
Definition
BadArrayExpression.cs:9
BadScript2.Runtime.Objects
Contains the Runtime Objects.
Definition
BadArray.cs:10
BadScript2.Runtime
Contains the Runtime Implementation.
Definition
BadExecutionContext.cs:8
src
BadScript2
Parser
Expressions
Constant
BadNullExpression.cs
Generated by
1.9.8