private void AddFactsSuggestionHighlighting(
     IHighlightingConsumer consumer, string message, IFact startElement, IFact endElement)
 {
     var highlighting = new HintRangeHighlighting<IFact>(startElement, endElement, message);
     IFile file = startElement.GetContainingFile();
     if (file != null)
     {
         consumer.AddHighlighting(highlighting, file);
     }
 }
Example #2
0
        private void AddSentenceSuggestionHighlighting(
            IHighlightingConsumer consumer, string message, ISentence startElement, ISentence endElement)
        {
            var   highlighting = new HintRangeHighlighting <ISentence>(startElement, endElement, message);
            IFile file         = startElement.GetContainingFile();

            if (file != null)
            {
                consumer.AddHighlighting(highlighting, file);
            }
        }
Example #3
0
 public FactsSimplificationQuickFix(HintRangeHighlighting <IFact> highlighter)
 {
     this.highlighter = highlighter;
 }
 public StatementsSimplificationQuickFix(HintRangeHighlighting<ISentence> highlighter)
 {
     this.highlighter = highlighter;
 }
 public StatementsSimplificationQuickFix(HintRangeHighlighting <ISentence> highlighter)
 {
     this.highlighter = highlighter;
 }
 public FactsSimplificationQuickFix(HintRangeHighlighting<IFact> highlighter)
 {
     this.highlighter = highlighter;
 }