Method: Antlr4::Runtime::ATNConfig#hash
- Defined in:
- lib/antlr4/runtime/atn_config.rb
#hash ⇒ Object
139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/antlr4/runtime/atn_config.rb', line 139 def hash return @_hash unless @_hash.nil? hash_code = RumourHash.calculate([@state.state_number, @alt, @context, @semantic_context]) unless @_hash.nil? if hash_code == @_hash puts 'Same hash_code for ATNConfig' else puts 'Different hash_code for ATNConfig' end end @_hash = hash_code end |