public void Add(Server s)
 {
     PartEnv ce = new PartEnvServer(s);
     Server = ce;
     VisitPartEnv = ce;
 }
 public void AddClientForMethodInvocation(Typed var, PartEnv client)
 {
     if (!IsVisitingServer())
         throw new TypeCheckingException("you can invoke methods only from a Server instance --> " + var.Id.Name);
     AddSymbolInFunction(var.Id.Name, var.SmclType);
     VisitPartEnv.Functions[VisitFunName].IdToClient.Add(var.Id.Name, client);
 }
 public void Add(Client c)
 {
     PartEnv ce = new PartEnvClient(c);
     Clients.Add(ce);
     VisitPartEnv = ce;
 }