js/ka-validator.js
/**
     * Performs validation of a given structural rule with the specified options
     * on the specified Abstract Syntax Tree.
     * @param {Object} ast - the abstract syntax tree object generated by the parser
     * @param {Object} rule - the rule object containing the desired code structure
     * @param {Object} [options] - an optional options object containing a set of options
     * to use in the structural validation. Currently only strict: true|false is supported.
     */
Performs validation of a given structural rule with the specified options
on the specified Abstract Syntax Tree.
@param {Object} ast - the abstract syntax tree object generated by the parser
@param {Object} rule - the rule object containing the desired code structure
@param {Object} [options] - an optional options object containing a set of options
to use in the structural validation. Currently only strict: true|false is supported.
Performs validation of a given structural rule with the specified options on the specified Abstract Syntax Tree . @param { Object } ast - the abstract syntax tree object generated by the parser @param { Object } rule - the rule object containing the desired code structure @param { Object } [ options ] - an optional options object containing a set of options to use in the structural validation . Currently only strict : true|false is supported .
function evaluateStructuralRule(ast, rule, options) {
        if (rule) {
            return compareNodeToStructuralRule(ast, rule, options || {strict: true});
        }
        return true;
    }
function evaluateStructuralRule ( ast , rule , options ) { if ( rule ) { return compareNodeToStructuralRule ( ast , rule , options || { strict : true } ) ; } return true ; }
Performs validation of a given structural rule with the specified options
 on the specified Abstract Syntax Tree.
Performs validation of a given structural rule with the specified options on the specified Abstract Syntax Tree .