Skip to content

Commit 7f3d3e7

Browse files
committed
Comment.
1 parent 289a86f commit 7f3d3e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

analysis/reanalyze/src/DeadCommon.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ module Decl = struct
542542
let refIsBelow (pos : Lexing.position) =
543543
decl.pos.pos_fname <> pos.pos_fname
544544
|| decl.pos.pos_cnum < pos.pos_cnum
545-
&& decl.posEnd.pos_cnum < pos.pos_cnum
545+
&& (* not a function defined inside a function, e.g. not a callback *)
546+
decl.posEnd.pos_cnum < pos.pos_cnum
546547
in
547548
refs |> PosSet.exists refIsBelow
548549
in

0 commit comments

Comments
 (0)