Flee
This commit is contained in:
22
ExpressionElements/Literals/Boolean.cs
Normal file
22
ExpressionElements/Literals/Boolean.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Flee.ExpressionElements.Base.Literals;
|
||||
|
||||
using Flee.InternalTypes;
|
||||
|
||||
namespace Flee.ExpressionElements.Literals
|
||||
{
|
||||
internal class BooleanLiteralElement : LiteralElement
|
||||
{
|
||||
private readonly bool _myValue;
|
||||
public BooleanLiteralElement(bool value)
|
||||
{
|
||||
_myValue = value;
|
||||
}
|
||||
|
||||
public override void Emit(FleeILGenerator ilg, IServiceProvider services)
|
||||
{
|
||||
EmitLoad(_myValue, ilg);
|
||||
}
|
||||
|
||||
public override System.Type ResultType => typeof(bool);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user