aboutsummaryrefslogblamecommitdiff
path: root/interfaces/src/dotty/tools/dotc/interfaces/ReporterResult.java
blob: f75519db2d2ef906bd940a386941e965e4b25b57 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                     
                                           
                      
                                                        

                   
                                              
                        
                                                          

                     
package dotty.tools.dotc.interfaces;

/** Summary of the diagnostics emitted by a Reporter.
 *
 *  User code should not implement this interface, but it may have to
 *  manipulate objects of this type.
 */
public interface ReporterResult {
  /** @return Have we emitted any error? */
  boolean hasErrors();
  /** @return Number of errors that have been emitted */
  int errorCount();

  /** @return Have we emitted any warning ? */
  boolean hasWarnings();
  /** @return Number of warnings that have been emitted */
  int warningCount();
}