18 lines
438 B
C#
18 lines
438 B
C#
using Qrakhen.Qamp.Core.Values.Objects;
|
|
|
|
namespace Qrakhen.Qamp.Core.Compilation.Builders;
|
|
|
|
public class FunctionBuilder
|
|
{
|
|
public SegmentBuilder Segment = new();
|
|
public string Name;
|
|
public int OuterCount;
|
|
public int ArgumentCount;
|
|
|
|
public long CurrentInstruction => Segment.Instructions.Count;
|
|
|
|
public Function Build()
|
|
{
|
|
return new Function(Name, Segment.Build(), OuterCount, ArgumentCount);
|
|
}
|
|
} |