This project is read-only.

How to get TextSpan for given LinePositionSpan?

Topics: APIs
Nov 19, 2014 at 2:47 PM
SyntaxTree has GetLineSpan method for opposite conversion. But I cannot find a method to calculate TextSpan from LinePositionSpan. Any help appreciated.

Regards
Nov 20, 2014 at 10:37 AM
Found it: syntaxTree.GetText().Lines.GetTextSpan(...)