lost+found/src/pattern.js
function (char) {
                var
                    parsedItem = this._parsedItem,
                    result;
                if (parsedItem) {
                    result = parsedItem.parse(char);
                    if (bitTest(result, PatternItem.PARSE_END_OF_PATTERN)) {
                        parsedItem.finalize();
                        this._parsedItem = null;
                        // Remove the flag
                        result = bitClear(result,
                            PatternItem.PARSE_END_OF_PATTERN);
                    }
                } else {
                    result = 0;
                }
                return result;
            }
function (char) {
                var
                    parsedItem = this._parsedItem,
                    result;
                if (parsedItem) {
                    result = parsedItem.parse(char);
                    if (bitTest(result, PatternItem.PARSE_END_OF_PATTERN)) {
                        parsedItem.finalize();
                        this._parsedItem = null;
                        // Remove the flag
                        result = bitClear(result,
                            PatternItem.PARSE_END_OF_PATTERN);
                    }
                } else {
                    result = 0;
                }
                return result;
            }
function ( char ) { var parsedItem = this . _parsedItem , result ; if ( parsedItem ) { result = parsedItem . parse ( char ) ; if ( bitTest ( result , PatternItem . PARSE_END_OF_PATTERN ) ) { parsedItem . finalize ( ) ; this . _parsedItem = null ; // Remove the flag result = bitClear ( result , PatternItem . PARSE_END_OF_PATTERN ) ; } } else { result = 0 ; } return result ; }
Reduce the cyclomatic complexity of parse
Process current item

@param {String} char
@return {Number}
@private
Reduce the cyclomatic complexity of parse Process current item