lib/file-matcher.js
function resolveAnyGlobPatternsAsync(filesAndPatterns, rootSrcDir) {
  return resolveGlobsAsync(filesAndPatterns, rootSrcDir)
      .then(function(resolvedFiles) {
        var allFiles = insertResolvedFiles(filesAndPatterns, resolvedFiles);
        return allFiles.map(convertBackslashes);
      });
}
function resolveAnyGlobPatternsAsync(filesAndPatterns, rootSrcDir) {
  return resolveGlobsAsync(filesAndPatterns, rootSrcDir)
      .then(function(resolvedFiles) {
        var allFiles = insertResolvedFiles(filesAndPatterns, resolvedFiles);
        return allFiles.map(convertBackslashes);
      });
}
function resolveAnyGlobPatternsAsync ( filesAndPatterns , rootSrcDir ) { return resolveGlobsAsync ( filesAndPatterns , rootSrcDir ) . then ( function ( resolvedFiles ) { var allFiles = insertResolvedFiles ( filesAndPatterns , resolvedFiles ) ; return allFiles . map ( convertBackslashes ) ; } ) ; }
Uses glob library to resolve any file patterns in input list. Removes any
duplicate file paths and converts any path backslashes into forward slashes.
@param {!Array.<string>} filesAndPatterns List of files and file patterns,
e.g. ['my/single/file.js', 'dir/of/*.js'].
@param {string} rootSrcDir Root source directory that filesAndPatterns are
relative to.
@return {!Promise.<!Array.<string>>} Async result that will be called with
the list of resolved filenames on success.
Uses glob library to resolve any file patterns in input list . Removes any duplicate file paths and converts any path backslashes into forward slashes .