Method: ListTokenSource#pos

Defined in:
lib/antlr4/ListTokenSource.rb

#posObject

Constructs a new ListTokenSource instance from the specified collection of Token objects and source name.

TokenSource. null, #getSourceName will attempt to infer the name from the next Token (or the previous token if the end of the input has been reached).

Parameters:

  • tokens

    The collection of Token objects to provide as a

  • sourceName

    The name of the TokenSource. If this value is



22
23
24
# File 'lib/antlr4/ListTokenSource.rb', line 22

def pos
  @pos
end