diff --git a/dbdoc/funcs.go b/dbdoc/funcs.go index 239a378..070b784 100644 --- a/dbdoc/funcs.go +++ b/dbdoc/funcs.go @@ -159,7 +159,7 @@ func analyzeFuncBody(ctx *Context, blocks []*ssa.BasicBlock, pos token.Pos) ([]s } calls = append(calls, funcCall{ id: f.Object().Id(), - pos: getPos(f.Pos(), instr.Pos(), pos), + pos: getPos(instr.Call.Pos(), instr.Pos(), pos), }) }