src/aria/templates/CSSParser.js
function (template, context, statements, throwErrors) {
            this.context = context;
            // Remove comments
            this._prepare(template, throwErrors);
            // Preprocess
            if (!this.__preprocess(statements, throwErrors)) {
                return null;
            }
            // Compute line numbers
            this._computeLineNumbers();
            // Build the tree
            return this._buildTree(throwErrors);
        }
function (template, context, statements, throwErrors) {
            this.context = context;
            // Remove comments
            this._prepare(template, throwErrors);
            // Preprocess
            if (!this.__preprocess(statements, throwErrors)) {
                return null;
            }
            // Compute line numbers
            this._computeLineNumbers();
            // Build the tree
            return this._buildTree(throwErrors);
        }
function ( template , context , statements , throwErrors ) { this . context = context ; // Remove comments this . _prepare ( template , throwErrors ) ; // Preprocess if ( ! this . __preprocess ( statements , throwErrors ) ) { return null ; } // Compute line numbers this . _computeLineNumbers ( ) ; // Build the tree return this . _buildTree ( throwErrors ) ; }
Parse the given CSS template and return a tree representing the template. Overrides aria.templates.Parser to
preprocess the text and escape curly brackets
@param {String} template to parse
@param {Object} context template context data, passes additional information the to error log
@param {Object} statements list of statements allowed by the class generator
@param {Boolean} throwErrors if true, errors will be thrown instead of being logged
@return {aria.templates.TreeBeans:Root} The tree built from the template, or null if an error occured. After
the execution of this method, this.template contains the template with comments and some spaces and removed,
and this.positionToLineNumber can be used to transform positions in this.template into line numbers.
Parse the given CSS template and return a tree representing the template . Overrides aria . templates . Parser to preprocess the text and escape curly brackets