Class SequentialSlotAllocator
A sequential slot allocator. Never returns previously used slots and is the fastest one.
Inheritance
System.Object
SequentialSlotAllocator
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Loretta.CodeAnalysis.Lua.Experimental.Minifying
Assembly: Loretta.CodeAnalysis.Lua.Experimental.dll
Syntax
public sealed class SequentialSlotAllocator : ISlotAllocator
Methods
| Improve this Doc View SourceAllocateSlot()
Allocates a slot for the provided variable.
Declaration
public int AllocateSlot()
Returns
Type | Description |
---|---|
System.Int32 | The slot that was allocated to the variable. |
ReleaseSlot(Int32)
Releases a slot for usage by other variables.
Declaration
public void ReleaseSlot(int slot)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | slot | The slot the variable is located in. |