Class: Ast::Merge::RenameAwareCandidate
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::RenameAwareCandidate
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#from_node_id ⇒ Object
Returns the value of attribute from_node_id.
-
#from_path ⇒ Object
Returns the value of attribute from_path.
-
#from_signature ⇒ Object
Returns the value of attribute from_signature.
-
#rename_distance ⇒ Object
Returns the value of attribute rename_distance.
-
#selected ⇒ Object
Returns the value of attribute selected.
-
#stable_body_hash ⇒ Object
Returns the value of attribute stable_body_hash.
-
#to_node_id ⇒ Object
Returns the value of attribute to_node_id.
-
#to_path ⇒ Object
Returns the value of attribute to_path.
-
#to_signature ⇒ Object
Returns the value of attribute to_signature.
Instance Method Summary collapse
Instance Attribute Details
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def diagnostics @diagnostics end |
#from_node_id ⇒ Object
Returns the value of attribute from_node_id
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def from_node_id @from_node_id end |
#from_path ⇒ Object
Returns the value of attribute from_path
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def from_path @from_path end |
#from_signature ⇒ Object
Returns the value of attribute from_signature
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def from_signature @from_signature end |
#rename_distance ⇒ Object
Returns the value of attribute rename_distance
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def rename_distance @rename_distance end |
#selected ⇒ Object
Returns the value of attribute selected
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def selected @selected end |
#stable_body_hash ⇒ Object
Returns the value of attribute stable_body_hash
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def stable_body_hash @stable_body_hash end |
#to_node_id ⇒ Object
Returns the value of attribute to_node_id
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def to_node_id @to_node_id end |
#to_path ⇒ Object
Returns the value of attribute to_path
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def to_path @to_path end |
#to_signature ⇒ Object
Returns the value of attribute to_signature
588 589 590 |
# File 'lib/ast/merge.rb', line 588 def to_signature @to_signature end |
Instance Method Details
#to_h ⇒ Object
590 591 592 593 594 595 596 597 598 599 600 601 602 603 |
# File 'lib/ast/merge.rb', line 590 def to_h { from_path: from_path, to_path: to_path, from_node_id: from_node_id, to_node_id: to_node_id, from_signature: from_signature, to_signature: to_signature, stable_body_hash: stable_body_hash, rename_distance: rename_distance, selected: selected, diagnostics: diagnostics || [] } end |