Method: Antlr4::Runtime::CommonToken#initialize
- Defined in:
- lib/antlr4/runtime/common_token.rb
#initialize(type = nil) ⇒ CommonToken
Returns a new instance of CommonToken.
19 20 21 22 23 24 25 26 |
# File 'lib/antlr4/runtime/common_token.rb', line 19 def initialize(type = nil) @char_position_in_line = -1 @channel = Token::DEFAULT_CHANNEL @token_index = -1 @type = type @source = @@EMPTY_SOURCE @_text = nil end |