Class: Ast::Merge::RenameAwareCandidate

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



610
611
612
# File 'lib/ast/merge.rb', line 610

def diagnostics
  @diagnostics
end

#from_node_idObject

Returns the value of attribute from_node_id

Returns:

  • (Object)

    the current value of from_node_id



610
611
612
# File 'lib/ast/merge.rb', line 610

def from_node_id
  @from_node_id
end

#from_pathObject

Returns the value of attribute from_path

Returns:

  • (Object)

    the current value of from_path



610
611
612
# File 'lib/ast/merge.rb', line 610

def from_path
  @from_path
end

#from_signatureObject

Returns the value of attribute from_signature

Returns:

  • (Object)

    the current value of from_signature



610
611
612
# File 'lib/ast/merge.rb', line 610

def from_signature
  @from_signature
end

#rename_distanceObject

Returns the value of attribute rename_distance

Returns:

  • (Object)

    the current value of rename_distance



610
611
612
# File 'lib/ast/merge.rb', line 610

def rename_distance
  @rename_distance
end

#selectedObject

Returns the value of attribute selected

Returns:

  • (Object)

    the current value of selected



610
611
612
# File 'lib/ast/merge.rb', line 610

def selected
  @selected
end

#stable_body_hashObject

Returns the value of attribute stable_body_hash

Returns:

  • (Object)

    the current value of stable_body_hash



610
611
612
# File 'lib/ast/merge.rb', line 610

def stable_body_hash
  @stable_body_hash
end

#to_node_idObject

Returns the value of attribute to_node_id

Returns:

  • (Object)

    the current value of to_node_id



610
611
612
# File 'lib/ast/merge.rb', line 610

def to_node_id
  @to_node_id
end

#to_pathObject

Returns the value of attribute to_path

Returns:

  • (Object)

    the current value of to_path



610
611
612
# File 'lib/ast/merge.rb', line 610

def to_path
  @to_path
end

#to_signatureObject

Returns the value of attribute to_signature

Returns:

  • (Object)

    the current value of to_signature



610
611
612
# File 'lib/ast/merge.rb', line 610

def to_signature
  @to_signature
end

Instance Method Details

#to_hObject



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