parseDependencyFile = function(text, filePath) {
  const dependencies = [];
  const errors = [];
  let regexResult;
  const regex = googAddDependency();

  while (regexResult = regex.exec(text)) {
    try {
      dependencies.push(parseDependencyResult(
          regexResult[1], regexResult[2], regexResult[3], regexResult[4]));
    } catch (e) {
      errors.push(new SourceError(e.toString(), filePath));
    }
  }

  return new ParseResult(
      dependencies, errors, ParseResult.Source.GOOG_ADD_DEPENDENCY);
}
Parses a file that contains only goog.addDependency statements. This is regex
based to be lightweight and avoid addtional dependencies.

@param {string} text
@param {string} filePath
@return {!ParseResult}