AST function purity analysis

This commit is contained in:
Michael Schimmel
2025-11-22 14:49:24 +01:00
parent 61b6a1742b
commit 240f794211
17 changed files with 429 additions and 68 deletions
+2 -1
View File
@@ -400,7 +400,8 @@ begin
end;
// 9. Create new node with the Descriptor attached!
Result := TAst.LambdaExpr(newParams, newBody, Node.Layout, finalDescriptor, Node.Upvalues, Node.HasNestedLambdas, methodType);
Result :=
TAst.LambdaExpr(newParams, newBody, Node.Layout, finalDescriptor, Node.Upvalues, Node.HasNestedLambdas, Node.IsPure, methodType);
end;
function TTypeChecker.VisitFunctionCall(const Node: IFunctionCallNode): IAstNode;