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

(antlr-option-level REQUESTED)

Return level for option to insert near point.
Remove any restrictions from current buffer and return level for the
option to insert near point, i.e., 1, 2, 3, 4, or nil if no such option
can be inserted. If REQUESTED is non-nil, it is the only possible value
to return except nil. If REQUESTED is nil, return level for the nearest
option kind, i.e., the highest number possible.

If the result is 2, point is at the beginning of the class after the
class definition. If the result is 3 or 4, point is at the beginning of
the rule/subrule after the init action. Otherwise, the point position
is undefined.