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