Aggressively resolve soft targets containing '$' and other minor fixes

Fixes #390
This commit is contained in:
Mumfrey committed 2020-05-02 12:34:55 +01:00
1 parent 4585277f9f
commit b5299bfebc
5 files changed
+82 -15

No files matched your search

@@ -225,6 +225,10 @@ class AnnotatedMixin {
} else if (type == null) {
this.printMessage(Kind.ERROR, "Mixin target " + softTarget + " could not be found", this);
return null;
} else if (type.isImaginary()) {
this.printMessage(Kind.WARNING, "Mixin target " + softTarget + " could not be fully resolved.", this,
SuppressedBy.UNRESOLVABLE_TARGET);
return null;
} else if (type.isPublic()) {
SuppressedBy suppressedBy = (type.getPackage().isUnnamed()) ? SuppressedBy.DEFAULT_PACKAGE : SuppressedBy.PUBLIC_TARGET;
this.printMessage(Kind.WARNING, "Mixin target " + softTarget + " is public and must be specified in value", this, suppressedBy);