123456789_123456789_123456789_123456789_123456789_

Class: TypeProf::ISeq::Insn

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/typeprof/iseq.rb,
lib/typeprof/iseq.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#code_range (rw)

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 94

Insn = Struct.new(:insn, :operands, :lineno, :code_range, :definitions)

#definitions (rw)

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 94

Insn = Struct.new(:insn, :operands, :lineno, :code_range, :definitions)

#insn (rw)

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 94

Insn = Struct.new(:insn, :operands, :lineno, :code_range, :definitions)

#lineno (rw)

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 94

Insn = Struct.new(:insn, :operands, :lineno, :code_range, :definitions)

#operands (rw)

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 94

Insn = Struct.new(:insn, :operands, :lineno, :code_range, :definitions)

Instance Method Details

#check?(insn_cmp, operands_cmp = nil) ⇒ Boolean

[ GitHub ]

  
# File 'lib/typeprof/iseq.rb', line 96

def check?(insn_cmp, operands_cmp = nil)
  return insn == insn_cmp && (!operands_cmp || operands == operands_cmp)
end