function setQueryInfo(state, queryInfo) {
        state.queryInfo = queryInfo;
        if (!queryInfo) {
            state.parsedQuery = null;
        } else {
            state.parsedQuery = parseQuery(queryInfo);
        }
    }
@private
Determine the query from the given info and store it in the state.
@param {SearchState} state The state to store the parsed query in
@param {{query: string, caseSensitive: boolean, isRegexp: boolean}} queryInfo
     The query info object as returned by FindBar.getQueryInfo()