Example #1
0
        public void SetDotNetSpanMap(ITextView textView, IDotNetSpanMap?map)
        {
            if (textView is null)
            {
                throw new ArgumentNullException(nameof(textView));
            }
            var service = GlyphTextViewMarkerService.TryGet(textView);

            Debug.Assert(!(service is null));
            service?.SetDotNetSpanMap(map);
        }
        public void SetMethodOffsetSpanMap(ITextView textView, IMethodOffsetSpanMap map)
        {
            if (textView == null)
            {
                throw new ArgumentNullException(nameof(textView));
            }
            var service = GlyphTextViewMarkerService.TryGet(textView);

            Debug.Assert(service != null);
            service?.SetMethodOffsetSpanMap(map);
        }