index.js
function (state, scope, secondaryScope) {
        if(!validators.isBlockStart(state)) return state.error(constants.unexpectedToken);
        state.next(); //Skip block start.

        utils.statementsInBlock(state, scope, secondaryScope);

        if(!validators.isBlockEnd(state)) return state.error(constants.unexpectedToken);
        state.next(); //Skip block end.
    }
function (state, scope, secondaryScope) {
        if(!validators.isBlockStart(state)) return state.error(constants.unexpectedToken);
        state.next(); //Skip block start.

        utils.statementsInBlock(state, scope, secondaryScope);

        if(!validators.isBlockEnd(state)) return state.error(constants.unexpectedToken);
        state.next(); //Skip block end.
    }
function ( state , scope , secondaryScope ) { if ( ! validators . isBlockStart ( state ) ) return state . error ( constants . unexpectedToken ) ; state . next ( ) ; //Skip block start. utils . statementsInBlock ( state , scope , secondaryScope ) ; if ( ! validators . isBlockEnd ( state ) ) return state . error ( constants . unexpectedToken ) ; state . next ( ) ; //Skip block end. }
Parses a Block Statement.
@param state The parser state.
@param [scope] {string} The scope to use when parsing the statements inside the block.
@returns {*}
Parses a Block Statement .