Skip to content

Commit 8c0d7f3

Browse files
committed
refactor(debugger): improve parameter names in ShouldStop method
- Renamed 'line' parameter to 'filename' for clarity - Renamed 'col' parameter to 'line' to better reflect its purpose - Improves code readability and maintainability
1 parent 1d1d0ec commit 8c0d7f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

debugger/debugger.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ var Debuggables = map[ast.NodeType]struct{}{
4747

4848
// Internal API
4949

50-
func (d *Debugger) ShouldStop(line string, col int) bool {
51-
return d.BreakpointManager.Has(line, col)
50+
func (d *Debugger) ShouldStop(filename string, line int) bool {
51+
return d.BreakpointManager.Has(filename, line)
5252
}
5353

5454
func (d *Debugger) IsDebuggable(astNode ast.Stmt) bool {

0 commit comments

Comments
 (0)