1 write to Ordinal
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\ActiveStatement.cs (1)
44
Ordinal
= ordinal;
29 references to Ordinal
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (12)
EditAndContinue\ActiveStatementsDescription.cs (9)
69
newMappedSpans[oldStatement.Statement.
Ordinal
] = new SourceFileSpan(oldStatement.Statement.FilePath, default);
70
newMappedRegions[oldStatement.Statement.
Ordinal
] = ImmutableArray<SourceFileSpan>.Empty;
153
activeStatements.Sort((x, y) => x.Statement.
Ordinal
.CompareTo(y.Statement.
Ordinal
));
170
(modules != null) ? modules[statement.
Ordinal
] : moduleId,
172
token: 0x06000000 | (methodRowIds != null ? methodRowIds[statement.
Ordinal
] : statement.
Ordinal
+ 1),
173
version: (methodVersions != null) ? methodVersions[statement.
Ordinal
] : 1)),
174
ilOffset: (ilOffsets != null) ? ilOffsets[statement.
Ordinal
] : 0),
EditAndContinue\ActiveStatementTestHelpers.cs (1)
96
=> $"{statement.
Ordinal
}: {statement.FileSpan} flags=[{statement.Flags}]";
EditAndContinue\EditAndContinueTestHelpers.cs (2)
59
AssertSpansEqual(description.NewMappedSpans, actualNewActiveStatements.OrderBy(x => x.
Ordinal
).Select(s => s.FileSpan), newTree);
83
AssertSpansEqual(description.NewMappedRegions[activeStatement.
Ordinal
], actualNewExceptionRegions[i], newTree);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
EditAndContinue\ActiveStatementsMapTests.cs (1)
128
}, oldSpans.Select(s => $"{s.UnmappedSpan} -> {s.Statement.Span} #{s.Statement.
Ordinal
}"));
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
3822
var statements = baseActiveStatementsMap.InstructionMap.Values.OrderBy(v => v.
Ordinal
).ToArray();
EditAndContinue\EditSessionActiveStatementsTests.cs (3)
190
var statements = baseActiveStatementsMap.InstructionMap.Values.OrderBy(v => v.
Ordinal
).ToArray();
348
var baseActiveStatements = baseActiveStatementMap.InstructionMap.Values.OrderBy(v => v.
Ordinal
).ToArray();
530
var baseActiveStatements = baseActiveStatementMap.InstructionMap.Values.OrderBy(v => v.
Ordinal
).ToArray();
Microsoft.CodeAnalysis.Features (12)
EditAndContinue\ActiveStatement.cs (3)
57
=> new(
Ordinal
, Flags, span, InstructionId);
60
=> new(
Ordinal
, flags, FileSpan, InstructionId);
93
=> $"{
Ordinal
}: {Span}";
EditAndContinue\ActiveStatementSpan.cs (1)
23
/// The corresponding <see cref="ActiveStatement.
Ordinal
"/>.
EditAndContinue\DebuggingSession.cs (5)
756
return new ActiveStatementSpan(activeStatement.
Ordinal
, span, activeStatement.Flags, unmappedDocumentId);
833
var i = adjustedMappedSpans.FindIndex((s, ordinal) => s.Ordinal == ordinal, activeStatement.
Ordinal
);
836
adjustedMappedSpans[i] = new ActiveStatementSpan(activeStatement.
Ordinal
, activeStatement.Span, activeStatement.Flags, unmappedDocumentId);
905
return analysis.ActiveStatements.GetStatement(baseActiveStatement.
Ordinal
).Span;
962
return oldDocumentActiveStatements.GetStatement(baseActiveStatement.
Ordinal
).ExceptionRegions.IsActiveStatementCovered;
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
157
var newMappedDocumentActiveSpan = newMappedDocumentSpans.GetStatement(oldActiveStatement.Statement.
Ordinal
);
EditAndContinue\Extensions.cs (2)
37
if (item.
Ordinal
== ordinal)
63
if (item.Statement.
Ordinal
== ordinal)