@@ -171,6 +171,21 @@ else
171171 is_breakpoint_marker (stmt) = stmt === __BREAK_POINT_MARKER__
172172end
173173
174+ @static if VERSION ≥ v " 1.12.0-DEV.173"
175+ function pushuniquefiles! (unique_files:: Set{Symbol} , lt)
176+ for edge in lt. edges
177+ pushuniquefiles! (unique_files, edge)
178+ end
179+ linetable = lt. linetable
180+ if linetable === nothing
181+ push! (unique_files, Base. IRShow. debuginfo_file1 (lt))
182+ else
183+ pushuniquefiles! (unique_files, linetable)
184+ end
185+ return unique_files
186+ end
187+ end
188+
174189function FrameCode (scope, src:: CodeInfo ; generator= false , optimize= true )
175190 if optimize
176191 src, methodtables = optimize! (copy (src), scope)
@@ -196,17 +211,6 @@ function FrameCode(scope, src::CodeInfo; generator=false, optimize=true)
196211 lt = linetable (src)
197212 unique_files = Set {Symbol} ()
198213 @static if VERSION ≥ v " 1.12.0-DEV.173"
199- function pushuniquefiles! (unique_files:: Set{Symbol} , lt)
200- for edge in lt. edges
201- pushuniquefiles! (unique_files, edge)
202- end
203- linetable = lt. linetable
204- if linetable === nothing
205- push! (unique_files, Base. IRShow. debuginfo_file1 (lt))
206- else
207- pushuniquefiles! (unique_files, linetable)
208- end
209- end
210214 pushuniquefiles! (unique_files, lt)
211215 else # VERSION < v"1.12.0-DEV.173"
212216 for entry in lt
0 commit comments