better compiler output for incomplete hierarchies
This commit is contained in:
@@ -149,9 +149,9 @@ public class CompileSession {
|
||||
boolean hasIncompleteHierarchyErrors;
|
||||
Collection<ClassDescriptor> incompletes = myBindingContext.getKeys(BindingContext.INCOMPLETE_HIERARCHY);
|
||||
if (!incompletes.isEmpty()) {
|
||||
out.println("following classes have incomplete hierarchies:");
|
||||
out.println(Severity.ERROR + ":: The following classes have incomplete hierarchies:");
|
||||
for (ClassDescriptor incomplete : incompletes) {
|
||||
out.println(" " + fqName(incomplete));
|
||||
out.println(Severity.ERROR + ":: " + fqName(incomplete));
|
||||
}
|
||||
hasIncompleteHierarchyErrors = true;
|
||||
} else {
|
||||
|
||||
@@ -324,7 +324,9 @@ public class JetCompiler implements TranslatingCompiler {
|
||||
int line = -1;
|
||||
int column = -1;
|
||||
int colonIndex = text.indexOf(':');
|
||||
if (colonIndex > 0) {
|
||||
if (text.startsWith(":")) {
|
||||
text = text.substring(1);
|
||||
} else if (colonIndex > 0) {
|
||||
path = "file://" + text.substring(0, colonIndex).trim();
|
||||
text = text.substring(colonIndex + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user