src/aria/templates/ClassGenerator.js
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
                });
            }
        }
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
                });
            }
        }
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 } ) ; } }
Build the template class from the tree given by the parser.
@private
@param {aria.templates.TreeBeans:Root} tree tree returned by the parser.
@param {aria.templates.CfgBeans:ClassGeneratorCfg} options Options for class generation.
@param {aria.core.CfgBeans:Callback} callback the callback description
Build the template class from the tree given by the parser .