示例#1
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);
            }
        }
 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);
     }
 }