Did you know ... Search Documentation:
Predicate fix_termpos/2
 fix_termpos(@TermPos, +Options) is det
Applies fix_subtermpos recursivelly and extends the boundaries of the first term position from the first comment up to just before the ending dot.

The subterm positions are adjusted recursively according to the Options as follows:

  • subterm_boundary(+Boundary) Specifies what are the boundaries of the term, which can be subterm, leftcomm, rightcomm or comment (default).

    Due to performance concerns, this predicate makes a destructive assignment in the TermPos argument, but preserve the extra positions in the term_innerpos/4 predicate.

    @see fix_subtermpos/1