SyntaxTreeExtensions.IsSingleLineSpan(SyntaxTree, TextSpan, CancellationToken) Method
Containing Type: SyntaxTreeExtensions
Assembly: Roslynator.Core.dll
Returns true if the specified TextSpan does not span over multiple lines.
public static bool IsSingleLineSpan(this Microsoft.CodeAnalysis.SyntaxTree syntaxTree, Microsoft.CodeAnalysis.Text.TextSpan span, System.Threading.CancellationToken cancellationToken = default)
Parameters
syntaxTree SyntaxTree
span TextSpan
cancellationToken CancellationToken