public void Visit(TryCatchAst ast)
        {
            ast.TryBody.Visit(this);

            if (ast.CatchBody != null)
            {
                ast.CatchBody.Visit(this);
            }
        }
 public void Visit(TryCatchAst ast)
 {
     try
     {
         Exec(ast.TryBody);
     }
     catch (ReturnException ex)
     {
         throw;
     }
     catch (Exception ex)
     {
         Exec(ast.CatchBody);
     }
 }
Ejemplo n.º 3
0
 public void Visit(TryCatchAst ast)
 {
     throw new NotImplementedException();
 }