Out-of-process compiler

This commit is contained in:
Maxim Shafirov
2012-02-02 18:58:49 +04:00
parent 83587b72a9
commit 14ab62cf7a
2 changed files with 53 additions and 104 deletions
@@ -40,11 +40,11 @@ class ErrorCollector {
void report(final PrintStream out) {
if(!maps.isEmpty()) {
for (PsiFile psiFile : maps.keySet()) {
out.println(psiFile.getVirtualFile().getPath());
String path = psiFile.getVirtualFile().getPath();
Collection<DiagnosticWithTextRange> diagnosticWithTextRanges = maps.get(psiFile);
for (DiagnosticWithTextRange diagnosticWithTextRange : diagnosticWithTextRanges) {
String position = DiagnosticUtils.formatPosition(diagnosticWithTextRange);
out.println("\t" + diagnosticWithTextRange.getSeverity().toString() + ": " + position + " " + diagnosticWithTextRange.getMessage());
out.println(diagnosticWithTextRange.getSeverity().toString() + ": " + path + ":" + position + " " + diagnosticWithTextRange.getMessage());
}
}
}