public void Visit(Declaration declaration) { declaration.Typed.Accept(this); _sb.Append(";"); if (declaration.Assignment != null) { _sb.Append("\n"); Indent(); declaration.Assignment.Accept(this); } }
public void Visit(Declaration declaration) { declaration.Typed.Accept(this); _env.AddSymbolInFunction(declaration.Typed.Id.Name, declaration.Typed.Id.SmclType); if (declaration.Assignment != null) { declaration.Assignment.Accept(this); } }