class Antlr4::Runtime::ATNConfigSet::ConfigEqualityComparator

Public Instance Methods

compare(a, b) click to toggle source
# File lib/antlr4/runtime/atn_config_set.rb, line 135
def compare(a, b)
  return 1 if a.nil? || b.nil?
  return 0 if a.state.state_number == b.state.state_number && a.alt == b.alt && a.semantic_context.eql?(b.semantic_context)
  -1
end
hash(o) click to toggle source
# File lib/antlr4/runtime/atn_config_set.rb, line 131
def hash(o)
  o.bucket_hash
end