Visualizer node aggregates
Fix in macro expander
This commit is contained in:
@@ -181,9 +181,11 @@ end;
|
||||
|
||||
function TAstBinder.VisitMacroExpansionNode(const Node: IMacroExpansionNode): IAstNode;
|
||||
begin
|
||||
// The MacroExpander (Phase 1) should have unwrapped this.
|
||||
// We only visit the *expanded* body.
|
||||
Result := Accept(Node.ExpandedBody);
|
||||
// The MacroExpander (Phase 1) created this node.
|
||||
// We must bind the ExpandedBody, but keep the MacroExpansionNode wrapper.
|
||||
// The base TAstTransformer implementation already does exactly this
|
||||
// by visiting Callee, Arguments, and ExpandedBody.
|
||||
Result := inherited VisitMacroExpansionNode(Node);
|
||||
end;
|
||||
|
||||
function TAstBinder.VisitFunctionCall(const Node: IFunctionCallNode): IAstNode;
|
||||
|
||||
Reference in New Issue
Block a user