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