docs: function (tree, options, callback) {
              ariaCoreJsonValidator.check(tree, "aria.templates.TreeBeans.Root");
              var out = new ariaTemplatesClassWriter({
                  fn : this.__processStatement,
                  scope : this
              }, options.skipLogError ? null : {
                  fn : this.__logError,
                  scope : this
              });
  
              out.errorContext = options.errorContext;
              out.allDependencies = options.allDependencies;
              out.callback = callback;
              out.tree = tree;
              out.debug = (options.debug === true);
              out.dontLoadWidgetLibs = (options.dontLoadWidgetLibs === true);
              if (options.parseOnly) {
                  out.enableParseOnly();
              }
              this._processRootStatement(out, tree);
              if (out.errors) {
                  out.$dispose();
                  this.$callback(callback, {
                      errors : out.errors,
                      classDef : null
                  });
              }
          }