Fixed Target = null
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
i22035 2024-07-04 22:53:33 +02:00
parent d835a98e6f
commit 7e66b5b8e3

View File

@ -372,6 +372,11 @@ public class SemanticAnalyzer implements SemanticVisitor {
} }
} }
} else { } else {
if(toCheck.identifier != null) {
toCheck.target = new TargetNode(new MemberAccessNode(false));
toCheck.target.memberAccess.identifiers.add(currentClass.identifier);
}
ReferenceType reference = new ReferenceType(currentClass.identifier); ReferenceType reference = new ReferenceType(currentClass.identifier);
if (!toCheck.chainedMethods.isEmpty()) { if (!toCheck.chainedMethods.isEmpty()) {
for (ChainedMethodNode chainedMethod : toCheck.chainedMethods) { for (ChainedMethodNode chainedMethod : toCheck.chainedMethods) {
@ -388,7 +393,6 @@ public class SemanticAnalyzer implements SemanticVisitor {
} else { } else {
return new TypeCheckResult(false, null); return new TypeCheckResult(false, null);
} }
} }
return new TypeCheckResult(false, null); return new TypeCheckResult(false, null);