pub trait CodeLocation { fn loc(&self) -> Loc; }
Structs can implement this trait to easily return their loc