A Unified Asymptotic Distribution Theory for Parametric and Non-Parametric Least Squares