obfuz/Editor/Virtualization/DataNodes/ConstExpression.cs

28 lines
709 B
C#
Raw Normal View History

2025-04-20 14:23:40 +08:00
using System.Collections.Generic;
namespace Obfuz.Virtualization
{
2025-04-21 08:58:25 +08:00
[NodeOutput(DataNodeType.Int32)]
[NodeOutput(DataNodeType.Int64)]
[NodeOutput(DataNodeType.Bytes)]
2025-04-20 14:23:40 +08:00
public class ConstExpression : DataNodeAny
{
public IFunction function;
2025-04-20 15:20:13 +08:00
public readonly List<IDataNode> inputs;
public readonly ConstValue result;
public ConstExpression(IFunction function, List<IDataNode> inputs, ConstValue result)
{
this.function = function;
this.inputs = inputs;
Type = function.ReturnType;
this.result = result;
}
2025-04-20 14:23:40 +08:00
public override void Compile(CompileContext ctx)
{
}
}
}