SyntaxTreeExtensions.GetStartLine(SyntaxTree, TextSpan, CancellationToken) Method
Containing Type: SyntaxTreeExtensions
Assembly: Roslynator.Core.dll
Returns zero-based index of the start line of the specified span.
public static int GetStartLine(this Microsoft.CodeAnalysis.SyntaxTree syntaxTree, Microsoft.CodeAnalysis.Text.TextSpan span, System.Threading.CancellationToken cancellationToken = default)
Parameters
syntaxTree SyntaxTree
span TextSpan
cancellationToken CancellationToken