Skip to content
Snippets Groups Projects
Commit 1dbf4fa7 authored by Adam Welc's avatar Adam Welc
Browse files

Fixed function definition duplication that was being affected by enabling instrumentation.

parent da0e38a3
Branches
No related tags found
No related merge requests found
......@@ -131,7 +131,7 @@ public final class FunctionDefinitionNode extends RRootNode implements RSyntaxNo
public RRootNode duplicateWithNewFrameDescriptor() {
FrameDescriptor frameDesc = new FrameDescriptor();
FrameSlotChangeMonitor.initializeFunctionFrameDescriptor(description != null && !description.isEmpty() ? description : "<function>", frameDesc);
return new FunctionDefinitionNode(getSourceSection(), frameDesc, (BodyNode) body.deepCopy(), getFormalArguments(), description, substituteFrame, argPostProcess == null ? null
return new FunctionDefinitionNode(getSourceSection(), frameDesc, (BodyNode) body.unwrap().deepCopy(), getFormalArguments(), description, substituteFrame, argPostProcess == null ? null
: (PostProcessArgumentsNode) argPostProcess.deepCopy());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment