2 instantiations of LocalDefinition
Microsoft.CodeAnalysis (2)
CodeGen\LocalSlotManager.cs (1)
227
local = new
LocalDefinition
(
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
179
return new
LocalDefinition
(
35 references to LocalDefinition
Microsoft.CodeAnalysis (35)
CodeGen\ILBuilder.cs (2)
1157
internal bool PossiblyDefinedOutsideOfTry(
LocalDefinition
local)
1191
internal void AddLocalToScope(
LocalDefinition
local)
CodeGen\ILBuilderEmit.cs (4)
233
LocalDefinition
? keyHash,
441
internal void EmitLocalLoad(
LocalDefinition
local)
466
internal void EmitLocalStore(
LocalDefinition
local)
490
internal void EmitLocalAddress(
LocalDefinition
local)
CodeGen\LocalOrParameter.cs (3)
12
public readonly
LocalDefinition
? Local;
15
private LocalOrParameter(
LocalDefinition
? local, int parameterIndex)
21
public static implicit operator LocalOrParameter(
LocalDefinition
? local)
CodeGen\LocalScopeManager.cs (7)
105
internal void AddLocal(
LocalDefinition
variable)
174
internal bool PossiblyDefinedOutsideOfTry(
LocalDefinition
local)
305
internal virtual bool ContainsLocal(
LocalDefinition
local) => false;
314
private ImmutableArray<
LocalDefinition
>.Builder _localVariables;
339
internal void AddLocal(
LocalDefinition
variable)
343
_localVariables = ImmutableArray.CreateBuilder<
LocalDefinition
>(1);
374
internal override bool ContainsLocal(
LocalDefinition
local)
CodeGen\LocalSlotManager.cs (15)
65
private Dictionary<ILocalSymbolInternal,
LocalDefinition
>? _localMap;
68
private KeyedStack<LocalSignature,
LocalDefinition
>? _freeSlots;
90
private Dictionary<ILocalSymbolInternal,
LocalDefinition
> LocalMap
97
map = new Dictionary<ILocalSymbolInternal,
LocalDefinition
>(ReferenceEqualityComparer.Instance);
105
private KeyedStack<LocalSignature,
LocalDefinition
> FreeSlots
112
slots = new KeyedStack<LocalSignature,
LocalDefinition
>();
120
internal
LocalDefinition
DeclareLocal(
132
LocalDefinition
? local;
146
internal
LocalDefinition
GetLocal(ILocalSymbolInternal symbol)
157
var
slot = GetLocal(symbol);
165
internal
LocalDefinition
AllocateSlot(
171
if (!FreeSlots.TryPop(new LocalSignature(type, constraints), out
LocalDefinition
? local))
188
private
LocalDefinition
DeclareLocalImpl(
204
LocalDefinition
? local;
246
internal void FreeSlot(
LocalDefinition
slot)
CodeGen\SwitchStringJumpTableEmitter.cs (2)
64
private readonly
LocalDefinition
? _keyHash;
71
LocalDefinition
? keyHash,
CodeGen\VariableSlotAllocator.cs (1)
18
public abstract
LocalDefinition
? GetPreviousLocal(
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
143
public override
LocalDefinition
? GetPreviousLocal(