move to revised warning interface in the compiler

This commit is contained in:
Mark Harrah 2012-05-06 14:15:03 -04:00
parent c6c6061639
commit 05fb991488
3 changed files with 4 additions and 2 deletions

View File

@ -26,5 +26,5 @@ public interface AnalysisCallback
public void api(File sourceFile, xsbti.api.SourceAPI source);
/** Provides problems discovered during compilation. These may be reported (logged) or unreported.
* Unreported problems are usually unreported because reporting was not enabled via a command line switch. */
public void problem(Position pos, String msg, Severity severity, boolean reported);
public void problem(String what, Position pos, String msg, Severity severity, boolean reported);
}

View File

@ -5,6 +5,7 @@ package xsbti;
public interface Problem
{
String category();
Severity severity();
String message();
Position position();

View File

@ -79,9 +79,10 @@ object Logger
val sourceFile = o2m(sourceFile0)
}
def problem(pos: Position, msg: String, sev: Severity): Problem =
def problem(cat: String, pos: Position, msg: String, sev: Severity): Problem =
new Problem
{
val category = cat
val position = pos
val message = msg
val severity = sev