Sha256: 14426356e620e5ccae41c8b0f1aef20eaac03ad26b344ffc46a2b6fd0aedf88e

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

module Antlr4ruby
  class CommonToken
    include _WritableToken

    @type: Integer
    @line: Integer
    @char_position_in_line: Integer
    @channel: Integer
    @text: String
    @index: Integer
    @start: Integer
    @stop: Integer
    @source: Pair[_TokenSource, _CharStream]
    EMPTY_SOURCE: Pair[_TokenSource, _CharStream]

    attr_accessor channel: Integer
    attr_accessor char_position_in_line: Integer
    attr_accessor index: Integer
    attr_accessor line: Integer
    attr_accessor source: Pair[_TokenSource, _CharStream]
    attr_accessor start: Integer
    attr_accessor stop: Integer
    attr_accessor text: String
    attr_accessor type: Integer

    def initialize: (type: Integer?, source: Pair[_TokenSource, _CharStream]?, channel: Integer?, start: Integer?, stop: Integer?, text: String?, old_token: _Token?) -> void

    def set_start_index: (Integer) -> void

    def set_stop_index: (Integer) -> void

    def to_s: (Recognizer[untyped, untyped]?) -> String
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4ruby-0.1.0 sig/antlr4ruby/common_token.rbs