Problem you're trying to solve
#9 added location to FindHit for Word, so find_in_document and inspect_document now agree about where matched text lives. The same disagreement remains for PowerPoint.
Proposed shape
Thread the paragraph's location into AddHit, mirroring the Word change in #9. Both call sites in PowerPointModule.Find already have paragraph in scope, so the value is paragraph.Location.
For a deck the values are slide and notes.
Problem you're trying to solve
#9 added
locationtoFindHitfor Word, sofind_in_documentandinspect_documentnow agree about where matched text lives. The same disagreement remains for PowerPoint.Proposed shape
Thread the paragraph's location into
AddHit, mirroring the Word change in #9. Both call sites inPowerPointModule.Findalready haveparagraphin scope, so the value isparagraph.Location.For a deck the values are
slideandnotes.