Endabgabe #20

Merged
i22035 merged 137 commits from Endabgabe into main 2024-07-05 11:59:47 +00:00
Showing only changes of commit 7e66b5b8e3 - Show all commits

View File

@ -372,6 +372,11 @@ public class SemanticAnalyzer implements SemanticVisitor {
}
}
} 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);
if (!toCheck.chainedMethods.isEmpty()) {
for (ChainedMethodNode chainedMethod : toCheck.chainedMethods) {
@ -388,7 +393,6 @@ public class SemanticAnalyzer implements SemanticVisitor {
} else {
return new TypeCheckResult(false, null);
}
}
return new TypeCheckResult(false, null);