Implement view->function dependency resolving