="style-checker-alternatives">Section 14.6: How else could the AST walker work?</h2>
<p>A third approach to this problem uses
the <span class="ix-entry" ix-key="Iterator pattern;design pattern!Iterator" markdown="1"><a class="gl-ref" href="../glossary/#iterator_pattern" markdown="1">Iterator</a></span> design pattern.
Instead of taking the computation to the nodes,
an iterator returns the elements of a structure for processing
(<a class="fig-ref" href="../style-checker/#style-checker-iterator">Figure 14.3</