docs: public List<AstNode> getStatements() {
          List<AstNode> stmts = new ArrayList<AstNode>();
          Node n = getFirstChild();
          while (n != null) {
              stmts.add((AstNode)n);
              n = n.getNext();
          }
          return stmts;
      }