File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -613,18 +613,18 @@ end
613
613
614
614
isgotonode (node) = isa (node, GotoNode) || isexpr (node, :gotoifnot )
615
615
616
- location (frame) = location (frame, frame. pc[])
617
- function location (frame, pc)
616
+ linenumber (frame) = linenumber (frame, frame. pc[])
617
+ function linenumber (frame, pc)
618
618
codeloc = frame. code. code. codelocs[pc. next_stmt]
619
619
return frame. code. scope isa Method ?
620
620
frame. code. code. linetable[codeloc]. line :
621
621
codeloc
622
622
end
623
623
function next_line! (stack, frame, dbstack = nothing )
624
- initial = location (frame)
624
+ initial = linenumber (frame)
625
625
first = true
626
626
pc = frame. pc[]
627
- while location (frame, pc) == initial
627
+ while linenumber (frame, pc) == initial
628
628
# If this is a return node, interrupt execution. This is the same
629
629
# special case as in `s`.
630
630
expr = pc_expr (frame, pc)
Original file line number Diff line number Diff line change @@ -211,6 +211,6 @@ function f(x)
211
211
return x* x
212
212
end
213
213
frame = JuliaInterpreter. enter_call (f, 3 )
214
- @test JuliaInterpreter. location (frame, JuliaInterpreter. JuliaProgramCounter (1 )) == defline + 1
215
- @test JuliaInterpreter. location (frame, JuliaInterpreter. JuliaProgramCounter (3 )) == defline + 4
216
- @test JuliaInterpreter. location (frame, JuliaInterpreter. JuliaProgramCounter (5 )) == defline + 6
214
+ @test JuliaInterpreter. linenumber (frame, JuliaInterpreter. JuliaProgramCounter (1 )) == defline + 1
215
+ @test JuliaInterpreter. linenumber (frame, JuliaInterpreter. JuliaProgramCounter (3 )) == defline + 4
216
+ @test JuliaInterpreter. linenumber (frame, JuliaInterpreter. JuliaProgramCounter (5 )) == defline + 6
You can’t perform that action at this time.
0 commit comments