mirror of
https://github.com/go-delve/delve.git
synced 2025-10-30 02:07:58 +08:00
@ -120,6 +120,7 @@ func (s *Searcher) NextLines(fname string, line int) (lines []int, err error) {
|
|||||||
x = stmt
|
x = stmt
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if x.Else != nil {
|
||||||
pos := s.fileset.Position(x.Else.Pos())
|
pos := s.fileset.Position(x.Else.Pos())
|
||||||
ast.Inspect(x, func(n ast.Node) bool {
|
ast.Inspect(x, func(n ast.Node) bool {
|
||||||
if found {
|
if found {
|
||||||
@ -138,6 +139,7 @@ func (s *Searcher) NextLines(fname string, line int) (lines []int, err error) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Follow case statements.
|
// Follow case statements.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user