Added a function to get method asts for M3 method locations.