MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / copy

Method copy

aura/stack.py:100–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 del top
99
100 def copy(self):
101 frames = []
102 frame = self.frame
103 while frame:
104 new_frame = frame.copy()
105 if frames:
106 new_frame.previous = frames[-1]
107 frames.append(new_frame)
108 frame = frame.previous
109
110 new_stack = self.__class__()
111 new_stack.frame = frames[-1]
112 new_stack.bottom = frames[0]
113 return new_stack
114
115
116class CallGraph:

Callers 1

test_stack_copyFunction · 0.95

Calls 1

copyMethod · 0.45

Tested by 1

test_stack_copyFunction · 0.76