public void report()

in java/io/bazel/rules/closure/worker/ErrorReporter.java [98:136]


  public void report(String code, String message) {
    checkNotNull(code);
    checkArgument(!message.isEmpty());
    Set<String> destination;
    if (suppress.isPresent()) {
      if (code.isEmpty()) {
        if (suppress.get().contains(SUPPRESS_EVERYTHING)) {
          destination = warnings;
        } else {
          destination = errors;
          failed.set(true);
        }
      } else {
        if (suppress.get().contains(code)) {
          destination = null;
          suppressed.add(code);
        } else {
          if (suppress.get().contains(SUPPRESS_EVERYTHING)) {
            destination = warnings;
          } else {
            destination = errors;
            failed.set(true);
          }
          if (label.isPresent()) {
            notes.put(
                message,
                String.format(
                    "To make this go away add suppress=[\"%s\"] to %s", code, label.get()));
          }
        }
      }
    } else {
      destination = errors;
      failed.set(true);
    }
    if (destination != null) {
      destination.add(message);
    }
  }