Beispiel #1
0
        public void ProcessBeforeInterior(ITreeNode element)
        {
            var usingList = element as IUsingList;

            if (usingList == null)
            {
                return;
            }

            if (usingList.Imports.Any(_ => _.ImportedSymbolName.QualifiedName.Contains("Quantum")))
            {
                foreach (var imports in usingList.Imports.ToListWhere(
                             _ => _.ImportedSymbolName.QualifiedName.Contains("Quantum")))
                {
                    Consumer.AddHighlighting(new UsingHighlighing(imports));
                }
            }
        }
 protected void AddHighlighting(DocumentRange range, IHighlighting highlighting)
 {
     _highlightingConsumer.AddHighlighting(highlighting, range);
 }