89 references to LinePositionSpan
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
CompilerFailedExceptionFactoryTest.cs (3)
243new LinePositionSpan(new LinePosition(10, 1), new LinePosition(10, 2)))), 249new LinePositionSpan(new LinePosition(1, 2), new LinePosition(3, 4)))), 255new LinePositionSpan(new LinePosition(30, 5), new LinePosition(40, 12)))),
Microsoft.CodeAnalysis (6)
Diagnostic\FileLinePositionSpan.cs (1)
51: this(path, new LinePositionSpan(start, end))
Syntax\LineDirectiveMap.cs (4)
69return new LinePositionSpan(translatePosition(entry, unmappedStartPos), translatePosition(entry, unmappedEndPos)); 91return new LinePositionSpan(translatePosition(entry, unmappedStartPos), translatePosition(entry, unmappedEndPos)); 238var unmapped = new LinePositionSpan( 259var mappedSpan = new LinePositionSpan(
Text\TextLineCollection.cs (1)
57return new LinePositionSpan(GetLinePosition(span.Start), GetLinePosition(span.End));
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpLineDirectiveMap.cs (1)
104return new LineMappingEntry(unmappedLine, new LinePositionSpan(mappedStart, mappedEnd), characterOffset, mappedPathOpt);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
EditAndContinue\ActiveStatementTrackingServiceTests.cs (4)
33var span11 = new LinePositionSpan(new LinePosition(0, 10), new LinePosition(0, 15)); 34var span12 = new LinePositionSpan(new LinePosition(0, 20), new LinePosition(0, 25)); 35var span21 = new LinePositionSpan(new LinePosition(0, 11), new LinePosition(0, 16)); 36var span22 = new LinePositionSpan(new LinePosition(0, 21), new LinePosition(0, 26));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\LocationsTests.cs (3)
504Location location = Location.Create("test.txt", new TextSpan(), new LinePositionSpan(new LinePosition(2, 1), new LinePosition(3, 1))); 515var lineSpan = new LinePositionSpan(new LinePosition(2, 1), new LinePosition(3, 1)); 517var mappedLineSpan = new LinePositionSpan(new LinePosition(3, 2), new LinePosition(4, 2));
Microsoft.CodeAnalysis.EditorFeatures (2)
Navigation\IDocumentNavigationServiceExtensions.cs (1)
88var linePositionSpan = new LinePositionSpan(linePosition, linePosition);
Shared\Extensions\SnapshotSpanExtensions.cs (1)
30return new LinePositionSpan(new LinePosition(startLine, startChar), new LinePosition(endLine, endChar));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
LanguageServer\AbstractLanguageServerProtocolTests.cs (2)
69private static readonly LinePositionSpan s_mappedLinePosition = new LinePositionSpan(new LinePosition(0, 0), new LinePosition(0, 5)); 182var textSpan = lines.GetTextSpan(new LinePositionSpan(startPosition, endPosition));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
952=> Task.FromResult(ImmutableArray.Create(Diagnostic.Create(s_syntaxRule, Location.Create(document.FilePath, TextSpan.FromBounds(0, 0), new LinePositionSpan(new LinePosition(0, 0), new LinePosition(0, 0))))));
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\ActiveStatementsMap.cs (1)
269return new(new(unmappedStartLine, unmappedStartColumn), new(unmappedEndLine, unmappedEndColumn));
EditAndContinue\Utilities\Extensions.cs (2)
19=> new(new LinePosition(span.Start.Line + lineDelta, span.Start.Character), new LinePosition(span.End.Line + lineDelta, span.End.Character)); 31=> new(new(span.StartLine, span.StartColumn), new(span.EndLine, span.EndColumn));
Microsoft.CodeAnalysis.Features.UnitTests (24)
EditAndContinue\ActiveStatementsMapTests.cs (15)
33var span = new LinePositionSpan(new(sl, sc), new(el, ec)); 35new LinePositionSpan(new(3, 0), new(3, 1)), 36new LinePositionSpan(new(3, 5), new(3, 6)), 37new LinePositionSpan(new(4, 4), new(4, 18)), 38new LinePositionSpan(new(5, 1), new(5, 2)), 39new LinePositionSpan(new(5, 2), new(5, 8)), 40new LinePositionSpan(new(19, 0), new(19, 42))); 68var span = new LinePositionSpan(new(sl, sc), new(el, ec)); 70new LinePositionSpan(new(5, 1), new(5, 2)), 71new LinePositionSpan(new(5, 1), new(5, 8)), 72new LinePositionSpan(new(6, 4), new(6, 18))); 81var span = new LinePositionSpan(new(sl, sc), new(el, ec)); 83new LinePositionSpan(new(5, 1), new(5, 2)), 84new LinePositionSpan(new(5, 1), new(5, 3)), 85new LinePositionSpan(new(5, 1), new(5, 8)));
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (7)
431var activeLineSpan = new LinePositionSpan(new(0, 0), new(0, 1)); 4034new ActiveStatementSpan(new ActiveStatementId(0), new LinePositionSpan(new(4, 41), new(4, 42)), ActiveStatementFlags.MethodUpToDate | ActiveStatementFlags.LeafFrame), 4131var expectedSpanG1 = new LinePositionSpan(new LinePosition(3, 41), new LinePosition(3, 42)); 4132var expectedSpanF1 = new LinePositionSpan(new LinePosition(8, 14), new LinePosition(8, 18)); 4144var expectedSpanG2 = new LinePositionSpan(new LinePosition(3, 41), new LinePosition(3, 42)); 4145var expectedSpanF2 = new LinePositionSpan(new LinePosition(9, 14), new LinePosition(9, 18)); 4242var expectedSpanG1 = new LinePositionSpan(new LinePosition(3, 41), new LinePosition(3, 42));
EditAndContinue\RemoteEditAndContinueServiceTests.cs (2)
92var span1 = new LinePositionSpan(new LinePosition(1, 2), new LinePosition(1, 5)); 111new ActiveStatementSpan(new ActiveStatementId(0), new LinePositionSpan(new LinePosition(1, 2), new LinePosition(3, 4)), ActiveStatementFlags.NonLeafFrame, documentId));
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\ProtocolConversions.cs (1)
296=> new(PositionToLinePosition(range.Start), PositionToLinePosition(range.End));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
137location: Location.Create(context.AdditionalFile.Path, Text.TextSpan.FromBounds(0, 0), new Text.LinePositionSpan(new Text.LinePosition(0, 0), new Text.LinePosition(0, 0))), "args"));
SemanticTokens\SemanticTokensRangeTests.cs (6)
124new LinePositionSpan(new LinePosition(12, 0), new LinePosition(13, 0)), 125new LinePositionSpan(new LinePosition(29, 0), new LinePosition(30, 0)), 181ImmutableArray<LinePositionSpan> spans = [new LinePositionSpan(new LinePosition(1, 0), new LinePosition(2, 0))]; 231ImmutableArray<LinePositionSpan> spans = [new LinePositionSpan(new LinePosition(0, 0), new LinePosition(4, 0))]; 290ImmutableArray<LinePositionSpan> spans = [new LinePositionSpan(new LinePosition(0, 0), new LinePosition(9, 0))]; 371ImmutableArray<LinePositionSpan> spans = [new LinePositionSpan(new LinePosition(0, 0), new LinePosition(9, 0))];
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\ILValidation.cs (1)
421var lineSpan = new LinePositionSpan(new LinePosition(startLine, startColumn), new LinePosition(endLine, endColumn));
Microsoft.CodeAnalysis.UnitTests (25)
Diagnostics\SarifErrorLoggerTests.cs (1)
36var position = new LinePositionSpan(LinePosition.Zero, LinePosition.Zero);
LineMappingTests.cs (24)
19new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 20new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: true)), 21new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 2)), hasMappedPath: false)), 22new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(2, 2)), hasMappedPath: false)), 23new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 1), new LinePosition(1, 1)), hasMappedPath: false)), 24new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(1, 0), new LinePosition(1, 1)), hasMappedPath: false)), 25new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("file.cs", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 26new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), 0, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 27new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 2)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 28new LineMapping(new LinePositionSpan(new LinePosition(0, 0), new LinePosition(2, 2)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 29new LineMapping(new LinePositionSpan(new LinePosition(0, 1), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)), 30new LineMapping(new LinePositionSpan(new LinePosition(1, 0), new LinePosition(1, 1)), null, new FileLinePositionSpan("", new LinePositionSpan(new LinePosition(0, 0), new LinePosition(1, 1)), hasMappedPath: false)),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
11138Dim linePosSpan = New LinePositionSpan(New LinePosition(0, 0), New LinePosition(0, span.End))
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Extensions\FileLinePositionSpanExtensions.cs (1)
91return new LinePositionSpan(start, end);
Microsoft.VisualStudio.LanguageServices (4)
Diagnostics\VisualStudioVenusSpanMappingService.cs (2)
129return new LinePositionSpan(position1, position2); 132return new LinePositionSpan(position2, position1);
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (1)
266var linePositionSpan = new LinePositionSpan(start: linePosition, end: linePosition);
Workspace\VisualStudioDocumentNavigationService.cs (1)
135return text.Lines.GetTextSpan(new LinePositionSpan(linePosition, linePosition));