2025-04-20 14:23:40 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Obfuz.Virtualization
|
|
|
|
|
{
|
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|