public override void ProcessBeforeInterior(ITreeNode element, IHighlightingConsumer context) { if (!(element is IT4TreeNode t4Element)) { return; } var visitor = new T4SyntaxHighlightingVisitor(context); t4Element.Accept(visitor); }
public void ProcessBeforeInterior(ITreeNode element, IHighlightingConsumer consumer) { string attributeId = GetHighlightingAttributeId(element); if (attributeId != null) { DocumentRange range = element.GetHighlightingRange(); consumer.AddHighlighting(new ReSharperSyntaxHighlighting(attributeId, string.Empty, range)); } if (!(element is IT4TreeNode t4Element)) { return; } var visitor = new T4SyntaxHighlightingVisitor(consumer); t4Element.Accept(visitor); }