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);
     }
 }
Exemple #2
0
        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);
            }
        }