Sha256: 6cc17e3165bb4529bc8bfd2eedff1ae3467ef8aeacec45c5acc1368304897066

Contents?: true

Size: 520 Bytes

Versions: 13

Compression:

Stored size: 520 Bytes

Contents

module Antlr4::Runtime

  class InputMismatchException < RecognitionException
    def self.create(recog, state = nil)
      result = InputMismatchException.new

      result.offending_state = -1
      result.context = recog._ctx
      result.input = recog._input
      result.recognizer = recog
      result.offending_state = recog._state_number unless recog.nil?

      result.offending_token = recog.current_token unless recog.nil?
      result.offending_state = state unless state.nil?
      result
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
antlr4-runtime-0.2.12 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.11 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.10 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.9 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.8 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.7 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.6 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.5 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.4 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.3 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.2 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.1 lib/antlr4/runtime/input_mismatch_exception.rb
antlr4-runtime-0.2.0 lib/antlr4/runtime/input_mismatch_exception.rb