Method: ANTLR3::Debug::TokenStream#consume
- Defined in:
- lib/antlr3/debug.rb
#consume ⇒ Object
307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/antlr3/debug.rb', line 307 def consume @initial_stream_state and consume_initial_hidden_tokens a = index + 1 # the next position IF there are no hidden tokens in between t = super b = index # the actual position after consuming @debug_listener.consume_token( t ) if @debug_listener # if b > a, report the consumption of hidden tokens for i in a...b @debug_listener.consume_hidden_token at( i ) end end |