예제 #1
0
 /// <summary>
 /// Gets the range.
 /// </summary>
 /// <param name="statement">
 /// The statement.
 /// </param>
 /// <returns>
 /// </returns>
 private static DocumentRange GetRange(IStatement statement)
 {
     return statement.GetDocumentRange();
 }
        public static DocumentCoords GetPositionAfterStatement([NotNull] IStatement statement, [NotNull] IDocument document)
        {
            int lastStatementEndOffset = statement.GetDocumentRange().TextRange.EndOffset;

            return(document.GetCoordsByOffset(lastStatementEndOffset));
        }