Method: BufferedTokenStream#adjustSeekIndex
- Defined in:
- lib/antlr4/BufferedTokenStream.rb
#adjustSeekIndex(i) ⇒ Object
Allowed derived classes to modify the behavior of operations which change the current stream position by adjusting the target token index of a seek operation. The default implementation simply returns i. If an exception is thrown in this method, the current stream index should not be changed.
<p>For example, CommonTokenStream overrides this method to ensure that the seek target is always an on-channel token.</p>
164 165 166 |
# File 'lib/antlr4/BufferedTokenStream.rb', line 164 def adjustSeekIndex(i) return i end |