Exemple #1
0
 public void allDeclarationsDo(Functor1 <NamedValueDeclaration> enumerator1)
 {
     localDeclarationsDo(enumerator1);
     if (nonLocalBindings != null)
     {
         foreach (var kvp in nonLocalBindings)
         {
             enumerator1(kvp.Value);
         }
     }
     if (instanceVariableBindings != null)
     {
         foreach (var kvp in instanceVariableBindings)
         {
             enumerator1(kvp.Value);
         }
     }
     if (namespaceResidentBindings != null)
     {
         foreach (var kvp in namespaceResidentBindings)
         {
             enumerator1(kvp.Value);
         }
     }
     if (outerScope != null)
     {
         outerScope.allDeclarationsDo(enumerator1);
     }
 }