restrictToFunction

Only consider locations which are in the same (non-nested) function as start.