SyntaxTreeExtensions Class
Namespace: Roslynator
Assembly: Roslynator.Core.dll
A set of extension methods for SyntaxTree.
public static class SyntaxTreeExtensions
Methods
Method | Summary |
---|---|
GetEndLine(SyntaxTree, TextSpan, CancellationToken) | Returns zero-based index of the end line of the specified span. |
GetStartLine(SyntaxTree, TextSpan, CancellationToken) | Returns zero-based index of the start line of the specified span. |
IsMultiLineSpan(SyntaxTree, TextSpan, CancellationToken) | Returns true if the specified TextSpan spans over multiple lines. |
IsSingleLineSpan(SyntaxTree, TextSpan, CancellationToken) | Returns true if the specified TextSpan does not span over multiple lines. |