1 write to Ordinal
Microsoft.CodeAnalysis (1)
CodeGen\DebugId.cs (1)
38
this.
Ordinal
= ordinal;
18 references to Ordinal
Microsoft.CodeAnalysis (5)
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();
PEWriter\MetadataWriter.cs (1)
4180
methodBody.MethodId.
Ordinal
,
Microsoft.CodeAnalysis.CSharp (11)
Lowering\ClosureConversion\ClosureConversion.cs (3)
430
closureOrdinal = containerAsFrame.ClosureId.
Ordinal
;
1708
(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.
Ordinal
,
1710
lambdaId.
Ordinal
,
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (4)
84
return GeneratedNames.MakeStaticLambdaDisplayClassName(methodId.
Ordinal
, methodId.Generation);
87
Debug.Assert(methodId.
Ordinal
>= 0);
88
return GeneratedNames.MakeLambdaDisplayClassName(methodId.
Ordinal
, methodId.Generation, closureId.
Ordinal
, closureId.Generation);
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (4)
180
(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.
Ordinal
,
182
lambdaId.
Ordinal
,
193
(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.
Ordinal
,
195
lambdaId.
Ordinal
,
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
EditAndContinueTestUtilities.cs (2)
28
debugInfo.Lambdas.Select(l => $"Offset={l.SyntaxOffset} Id={l.LambdaId.Generation}#{l.LambdaId.
Ordinal
} Closure={l.ClosureOrdinal}");
32
debugInfo.Closures.Select(c => $"Offset={c.SyntaxOffset} Id={c.ClosureId.Generation}#{c.ClosureId.
Ordinal
}");