code: public DslPart closeArray() {
        if (parent != null) {
          parent.putArray(this);
        } else {
          getMatchers().applyMatcherRootPrefix("$");
          getGenerators().applyRootPrefix("$");
        }
        closed = true;
        return parent;
      }
docs: Closes the current array