1 write to Generation
Microsoft.CodeAnalysis (1)
CodeGen\DebugId.cs (1)
39this.Generation = generation;
17 references to Generation
Microsoft.CodeAnalysis (6)
CodeGen\DebugId.cs (4)
43=> Ordinal.CompareTo(other.Ordinal) is int result and not 0 ? result : Generation.CompareTo(other.Generation); 46=> (Generation > 0) ? $"{Ordinal}{CommonGeneratedNames.GenerationSeparator}{Generation}" : Ordinal.ToString();
Emit\EditAndContinue\AddedOrChangedMethodInfo.cs (1)
41Debug.Assert(methodId.Generation >= 0);
Emit\EditAndContinueMethodDebugInformation.cs (1)
297Debug.Assert(info.LambdaId.Generation == 0);
Microsoft.CodeAnalysis.CSharp (9)
Lowering\ClosureConversion\ClosureConversion.cs (2)
1709topLevelMethodId.Generation, 1711lambdaId.Generation);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (3)
84return GeneratedNames.MakeStaticLambdaDisplayClassName(methodId.Ordinal, methodId.Generation); 88return GeneratedNames.MakeLambdaDisplayClassName(methodId.Ordinal, methodId.Generation, closureId.Ordinal, closureId.Generation);
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (4)
181topLevelMethodId.Generation, 183lambdaId.Generation); 194topLevelMethodId.Generation, 196lambdaId.Generation);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
EditAndContinueTestUtilities.cs (2)
28debugInfo.Lambdas.Select(l => $"Offset={l.SyntaxOffset} Id={l.LambdaId.Generation}#{l.LambdaId.Ordinal} Closure={l.ClosureOrdinal}"); 32debugInfo.Closures.Select(c => $"Offset={c.SyntaxOffset} Id={c.ClosureId.Generation}#{c.ClosureId.Ordinal}");