public override AstVisitAction VisitThrowStatement(ThrowStatementAst throwStatementAst) { object targetObject = GetTargetObject(throwStatementAst); if (targetObject is Exception) { throw (Exception)targetObject; } string errorMessage = GetErrorMessageForThrowStatement(targetObject); throw new RuntimeException(errorMessage); }