lib/helpers.js
function createKeywords(args) {
    // TODO Hmm.. Circular dependency... something smells here...
    var validators = require('./validators');

    var keys = [];
    for(var i = 0; i < args.length; i++) {
        var keyword = {name: args[i]};
        
        if(_.isArray(args[i + 1])) {
            i++;
            keyword.args = args[i];
        }

        if(validators.isReturn(args[i + 1])) {
            i++;
            keyword.returnVar = pickReturnVar(args[i]);
        }
        keys.push(keyword);
    }
    return keys;
}
function createKeywords(args) {
    // TODO Hmm.. Circular dependency... something smells here...
    var validators = require('./validators');

    var keys = [];
    for(var i = 0; i < args.length; i++) {
        var keyword = {name: args[i]};
        
        if(_.isArray(args[i + 1])) {
            i++;
            keyword.args = args[i];
        }

        if(validators.isReturn(args[i + 1])) {
            i++;
            keyword.returnVar = pickReturnVar(args[i]);
        }
        keys.push(keyword);
    }
    return keys;
}
function createKeywords ( args ) { // TODO Hmm.. Circular dependency... something smells here... var validators = require ( './validators' ) ; var keys = [ ] ; for ( var i = 0 ; i < args . length ; i ++ ) { var keyword = { name : args [ i ] } ; if ( _ . isArray ( args [ i + 1 ] ) ) { i ++ ; keyword . args = args [ i ] ; } if ( validators . isReturn ( args [ i + 1 ] ) ) { i ++ ; keyword . returnVar = pickReturnVar ( args [ i ] ) ; } keys . push ( keyword ) ; } return keys ; }
Take arguments passed to `key.def` function. Return
keyword objs.
Take arguments passed to key . def function . Return keyword objs .