Ejemplo n.º 1
0
        protected ProducerPopulatedTagSource(
            ITextBuffer subjectBuffer,
            ITagProducer <TTag> tagProducer,
            ITaggerEventSource eventSource,
            IAsynchronousOperationListener asyncListener,
            IForegroundNotificationService notificationService,
            bool removeTagsThatIntersectEdits,
            SpanTrackingMode spanTrackingMode,
            Func <ITextBuffer, ProducerPopulatedTagSource <TTag> > bufferToRelatedTagSource = null) :
            base(subjectBuffer, notificationService, asyncListener)
        {
            if (spanTrackingMode == SpanTrackingMode.Custom)
            {
                throw new ArgumentException("SpanTrackingMode.Custom not allowed.", "spanTrackingMode");
            }

            _tagProducer = tagProducer;
            _removeTagsThatIntersectEdits = removeTagsThatIntersectEdits;
            _spanTrackingMode             = spanTrackingMode;

            _cachedTags = ImmutableDictionary.Create <ITextBuffer, TagSpanIntervalTree <TTag> >();

            _eventSource = eventSource;
            _bufferToRelatedTagSource = bufferToRelatedTagSource;

            _accumulatedTextChanges = null;

            AttachEventHandlersAndStart();
        }
Ejemplo n.º 2
0
 public ViewTagSource(
     ITextView textView, ITextBuffer subjectBuffer, ITagProducer <TTag> tagProducer, ITaggerEventSource eventSource,
     IAsynchronousOperationListener asyncListener, IForegroundNotificationService notificationService,
     bool removeTagsThatIntersectEdits) :
     base(subjectBuffer, tagProducer, eventSource, asyncListener, notificationService, removeTagsThatIntersectEdits, null)
 {
     _textView = textView;
 }
Ejemplo n.º 3
0
 public SemanticBufferTagSource(
     ITextBuffer subjectBuffer, ITagProducer <TTag> tagProducer, ITaggerEventSource eventSource,
     IAsynchronousOperationListener asyncListener, IForegroundNotificationService notificationService,
     bool removeTagsThatIntersectEdits, Func <ITextBuffer, ProducerPopulatedTagSource <TTag> > bufferToRelatedTagSource) :
     base(subjectBuffer, tagProducer, eventSource, asyncListener, notificationService, removeTagsThatIntersectEdits, bufferToRelatedTagSource)
 {
     _lastSemanticVersion = VersionStamp.Default;
 }
Ejemplo n.º 4
0
 public BufferTagSource(
     ITextBuffer subjectBuffer, ITagProducer <TTag> tagProducer, ITaggerEventSource eventSource,
     IAsynchronousOperationListener asyncListener, IForegroundNotificationService notificationService,
     bool removeTagsThatIntersectEdits,
     SpanTrackingMode spanTrackingMode,
     Func <ITextBuffer, ProducerPopulatedTagSource <TTag> > bufferToRelatedTagSource) :
     base(subjectBuffer, tagProducer, eventSource, asyncListener, notificationService, removeTagsThatIntersectEdits, spanTrackingMode, bufferToRelatedTagSource)
 {
 }
Ejemplo n.º 5
0
 public HighlightingTagSource(
     ITextView textView,
     ITextBuffer subjectBuffer,
     ITagProducer <HighlightTag> tagProducer,
     ITaggerEventSource eventSource,
     IAsynchronousOperationListener asyncListener,
     IForegroundNotificationService notificationService,
     bool removeTagsThatIntersectEdits,
     SpanTrackingMode spanTrackingMode)
     : base(textView, subjectBuffer, tagProducer, eventSource, asyncListener, notificationService, removeTagsThatIntersectEdits, spanTrackingMode)
 {
 }
Ejemplo n.º 6
0
 public SemanticBufferTagSource(
     ITextBuffer subjectBuffer,
     ITagProducer <TTag> tagProducer,
     ITaggerEventSource eventSource,
     IAsynchronousOperationListener asyncListener,
     IForegroundNotificationService notificationService,
     bool removeTagsThatIntersectEdits,
     SpanTrackingMode spanTrackingMode)
     : base(subjectBuffer, tagProducer, eventSource, asyncListener, notificationService, removeTagsThatIntersectEdits, spanTrackingMode)
 {
     _lastSemanticVersion = VersionStamp.Default;
 }
Ejemplo n.º 7
0
 public ReferenceHighlightingTagSource(
     ITextView textView,
     ITextBuffer subjectBuffer,
     ITagProducer <AbstractNavigatableReferenceHighlightingTag> tagProducer,
     ITaggerEventSource eventSource,
     IAsynchronousOperationListener asyncListener,
     IForegroundNotificationService notificationService,
     bool removeTagsThatIntersectEdits,
     SpanTrackingMode spanTrackingMode)
     : base(subjectBuffer, tagProducer, eventSource, asyncListener, notificationService, removeTagsThatIntersectEdits, spanTrackingMode, bufferToRelatedTagSource: null)
 {
     _textView = textView;
 }
Ejemplo n.º 8
0
        protected ProducerPopulatedTagSource(
            ITextBuffer subjectBuffer,
            ITagProducer <TTag> tagProducer,
            ITaggerEventSource eventSource,
            IAsynchronousOperationListener asyncListener,
            IForegroundNotificationService notificationService,
            bool removeTagsThatIntersectEdits,
            Func <ITextBuffer, ProducerPopulatedTagSource <TTag> > bufferToRelatedTagSource = null) :
            base(subjectBuffer, notificationService, asyncListener)
        {
            _tagProducer = tagProducer;
            _removeTagsThatIntersectEdits = removeTagsThatIntersectEdits;

            _cachedTags = ImmutableDictionary.Create <ITextBuffer, TagSpanIntervalTree <TTag> >();

            _eventSource = eventSource;
            _bufferToRelatedTagSource = bufferToRelatedTagSource;

            _accumulatedTextChanges = null;

            AttachEventHandlersAndStart();
        }