9 instantiations of LambdaDebugInfo
Microsoft.CodeAnalysis (1)
Emit\EditAndContinueMethodDebugInformation.cs (1)
248lambdasBuilder.Add(new LambdaDebugInfo(syntaxOffset + syntaxOffsetBaseline, lambdaId, closureOrdinal));
Microsoft.CodeAnalysis.CSharp (1)
Lowering\ClosureConversion\ClosureConversion.cs (1)
1510_lambdaDebugInfoBuilder.Add(new EncLambdaInfo(new LambdaDebugInfo(syntaxOffset, lambdaId, closureOrdinal), structClosureIds));
Microsoft.CodeAnalysis.UnitTests (7)
Emit\CustomDebugInfoTests.cs (7)
227new LambdaDebugInfo(20, new DebugId(0, 0), 1), 228new LambdaDebugInfo(-50, new DebugId(1, 0), 0), 229new LambdaDebugInfo(-180, new DebugId(2, 0), LambdaDebugInfo.StaticClosureOrdinal)); 252var lambdas = ImmutableArray.Create(new LambdaDebugInfo(20, new DebugId(0, 0), LambdaDebugInfo.StaticClosureOrdinal)); 356new LambdaDebugInfo(20, new DebugId(0, 0), 1), 357new LambdaDebugInfo(-50, new DebugId(1, 0), 0), 358new LambdaDebugInfo(-180, new DebugId(2, 0), LambdaDebugInfo.StaticClosureOrdinal));
25 references to LambdaDebugInfo
Microsoft.CodeAnalysis (14)
Emit\EditAndContinue\DefinitionMap.cs (2)
712ImmutableArray<LambdaDebugInfo> metadataLambdasToInclude = default) 721foreach (var info in metadataLambdasToInclude.NullToEmpty())
Emit\EditAndContinue\EncLambdaInfo.cs (2)
10internal readonly struct EncLambdaInfo(LambdaDebugInfo debugInfo, ImmutableArray<DebugId> structClosureIds) 12public readonly LambdaDebugInfo DebugInfo = debugInfo;
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
333Debug.Assert(closureOrdinal >= LambdaDebugInfo.MinClosureOrdinal);
Emit\EditAndContinueMethodDebugInformation.cs (9)
23internal readonly ImmutableArray<LambdaDebugInfo> Lambdas; 31ImmutableArray<LambdaDebugInfo> lambdas, 201out ImmutableArray<LambdaDebugInfo> lambdas) 213var lambdasBuilder = ArrayBuilder<LambdaDebugInfo>.GetInstance(); 240int closureOrdinal = blobReader.ReadCompressedInteger() + LambdaDebugInfo.MinClosureOrdinal; 278foreach (LambdaDebugInfo info in Lambdas) 294foreach (LambdaDebugInfo info in Lambdas) 296Debug.Assert(info.ClosureOrdinal >= LambdaDebugInfo.MinClosureOrdinal); 300writer.WriteCompressedInteger(info.ClosureOrdinal - LambdaDebugInfo.MinClosureOrdinal);
Microsoft.CodeAnalysis.CSharp (4)
Lowering\ClosureConversion\ClosureConversion.cs (4)
437closureOrdinal = LambdaDebugInfo.ThisOnlyClosureOrdinal; 451closureOrdinal = LambdaDebugInfo.StaticClosureOrdinal; 459closureOrdinal = LambdaDebugInfo.StaticClosureOrdinal; 1446Debug.Assert(closureOrdinal >= LambdaDebugInfo.MinClosureOrdinal);
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationTestDataExtensions.cs (1)
111lambdas: ImmutableArray<LambdaDebugInfo>.Empty,
Microsoft.CodeAnalysis.UnitTests (6)
Emit\CustomDebugInfoTests.cs (6)
201var lambdas = ImmutableArray<LambdaDebugInfo>.Empty; 229new LambdaDebugInfo(-180, new DebugId(2, 0), LambdaDebugInfo.StaticClosureOrdinal)); 252var lambdas = ImmutableArray.Create(new LambdaDebugInfo(20, new DebugId(0, 0), LambdaDebugInfo.StaticClosureOrdinal)); 276var lambdas = ImmutableArray<LambdaDebugInfo>.Empty; 302lambdas: ImmutableArray<LambdaDebugInfo>.Empty, 358new LambdaDebugInfo(-180, new DebugId(2, 0), LambdaDebugInfo.StaticClosureOrdinal));