26 references to DebugId
Microsoft.CodeAnalysis (5)
Emit\EditAndContinue\DefinitionMap.cs (2)
315methodId = new DebugId(debugInfo.MethodOrdinal, 0); 706GetMetadataLambdaAndClosureMap(peMethod.ContainingType, methodId: new DebugId(provider.MethodOrdinal, generation: 0)),
Emit\EditAndContinueMethodDebugInformation.cs (2)
233var closureId = new DebugId(closuresBuilder.Count, generation: 0); 247var lambdaId = new DebugId(lambdasBuilder.Count, generation: 0);
Symbols\CommonGeneratedNameParser.cs (1)
66var id = new DebugId((int)value, (generation >= 0) ? generation : 0);
Microsoft.CodeAnalysis.CSharp (6)
Compiler\MethodCompiler.cs (2)
1422new DebugId(ordinal: -1, _moduleBeingBuiltOpt.CurrentGenerationOrdinal), 1726variableSlotAllocatorOpt?.MethodId ?? new DebugId(methodOrdinal, moduleBuilder.CurrentGenerationOrdinal),
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (2)
525return _slotAllocator?.MethodId ?? new DebugId(_topLevelMethodOrdinal, _compilationState.ModuleBuilderOpt.CurrentGenerationOrdinal); 555closureId = new DebugId(closureDebugInfo.Count, _compilationState.ModuleBuilderOpt.CurrentGenerationOrdinal);
Lowering\ClosureConversion\ClosureConversion.cs (2)
524methodId = new DebugId(DebugId.UndefinedOrdinal, CompilationState.ModuleBuilderOpt.CurrentGenerationOrdinal); 1500lambdaId = new DebugId(_lambdaDebugInfoBuilder.Count, CompilationState.ModuleBuilderOpt.CurrentGenerationOrdinal);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\GeneratedNamesTests.cs (2)
72Assert.Equal(new DebugId(methodIdOrdinal, methodIdGeneration), actualMethodId); 73Assert.Equal(new DebugId(entityIdOrdinal, entityIdGeneration), actualEntityId);
Microsoft.CodeAnalysis.UnitTests (13)
Emit\CustomDebugInfoTests.cs (13)
222new ClosureDebugInfo(-100, new DebugId(0, 0)), 223new ClosureDebugInfo(10, new DebugId(1, 0)), 224new ClosureDebugInfo(-200, new DebugId(2, 0))); 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)); 351new ClosureDebugInfo(-100, new DebugId(0, 0)), 352new ClosureDebugInfo(10, new DebugId(1, 0)), 353new ClosureDebugInfo(-200, new DebugId(2, 0))); 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));