Imutability for macro nodes
This commit is contained in:
@@ -1809,7 +1809,7 @@ end;
|
||||
|
||||
function TMacroExpansionNodeHandler.ReconstructAst(OwnerNode: TAuraNode): IAstNode;
|
||||
begin
|
||||
Result := TAst.MacroExpansionNode(FNode, FExpandedBodyNode.CreateAst);
|
||||
Result := TAst.MacroExpansionNode(FNode.CallNode, FExpandedBodyNode.CreateAst);
|
||||
end;
|
||||
|
||||
{ TRecurNodeHandler }
|
||||
|
||||
@@ -117,7 +117,7 @@ begin
|
||||
// To represent a macro expansion as a single line of text, the most
|
||||
// informative representation is the original call itself. We can simply
|
||||
// delegate to the VisitFunctionCall implementation to format it.
|
||||
Result := VisitFunctionCall(Node);
|
||||
Result := VisitFunctionCall(Node.CallNode);
|
||||
end;
|
||||
|
||||
function TAstToTextVisitor.VisitRecurNode(const Node: IRecurNode): string;
|
||||
|
||||
Reference in New Issue
Block a user