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
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def diagnostics @diagnostics end |
#from_node_id ⇒ Object
Returns the value of attribute from_node_id
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def from_node_id @from_node_id end |
#from_path ⇒ Object
Returns the value of attribute from_path
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def from_path @from_path end |
#from_signature ⇒ Object
Returns the value of attribute from_signature
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def from_signature @from_signature end |
#rename_distance ⇒ Object
Returns the value of attribute rename_distance
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def rename_distance @rename_distance end |
#selected ⇒ Object
Returns the value of attribute selected
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def selected @selected end |
#stable_body_hash ⇒ Object
Returns the value of attribute stable_body_hash
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def stable_body_hash @stable_body_hash end |
#to_node_id ⇒ Object
Returns the value of attribute to_node_id
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def to_node_id @to_node_id end |
#to_path ⇒ Object
Returns the value of attribute to_path
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def to_path @to_path end |
#to_signature ⇒ Object
Returns the value of attribute to_signature
610 611 612 |
# File 'lib/ast/merge.rb', line 610 def to_signature @to_signature end |
Instance Method Details
#to_h ⇒ Object
612 613 614 615 616 617 618 619 620 621 622 623 624 625 |
# File 'lib/ast/merge.rb', line 612 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 |