4 references to GetPositionWithinDocumentBounds
Microsoft.VisualStudio.LanguageServices (4)
Workspace\VisualStudioDocumentNavigationService.cs (4)
79var boundedPosition = GetPositionWithinDocumentBounds(position, text.Length); 139var boundedPosition = GetPositionWithinDocumentBounds(position, text.Length); 375=> TextSpan.FromBounds(GetPositionWithinDocumentBounds(span.Start, documentLength), GetPositionWithinDocumentBounds(span.End, documentLength));