2 overrides of GetLineSpan
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxTree.cs (1)
646public override FileLinePositionSpan GetLineSpan(TextSpan span, CancellationToken cancellationToken = default)
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxTree.vb (1)
434Public Overrides Function GetLineSpan(span As TextSpan, Optional cancellationToken As CancellationToken = Nothing) As FileLinePositionSpan
10 references to GetLineSpan
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (1)
181FileLinePositionSpan linePosSpan = operationSyntaxTree.GetLineSpan(memberNameSpan);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Endpoint.cs (1)
164var lineSpan = operation.Syntax.SyntaxTree.GetLineSpan(invocationNameSpan);
Microsoft.CodeAnalysis (1)
Diagnostic\SourceLocation.cs (1)
91return _syntaxTree.GetLineSpan(_span);
Microsoft.CodeAnalysis.CSharp (1)
Parser\Blender.cs (1)
151var column = oldTree.SyntaxTree.GetLineSpan(new TextSpan(start, 0)).Span.Start.Character;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\ParserRegressionTests.cs (1)
166var fileLinePositionSpan = tree.GetLineSpan(textSpan); // throws ArgumentOutOfRangeException
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (4)
74var actualLineSpan = tree.GetLineSpan(highlightSpans[j]).Span; 80var expectedLineSpan = tree.GetLineSpan(expectedHighlightSpans[j]).Span; 89Assert.Equal(tree.GetLineSpan(expected).Span, tree.GetLineSpan(actual).Span);
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\DiagnosticDataLocation.cs (1)
106tree.GetLineSpan(newSourceSpan),