13 instantiations of LocalDebugId
Microsoft.CodeAnalysis (3)
CodeGen\LocalDebugId.cs (1)
40public static readonly LocalDebugId None = new LocalDebugId(isNone: true);
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
142previousId = new LocalDebugId(syntaxOffset, currentId.Ordinal);
Emit\EditAndContinueMethodDebugInformation.cs (1)
133mapBuilder.Add(new LocalSlotDebugInfo(kind, new LocalDebugId(syntaxOffset, ordinal)));
Microsoft.CodeAnalysis.CSharp (4)
CodeGen\CodeGenerator.cs (1)
184id: new LocalDebugId(syntaxOffset, ordinal: 0),
CodeGen\EmitStatement.cs (1)
1851localId = new LocalDebugId(syntaxOffset, ordinal);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
652var id = new LocalDebugId(syntaxOffset, ordinal);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
196id = new LocalDebugId(syntaxOffset, ordinal);
Microsoft.CodeAnalysis.UnitTests (4)
Emit\CustomDebugInfoTests.cs (4)
201new LocalSlotDebugInfo(SynthesizedLocalKind.UserDefined, new LocalDebugId(-1, 10)), 202new LocalSlotDebugInfo(SynthesizedLocalKind.TryAwaitPendingCaughtException, new LocalDebugId(-20000, 10))); 301new LocalSlotDebugInfo(SynthesizedLocalKind.UserDefined, new LocalDebugId(-1, 10)), 302new LocalSlotDebugInfo(SynthesizedLocalKind.TryAwaitPendingCaughtException, new LocalDebugId(-20000, 10)));
Microsoft.CodeAnalysis.VisualBasic (2)
CodeGen\EmitStatement.vb (1)
1347localId = New LocalDebugId(syntaxOffset, ordinal)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
302id = New LocalDebugId(syntaxOffset, ordinal)
47 references to LocalDebugId
Microsoft.CodeAnalysis (24)
CodeGen\LocalConstantDefinition.cs (1)
68=> new LocalSlotDebugInfo(SynthesizedLocalKind.UserDefined, LocalDebugId.None);
CodeGen\LocalDebugId.cs (5)
16internal readonly struct LocalDebugId : IEquatable<LocalDebugId> 40public static readonly LocalDebugId None = new LocalDebugId(isNone: true); 66public bool Equals(LocalDebugId other) 79return obj is LocalDebugId && Equals((LocalDebugId)obj);
CodeGen\LocalDefinition.cs (1)
67LocalDebugId id,
CodeGen\LocalSlotDebugInfo.cs (2)
13public readonly LocalDebugId Id; 15public LocalSlotDebugInfo(SynthesizedLocalKind synthesizedKind, LocalDebugId id)
CodeGen\LocalSlotManager.cs (3)
125LocalDebugId id, 178id: LocalDebugId.None, 193LocalDebugId id,
CodeGen\SignatureOnlyLocalDefinition.cs (1)
84=> new LocalSlotDebugInfo(SynthesizedLocalKind.EmitterTemp, LocalDebugId.None);
CodeGen\VariableSlotAllocator.cs (2)
22LocalDebugId id, 37LocalDebugId currentId,
Emit\EditAndContinue\EncHoistedLocalInfo.cs (1)
20SlotInfo = new LocalSlotDebugInfo(SynthesizedLocalKind.EmitterTemp, LocalDebugId.None);
Emit\EditAndContinue\EncLocalInfo.cs (1)
25SlotInfo = new LocalSlotDebugInfo(SynthesizedLocalKind.EmitterTemp, LocalDebugId.None);
Emit\EditAndContinue\EncVariableSlotAllocator.cs (6)
122private bool TryGetPreviousLocalId(SyntaxNode currentDeclarator, LocalDebugId currentId, out LocalDebugId previousId) 151LocalDebugId id, 162if (!TryGetPreviousLocalId(currentLocalSymbol.GetDeclaratorSyntax(), id, out LocalDebugId previousId)) 201LocalDebugId currentId, 212if (!TryGetPreviousLocalId(currentDeclarator, currentId, out LocalDebugId previousId))
PEWriter\Members.cs (1)
374/// Local id, or <see cref="LocalDebugId.None"/> if this is a local constant, short-lived temp variable,
Microsoft.CodeAnalysis.CSharp (9)
CodeGen\EmitStatement.cs (3)
1790LocalDebugId localId; 1820private string GetLocalDebugName(ILocalSymbolInternal local, out LocalDebugId localId) 1822localId = LocalDebugId.None;
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
652var id = new LocalDebugId(syntaxOffset, ordinal);
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (2)
31: this(stateMachineType, type, name, new LocalSlotDebugInfo(SynthesizedLocalKind.LoweringTemp, LocalDebugId.None), slotIndex: -1, isPublic: isPublic) 37: this(stateMachineType, type, name, new LocalSlotDebugInfo(synthesizedKind, LocalDebugId.None), slotIndex, isPublic: isPublic)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
184LocalDebugId id; 213id = LocalDebugId.None;
Symbols\LocalSymbol.cs (1)
283/// The location of the declarator is used to calculate <see cref="LocalDebugId.SyntaxOffset"/> during emit.
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (3)
EEAssemblyBuilder.cs (3)
117id: LocalDebugId.None, 143LocalDebugId id, 152public override bool TryGetPreviousHoistedLocalSlotIndex(SyntaxNode currentDeclarator, Cci.ITypeReference currentType, SynthesizedLocalKind synthesizedKind, LocalDebugId currentId, DiagnosticBag diagnostics, out int slotIndex)
Microsoft.CodeAnalysis.VisualBasic (9)
CodeGen\EmitStatement.vb (3)
1284Dim localId As LocalDebugId = Nothing 1311Private Function GetLocalDebugName(local As LocalSymbol, <Out> ByRef localId As LocalDebugId) As String 1312localId = LocalDebugId.None
Lowering\StateMachineRewriter\StateMachineFieldSymbol.vb (2)
35New LocalSlotDebugInfo(SynthesizedLocalKind.LoweringTemp, LocalDebugId.None), 56New LocalSlotDebugInfo(synthesizedKind, LocalDebugId.None),
Lowering\StateMachineRewriter\StateMachineRewriter.vb (3)
290Dim id As LocalDebugId = LocalDebugId.None 340Protected Function MakeHoistedFieldForLocal(local As LocalSymbol, localType As TypeSymbol, slotIndex As Integer, id As LocalDebugId) As FieldSymbol
Symbols\Source\LocalSymbol.vb (1)
182''' The location of the declarator is used to calculate <see cref="LocalDebugId.SyntaxOffset"/> during emit.
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (2)
EEAssemblyBuilder.vb (2)
148id As LocalDebugId, 173Public Overrides Function TryGetPreviousHoistedLocalSlotIndex(currentDeclarator As SyntaxNode, currentType As ITypeReference, synthesizedKind As SynthesizedLocalKind, currentId As LocalDebugId, diagnostics As DiagnosticBag, <Out> ByRef slotIndex As Integer) As Boolean