refactor(semantic): simplify ScopeTree::iter_bindings
#8723
+17
−21
ScopeTree::iter_bindings
#8723