60 instantiations of FileLinePositionSpan
Microsoft.CodeAnalysis (7)
Diagnostic\ExternalFileLocation.cs (3)
22_lineSpan = new FileLinePositionSpan(filePath, lineSpan); 29_lineSpan = new FileLinePositionSpan(filePath, lineSpan); 30_mappedLineSpan = new FileLinePositionSpan(mappedFilePath, mappedLineSpan, hasMappedPath: true);
Diagnostic\XmlLocation.cs (1)
24_positionSpan = new FileLinePositionSpan(path, start, end);
Syntax\LineDirectiveMap.cs (3)
64return new FileLinePositionSpan(path, span, hasMappedPath: entry.MappedPathOpt != null); 256new FileLinePositionSpan(path, entry.MappedSpan, hasMappedPath)); 262var mapped = new FileLinePositionSpan(path, mappedSpan, hasMappedPath);
Microsoft.CodeAnalysis.CSharp (2)
Syntax\CSharpLineDirectiveMap.cs (1)
243return new FileLinePositionSpan(treeFilePath, unmappedStartPos, unmappedEndPos);
Syntax\CSharpSyntaxTree.cs (1)
647=> new(FilePath, GetLinePosition(span.Start, cancellationToken), GetLinePosition(span.End, cancellationToken));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
TaskList\NoCompilationTaskListTests.cs (2)
67Span: new FileLinePositionSpan("dummy", new LinePosition(0, 3), new LinePosition(0, 3)), 68MappedSpan: new FileLinePositionSpan("dummy", new LinePosition(0, 3), new LinePosition(0, 3)))));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Diagnostics\LocationsTests.cs (5)
316Assert.Equal(flps, new FileLinePositionSpan("c:\\goo.cs", new LinePosition(8, 13), new LinePosition(8, 13))); 334Assert.Equal(flps, new FileLinePositionSpan("c:\\goo.cs", new LinePosition(8, 13), new LinePosition(8, 13))); 354Assert.Equal(flps, new FileLinePositionSpan("c:\\goo.cs", new LinePosition(8, 13), new LinePosition(8, 13))); 379Assert.Equal(flps, new FileLinePositionSpan("c:\\goo.cs", new LinePosition(8, 15), new LinePosition(8, 19))); 419Assert.Equal(span, new FileLinePositionSpan("", new LinePosition(1, 9), new LinePosition(1, 9)));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Squiggles\TestDiagnosticTagProducer.cs (1)
44location: new DiagnosticDataLocation(new FileLinePositionSpan(document.FilePath, linePosSpan), document.Id),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Diagnostics\DiagnosticDataTests.cs (5)
125location: new DiagnosticDataLocation(new("originalFile1", new(startLine, startColumn), new(endLine, endColumn)), document.Id), 145new(additionalDocument.Name, new(0, 0), new(0, 1)), additionalDocument.Id); 158location: new DiagnosticDataLocation(new FileLinePositionSpan(document.FilePath, span: default), document.Id), 239new(secondDocument.Name, new(0, 0), new(0, 1)), secondDocument.Id); 252location: new DiagnosticDataLocation(new FileLinePositionSpan(firstDocument.FilePath, span: default), firstDocument.Id),
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Diagnostics\DiagnosticProviderTests.vb (2)
358New FileLinePositionSpan(originalFile, New LinePosition(originalLine, originalColumn), New LinePosition(originalLine, originalColumn)), 360If(mappedFile Is Nothing, Nothing, New FileLinePositionSpan(mappedFile, New LinePosition(mappedLine, mappedColumn), New LinePosition(mappedLine, mappedColumn)))),
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EmitSolutionUpdateResultsTests.cs (1)
123new DiagnosticDataLocation(new(sourcePath, new(0, 1), new(0, 5)), document.Id),
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
126location: new DiagnosticDataLocation(new FileLinePositionSpan(fullPath, span: default)),
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Diagnostics\PullDiagnosticTests.cs (1)
1290location: new DiagnosticDataLocation(new FileLinePositionSpan("file", span: default), document?.Id),
Microsoft.CodeAnalysis.UnitTests (20)
FileLinePositionSpanTests.cs (20)
22EqualityUnit.Create(new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(3, 5))) 23.WithNotEqualValues(new FileLinePositionSpan("C:\\Goo.cs", new LinePosition(1, 2), new LinePosition(3, 5))), 24EqualityUnit.Create(new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(3, 5))) 25.WithNotEqualValues(new FileLinePositionSpan("C:\\bar.cs", new LinePosition(1, 2), new LinePosition(3, 5))), 26EqualityUnit.Create(new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(3, 5))) 27.WithNotEqualValues(new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 4), new LinePosition(3, 5))), 28EqualityUnit.Create(new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(3, 5))) 29.WithNotEqualValues(new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(4, 5)))); 38var notUsed = new FileLinePositionSpan(null, new LinePosition(1, 2), new LinePosition(3, 5)); 44var notUsed = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(3, 2), new LinePosition(2, 4)); 50var notUsed = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(1, 1)); 64var hash1 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(3, 5)).GetHashCode(); 65var hash2 = new FileLinePositionSpan("C:\\goo1.cs", new LinePosition(1, 2), new LinePosition(3, 5)).GetHashCode(); 66var hash3 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 3), new LinePosition(3, 5)).GetHashCode(); 67var hash4 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(6, 5)).GetHashCode(); 68var hash5 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(2, 2), new LinePosition(6, 5)).GetHashCode(); 69var hash6 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(2, 2), new LinePosition(6, 8)).GetHashCode(); 83Assert.Equal("C:\\goo.cs: (1,2)-(3,5)", new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(3, 5)).ToString()); 84Assert.Equal("\\server\\goo.vb: (1,2)-(3,5)", new FileLinePositionSpan("\\server\\goo.vb", new LinePosition(1, 2), new LinePosition(3, 5)).ToString()); 85Assert.Equal("~\\goo.huh: (1,2)-(3,5)", new FileLinePositionSpan("~\\goo.huh", new LinePosition(1, 2), new LinePosition(3, 5)).ToString());
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxTree.vb (1)
435Return New FileLinePositionSpan(Me.FilePath, GetLinePosition(span.Start), GetLinePosition(span.End))
Microsoft.CodeAnalysis.Workspaces (3)
Diagnostics\DiagnosticData.cs (2)
170originalLineInfo = new FileLinePositionSpan(document?.FilePath ?? "", span: default); 191location: new DiagnosticDataLocation(new FileLinePositionSpan(project?.FilePath ?? solution.FilePath ?? "", span: default)),
Diagnostics\DiagnosticDataLocation.cs (1)
73MappedFileSpan = new FileLinePositionSpan(GetNormalizedFilePath(unmappedFileSpan.Path, mappedSpan.Path), mappedSpan.Span);
Microsoft.VisualStudio.LanguageServices (6)
Diagnostics\VisualStudioVenusSpanMappingService.cs (2)
51originalLineInfo = new FileLinePositionSpan(originalLineInfo.Path, originalSpan.Start, originalSpan.End); 66mappedLineInfo = new FileLinePositionSpan(mappedLineInfo.Path, mappedSpan.Start, mappedSpan.End);
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (1)
268new FileLinePositionSpan(filePath, linePositionSpan), document.Id);
TaskList\ProjectExternalErrorReporter.cs (3)
110new FileLinePositionSpan(project.FilePath ?? "", span: default), 186new FileLinePositionSpan(error.bstrFileName, 247new FileLinePositionSpan(
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (3)
177location:=New DiagnosticDataLocation(New FileLinePositionSpan("C:\DocumentDiagnostic", Nothing)), 255location:=New DiagnosticDataLocation(New FileLinePositionSpan("C:\ProjectDiagnostic", New LinePosition(4, 4), New LinePosition(4, 4)), documentId:=Nothing), 292location:=New DiagnosticDataLocation(New FileLinePositionSpan("C:\DocumentDiagnostic", Nothing)),
161 references to FileLinePositionSpan
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (1)
181FileLinePositionSpan linePosSpan = operationSyntaxTree.GetLineSpan(memberNameSpan);
Microsoft.AspNetCore.Analyzer.Testing (1)
Assert.cs (1)
13var actualSpan = actual.GetLineSpan();
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Verifiers\DiagnosticVerifier.cs (1)
192var actualSpan = actual.GetLineSpan();
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Verifiers\DiagnosticVerifier.cs (1)
192var actualSpan = actual.GetLineSpan();
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Endpoint.cs (1)
164var lineSpan = operation.Syntax.SyntaxTree.GetLineSpan(invocationNameSpan);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CompilationFailedExceptionFactory.cs (1)
119var mappedLineSpan = diagnostic.Location.GetMappedLineSpan();
Microsoft.CodeAnalysis (57)
CodeGen\SequencePointList.cs (4)
118FileLinePositionSpan? firstReal = FindFirstRealSequencePoint(); 141FileLinePositionSpan fileLinePositionSpan = default; 216private FileLinePositionSpan? FindFirstRealSequencePoint() 228FileLinePositionSpan fileLinePositionSpan = current._tree.GetMappedLineSpanAndVisibility(span, out isHidden);
CommandLine\SarifErrorLogger.cs (1)
46protected void WriteRegion(FileLinePositionSpan span)
CommandLine\SarifV1ErrorLogger.cs (1)
140FileLinePositionSpan span = location.GetMappedLineSpan();
CommandLine\SarifV2ErrorLogger.cs (1)
174FileLinePositionSpan span = diagnosticLocation.GetMappedLineSpan();
Diagnostic\DiagnosticFormatter.cs (2)
37var span = diagnostic.Location.GetLineSpan(); 38var mappedSpan = diagnostic.Location.GetMappedLineSpan();
Diagnostic\ExternalFileLocation.cs (3)
17private readonly FileLinePositionSpan _lineSpan, _mappedLineSpan; 41public override FileLinePositionSpan GetLineSpan() 46public override FileLinePositionSpan GetMappedLineSpan()
Diagnostic\FileLinePositionSpan.cs (11)
17public readonly struct FileLinePositionSpan : IEquatable<FileLinePositionSpan> 44/// Initializes the <see cref="FileLinePositionSpan"/> instance. 56/// Initializes the <see cref="FileLinePositionSpan"/> instance. 99public bool Equals(FileLinePositionSpan other) 108=> other is FileLinePositionSpan span && Equals(span); 121/// Returns a <see cref="string"/> that represents <see cref="FileLinePositionSpan"/>. 123/// <returns>The string representation of <see cref="FileLinePositionSpan"/>.</returns> 128public static bool operator ==(FileLinePositionSpan left, FileLinePositionSpan right) 131public static bool operator !=(FileLinePositionSpan left, FileLinePositionSpan right)
Diagnostic\Location.cs (10)
67/// <see cref="FileLinePositionSpan"/> that contains path, line and column information. 69/// Returns an invalid span (see <see cref="FileLinePositionSpan.IsValid"/>) if the information is not available. 73public virtual FileLinePositionSpan GetLineSpan() 75return default(FileLinePositionSpan); 83/// <see cref="FileLinePositionSpan"/> that contains file, line and column information, 84/// or an invalid span (see <see cref="FileLinePositionSpan.IsValid"/>) if not available. 86public virtual FileLinePositionSpan GetMappedLineSpan() 88return default(FileLinePositionSpan); 111var pos = GetLineSpan(); 140var pos = GetLineSpan();
Diagnostic\SourceLocation.cs (6)
80public override FileLinePositionSpan GetLineSpan() 86FileLinePositionSpan result = default(FileLinePositionSpan); 94public override FileLinePositionSpan GetMappedLineSpan() 100FileLinePositionSpan result = default(FileLinePositionSpan);
Diagnostic\XmlLocation.cs (2)
18private readonly FileLinePositionSpan _positionSpan; 56public override FileLinePositionSpan GetLineSpan()
Syntax\LineDirectiveMap.cs (4)
49public FileLinePositionSpan TranslateSpan(SourceText sourceText, string treeFilePath, TextSpan span) 58protected FileLinePositionSpan TranslateSpan(in LineMappingEntry entry, string treeFilePath, LinePosition unmappedStartPos, LinePosition unmappedEndPos) 111internal abstract FileLinePositionSpan TranslateSpanAndVisibility(SourceText sourceText, string treeFilePath, TextSpan span, out bool isHiddenPosition); 262var mapped = new FileLinePositionSpan(path, mappedSpan, hasMappedPath);
Syntax\LineMapping.cs (6)
28/// If the line mapping directive maps the span into an explicitly specified file the <see cref="FileLinePositionSpan.HasMappedPath"/> is true. 29/// If the path is not mapped <see cref="FileLinePositionSpan.Path"/> is empty and <see cref="FileLinePositionSpan.HasMappedPath"/> is false. 30/// If the line mapping directive marks hidden code <see cref="FileLinePositionSpan.IsValid"/> is false. 32public readonly FileLinePositionSpan MappedSpan { get; } 34public LineMapping(LinePositionSpan span, int? characterOffset, FileLinePositionSpan mappedSpan)
Syntax\SyntaxTree.cs (6)
215/// A valid <see cref="FileLinePositionSpan"/> that contains path, line and column information. 218public abstract FileLinePositionSpan GetLineSpan(TextSpan span, CancellationToken cancellationToken = default); 227/// A valid <see cref="FileLinePositionSpan"/> that contains path, line and column information. 235public abstract FileLinePositionSpan GetMappedLineSpan(TextSpan span, CancellationToken cancellationToken = default); 268internal virtual FileLinePositionSpan GetMappedLineSpanAndVisibility(TextSpan span, out bool isHiddenPosition) 286var mappedSpan = GetMappedLineSpan(span);
Microsoft.CodeAnalysis.CSharp (13)
Emitter\Model\PEModuleBuilder.cs (1)
452FileLinePositionSpan span = location.GetLineSpan();
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
481private static Cci.DebugSourceDocument GetSourceDocument(DebugDocumentProvider debugDocumentProvider, SyntaxNode syntax, FileLinePositionSpan span) 503private BoundStatement AddAnalysisPoint(SyntaxNode syntaxForSpan, FileLinePositionSpan span, SyntheticBoundNodeFactory statementFactory)
Syntax\CSharpLineDirectiveMap.cs (1)
228internal override FileLinePositionSpan TranslateSpanAndVisibility(SourceText sourceText, string treeFilePath, TextSpan span, out bool isHiddenPosition)
Syntax\CSharpSyntaxTree.cs (7)
643/// <see cref="FileLinePositionSpan"/> that contains path, line and column information. 646public override FileLinePositionSpan GetLineSpan(TextSpan span, CancellationToken cancellationToken = default) 655/// <para>A valid <see cref="FileLinePositionSpan"/> that contains path, line and column information.</para> 665public override FileLinePositionSpan GetMappedLineSpan(TextSpan span, CancellationToken cancellationToken = default) 681/// Gets a <see cref="FileLinePositionSpan"/> for a <see cref="TextSpan"/>. FileLinePositionSpans are used 686/// <returns>A resulting <see cref="FileLinePositionSpan"/>.</returns> 687internal override FileLinePositionSpan GetMappedLineSpanAndVisibility(TextSpan span, out bool isHiddenPosition)
Syntax\CSharpSyntaxTree.Dummy.cs (2)
89public override FileLinePositionSpan GetLineSpan(TextSpan span, CancellationToken cancellationToken = default(CancellationToken)) 91return default(FileLinePositionSpan);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Diagnostics\LineSpanDirectiveTests.cs (1)
486var mappedLineAndPositionSpan = unmappedText.GetMappedLineSpanAndVisibility(syntax.Span, out _);
Diagnostics\LocationsTests.cs (10)
46var mappedSpan = syntaxTree.GetMappedLineSpan(span); 94FileLinePositionSpan flpsX = locX.GetLineSpan(); 108FileLinePositionSpan flpsXToCloseBrace = locXToCloseBrace.GetLineSpan(); 314FileLinePositionSpan flps = diag.Location.GetLineSpan(); 377FileLinePositionSpan flps = diag.Location.GetLineSpan(); 418var span = syntaxTree.GetDiagnostics().ElementAt(3).Location.GetLineSpan(); 529var lineInfo = locationWithoutMapping.GetLineSpan(); 534var mappedLineInfo = locationWithoutMapping.GetMappedLineSpan(); 572var lineSpan = diagnostics[0].Location.GetLineSpan(); 600var lineSpan = diagnostics[0].Location.GetLineSpan();
LexicalAndXml\PreprocessorTests.cs (1)
3560var lineSpan = diagnostics.First().Location.GetMappedLineSpan();
Parsing\ParserRegressionTests.cs (1)
166var fileLinePositionSpan = tree.GetLineSpan(textSpan); // throws ArgumentOutOfRangeException
Microsoft.CodeAnalysis.EditorFeatures.Wpf (3)
Peek\DefinitionPeekableItem.cs (1)
99var declarationLocation = declaration.GetMappedLineSpan();
Peek\ExternalFilePeekableItem.cs (2)
15private readonly FileLinePositionSpan _span; 19FileLinePositionSpan span,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
TaskList\FSharpTaskListService.cs (1)
47var span = new FileLinePositionSpan(document.FilePath!, text.Lines.GetLinePositionSpan(d.Span));
Microsoft.CodeAnalysis.ExternalAccess.Xaml (5)
External\ILocationService.cs (2)
19Task<FileLinePositionSpan[]> GetSymbolLocationsAsync(ISymbol symbol, Project project, CancellationToken cancellationToken); 24Task<FileLinePositionSpan?> GetLocationAsync(TextDocument document, TextSpan textSpan, CancellationToken cancellationToken);
Internal\LocationService.cs (3)
33public async Task<FileLinePositionSpan?> GetLocationAsync(TextDocument document, TextSpan textSpan, CancellationToken cancellationToken) 45public async Task<FileLinePositionSpan[]> GetSymbolLocationsAsync(ISymbol symbol, Project project, CancellationToken cancellationToken) 47using var _ = ArrayBuilder<FileLinePositionSpan>.GetInstance(out var locations);
Microsoft.CodeAnalysis.Features (13)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
1336var mappedLineSpan = newTree.GetMappedLineSpan(newSpan, cancellationToken); 2170var oldMappedSpan = oldTree.GetMappedLineSpan(oldSpan, cancellationToken); 2171var newMappedSpan = newTree.GetMappedLineSpan(newSpan, cancellationToken);
EditAndContinue\ActiveStatementsMap.cs (1)
213var mappedSection = lineMapping.MappedSpan;
EditAndContinue\SourceFileSpan.cs (3)
14/// An alternative for <see cref="FileLinePositionSpan"/> without <see cref="FileLinePositionSpan.HasMappedPath"/> bit. 76public static implicit operator SourceFileSpan(FileLinePositionSpan span)
ExternalAccess\UnitTesting\API\UnitTestingDocumentSpan.cs (2)
14internal UnitTestingDocumentSpan(DocumentSpan sourceSpan, FileLinePositionSpan span) 29public FileLinePositionSpan Span { get; }
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (1)
233var mappedSpan = tree.GetMappedLineSpan(info.Span, cancellationToken);
ExternalAccess\UnitTesting\IRemoteUnitTestingSearchService.cs (2)
22internal readonly struct UnitTestingSourceLocation(DocumentIdSpan documentIdSpan, FileLinePositionSpan span) 27public readonly FileLinePositionSpan Span = span;
ExternalAccess\VSTypeScript\VSTypeScriptTaskListService.cs (1)
42var span = location.GetLineSpan();
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\ActiveStatementsDescription.cs (1)
107var mappedSpan = tree.GetMappedLineSpan(unmappedSpan);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
426var lineSpan = diagnostic.Location.GetLineSpan();
Handler\Diagnostics\DiagnosticsPullCache.cs (1)
104static void WriteFileLinePositionSpan(FileLinePositionSpan fileSpan, ObjectWriter writer)
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\CommonDiagnosticAnalyzers.cs (4)
107var expectedLineSpan = root.GetLocation().GetLineSpan(); 185var expectedLineSpan = root.GetLocation().GetLineSpan(); 262var expectedLineSpan = root.GetLocation().GetLineSpan(); 315var expectedLineSpan = root.GetLocation().GetLineSpan();
Microsoft.CodeAnalysis.UnitTests (3)
FileLinePositionSpanTests.cs (3)
38var notUsed = new FileLinePositionSpan(null, new LinePosition(1, 2), new LinePosition(3, 5)); 44var notUsed = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(3, 2), new LinePosition(2, 4)); 50var notUsed = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(1, 1));
Microsoft.CodeAnalysis.VisualBasic (9)
Emit\PEModuleBuilder.vb (1)
280Dim span As FileLinePositionSpan = location.GetLineSpan()
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (2)
439Private Shared Function GetSourceDocument(debugDocumentProvider As DebugDocumentProvider, syntax As SyntaxNode, span As FileLinePositionSpan) As Cci.DebugSourceDocument 457Private Function AddAnalysisPoint(syntaxForSpan As SyntaxNode, span As FileLinePositionSpan, statementFactory As SyntheticBoundNodeFactory) As BoundStatement
Syntax\VisualBasicLineDirectiveMap.vb (1)
209Friend Overrides Function TranslateSpanAndVisibility(sourceText As SourceText, treeFilePath As String, span As TextSpan, ByRef isHiddenPosition As Boolean) As FileLinePositionSpan
Syntax\VisualBasicSyntaxTree.vb (5)
429''' <see cref="FileLinePositionSpan"/> that contains path, line and column information. 434Public Overrides Function GetLineSpan(span As TextSpan, Optional cancellationToken As CancellationToken = Nothing) As FileLinePositionSpan 444''' A valid <see cref="FileLinePositionSpan"/> that contains path, line and column information. 448Public Overrides Function GetMappedLineSpan(span As TextSpan, Optional cancellationToken As CancellationToken = Nothing) As FileLinePositionSpan 457Friend Overrides Function GetMappedLineSpanAndVisibility(span As TextSpan, ByRef isHiddenPosition As Boolean) As FileLinePositionSpan
Microsoft.CodeAnalysis.Workspaces (20)
Diagnostics\DiagnosticData.cs (4)
167GetLocationInfo(out var originalLineInfo, out var mappedLineInfo); 174void GetLocationInfo(out FileLinePositionSpan originalLineInfo, out FileLinePositionSpan mappedLineInfo)
Diagnostics\DiagnosticDataLocation.cs (10)
23public readonly FileLinePositionSpan UnmappedFileSpan; 33/// to <see cref="UnmappedFileSpan"/>. The <see cref="FileLinePositionSpan.Path"/> of this value will be the 37public readonly FileLinePositionSpan MappedFileSpan; 40FileLinePositionSpan unmappedFileSpan, 42FileLinePositionSpan mappedFileSpan) 50FileLinePositionSpan unmappedFileSpan, 57FileLinePositionSpan unmappedFileSpan, 59FileLinePositionSpan? mappedFileSpan, 113FileLinePositionSpan originalFileSpan, 115FileLinePositionSpan mappedFileSpan,
Diagnostics\IWorkspaceVenusSpanMappingService.cs (2)
20void GetAdjustedDiagnosticSpan(DocumentId documentId, Location location, out TextSpan span, out FileLinePositionSpan originalLineInfo, out FileLinePositionSpan mappedLineInfo);
Shared\Extensions\FileLinePositionSpanExtensions.cs (2)
14public static TextSpan GetClampedTextSpan(this FileLinePositionSpan span, SourceText text) 18public static LinePositionSpan GetClampedSpan(this FileLinePositionSpan span, SourceText text)
TaskList\TaskListItem.cs (2)
17[property: DataMember(Order = 3)] FileLinePositionSpan Span, 18[property: DataMember(Order = 4)] FileLinePositionSpan MappedSpan);
Microsoft.Gen.ComplianceReports (3)
Parser.cs (3)
124FileLinePositionSpan fileLine = ps.Locations[0].GetLineSpan(); 185FileLinePositionSpan fileLine = member.Locations[0].GetLineSpan(); 219FileLinePositionSpan fileLine = p.Locations[0].GetLineSpan();
Microsoft.VisualStudio.LanguageServices (8)
CallHierarchy\CallHierarchyDetail.cs (1)
43var lineSpan = location.GetLineSpan();
Diagnostics\VisualStudioVenusSpanMappingService.cs (4)
31out TextSpan sourceSpan, out FileLinePositionSpan originalLineInfo, out FileLinePositionSpan mappedLineInfo) 101DocumentId documentId, FileLinePositionSpan originalLineInfo, FileLinePositionSpan mappedLineInfo, out LinePositionSpan originalSpan, out LinePositionSpan mappedSpan)
Progression\GraphBuilder.cs (1)
234var lineSpan = preferredLocation.GetLineSpan();
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
52var span = location.GetLineSpan();
TaskList\ProjectExternalErrorReporter.cs (1)
270FileLinePositionSpan unmappedSpan,