public void Visit(Typed typed) { //if (_noTypeFlag) typed.Id.Accept(this); }
public void Visit(Typed typed) { _sb.Append(typed.SmclType); _sb.Append(" "); typed.Id.Accept(this); }
public Declaration(Typed typed, Assignment assignment) { _typed = typed; _assignment = assignment; }
public For(Typed typed, Id id, Stmt body) { _typed = typed; _id = id; _body = body; }
public Declaration(Typed typed) { _typed = typed; }
public Tunnel(Typed typed) { _typed = typed; }
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 Visit(Typed typed) { if (_env.VariableAlreadyDefined(typed.Id.Name)) throw new TypeCheckingException("Variable already defined --> " + typed.Id.Name); typed.Id.SmclType = typed.SmclType; }
public void RemoveClientForMethodInvocation(Typed var) { RemoveSymbolInFunction(var.Id.Name); VisitPartEnv.Functions[VisitFunName].IdToClient.Remove(var.Id.Name); }