refactor(semantic): impl IntoIterator
for &AstNodes
#5873
Merged
IntoIterator
for &AstNodes
#5873