Пример #1
0
 private void markUnreferenced(Declarations d)
 {
     foreach (VarDecl vd in d.getAllVars())
     {
         vd.Referenced = false;
     }
 }
Пример #2
0
 private void discardUnreferenced(Declarations d)
 {
     VarDecl[] vds = d.getAllVars().ToArray();
     foreach (VarDecl vd in vds)
     {
         if (!vd.Referenced)
         {
             d.removeVar(vd);
         }
     }
 }