package gw.lang.gosuc.simple;

import java.io.File;
import javax.tools.Diagnostic;

/**
 * @author dpetrusca
 */
public interface ICompilerDriver {
  public static final int ERROR = 0;
  public static final int WARNING = 1;

  void sendCompileIssue(File file, int category, long offset, long line, long column, String message);

  default void sendCompileIssue(Object file, int category, long offset, long line, long column, String message)
  {
    sendCompileIssue( (File)file, category, offset, line, column, message );
  }

  default void sendCompileIssue( Diagnostic d )
  {
  }

  void registerOutput(Object sourceFile, File outputFile);
}

@@ -603,43 +603,171 @@
 put(
-Object sourceFile, File outputFile);
+File sourceFile, File outputFile);%0A  %0A  default void registerOutput(Object sourceFile, File outputFile) %0A  %7B%0A    registerOutput( (File) sourceFile, outputFile);%0A  %7D
 %0A%7D%0A

Fix Compiler API