Class SortedSlotAllocator
The sorted slot allocator. Will always use the lowest free slot.
Inheritance
System.Object
SortedSlotAllocator
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 SortedSlotAllocator : 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. |