Exemplo n.º 1
0
        public override void VisitRuleDeclaredName(IRuleDeclaredName ruleDeclaredName, IHighlightingConsumer consumer)
        {
            DocumentRange colorConstantRange = ruleDeclaredName.GetDocumentRange();

            AddHighLighting(colorConstantRange, ruleDeclaredName, consumer, new PsiRuleHighlighting(ruleDeclaredName));
            base.VisitRuleDeclaredName(ruleDeclaredName, consumer);
        }
 public override void VisitRuleDeclaredName(IRuleDeclaredName ruleDeclaredName, IHighlightingConsumer consumer)
 {
   string name = ruleDeclaredName.GetText();
   if (myDeclarations.ContainsKey(name))
   {
     List<IDeclaration> list = myDeclarations.GetValue(name);
     if (list.Count > 1)
     {
       consumer.AddHighlighting(new DuplicatingLocalDeclarationError(ruleDeclaredName), File);
     }
   }
   base.VisitRuleDeclaredName(ruleDeclaredName, consumer);
 }
        public override void VisitRuleDeclaredName(IRuleDeclaredName ruleDeclaredName, IHighlightingConsumer consumer)
        {
            var name = ruleDeclaredName.GetText();

            if (myDeclarations.ContainsKey(name))
            {
                List <IDeclaration> list = myDeclarations.GetValue(name);
                if (list.Count > 1)
                {
                    consumer.AddHighlighting(new DuplicatingLocalDeclarationError(ruleDeclaredName), File);
                }
            }
            base.VisitRuleDeclaredName(ruleDeclaredName, consumer);
        }
 public override void VisitRuleDeclaredName(IRuleDeclaredName ruleDeclaredName, IHighlightingConsumer consumer)
 {
   DocumentRange colorConstantRange = ruleDeclaredName.GetDocumentRange();
   AddHighLighting(colorConstantRange, ruleDeclaredName, consumer, new PsiRuleHighlighting(ruleDeclaredName));
   base.VisitRuleDeclaredName(ruleDeclaredName, consumer);
 }
Exemplo n.º 5
0
 public override string VisitRuleDeclaredName(IRuleDeclaredName ruleDeclaredNameParam, FormattingStageContext context)
 {
     return(myIndentCache.GetNodeIndent(ruleDeclaredNameParam));
 }