Ejemplo n.º 1
0
        private static void AddHighlighting(IReferenceExpression reference, IHighlightingConsumer consumer)
        {
            var nameIdentifier = reference.NameIdentifier;
            var documentRange  = nameIdentifier.GetDocumentRange();
            var highlighting   = new MaximumChainedReferencesHighlighting(Warnings.ChainedReferences, documentRange);

            consumer.AddHighlighting(highlighting);
        }
Ejemplo n.º 2
0
        private static void AddHighlighting(IReferenceExpression reference, IHighlightingConsumer consumer, int threshold, int currentValue)
        {
            var nameIdentifier = reference.NameIdentifier;
            var documentRange  = nameIdentifier.GetDocumentRange();
            var highlighting   = new MaximumChainedReferencesHighlighting(documentRange, threshold, currentValue);

            consumer.AddHighlighting(highlighting);
        }