1 write to Generation
Microsoft.CodeAnalysis (1)
CodeGen\DebugId.cs (1)
39this.Generation = generation;
25 references to Generation
Microsoft.CodeAnalysis (7)
CodeGen\DebugId.cs (5)
45&& this.Generation == other.Generation; 55return Hash.Combine(this.Ordinal, this.Generation); 60return (Generation > 0) ? $"{Ordinal}#{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)
1678topLevelMethodId.Generation, 1680lambdaId.Generation);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (3)
76return GeneratedNames.MakeStaticLambdaDisplayClassName(methodId.Ordinal, methodId.Generation); 80return GeneratedNames.MakeLambdaDisplayClassName(methodId.Ordinal, methodId.Generation, closureId.Ordinal, closureId.Generation);
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (4)
184topLevelMethodId.Generation, 186lambdaId.Generation); 197topLevelMethodId.Generation, 199lambdaId.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}");
Microsoft.CodeAnalysis.VisualBasic (7)
Lowering\LambdaRewriter\LambdaFrame.vb (3)
90Return GeneratedNames.MakeStaticLambdaDisplayClassName(methodId.Ordinal, methodId.Generation) 94Return GeneratedNames.MakeLambdaDisplayClassName(methodId.Ordinal, methodId.Generation, closureId.Ordinal, closureId.Generation, isDelegateRelaxation)
Lowering\LambdaRewriter\LambdaRewriter.vb (2)
1178topLevelMethodId.Generation, 1180lambdaId.Generation,
Lowering\LambdaRewriter\SynthesizedLambdaMethod.vb (2)
101topLevelMethodId.Generation, 103lambdaId.Generation,