antlr-option-location

antlr-option-location is a compiled Lisp function in `antlr-mode.el'.

(antlr-option-location ORIG MIN-VIS MAX-VIS MIN-AREA MAX-AREA WITHP)

Return location for the options area.
ORIG is the original position of `point', MIN-VIS is `point-min' and
MAX-VIS is `point-max'. If WITHP is non-nil, there exists an option
specification and it starts after the brace at MIN-AREA and stops at
MAX-AREA. If WITHP is nil, there is no area and the region where it
could be inserted starts at MIN-AREA and stops at MAX-AREA.

The result has the form (AREA . PLACE). AREA is (MIN-AREA . MAX-AREA)
if WITHP is non-nil, and nil otherwise. PLACE is nil if the area is
invisible, (ORIG) if ORIG is inside the area, (MIN-AREA . beginning) for
a visible start position and (MAX-AREA . end) for a visible end position
where the beginning is preferred if WITHP is nil and the end if WITHP is
non-nil.