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



588
589
590
# File 'lib/ast/merge.rb', line 588

def diagnostics
  @diagnostics
end

#from_node_idObject

Returns the value of attribute from_node_id

Returns:

  • (Object)

    the current value of from_node_id



588
589
590
# File 'lib/ast/merge.rb', line 588

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



588
589
590
# File 'lib/ast/merge.rb', line 588

def from_path
  @from_path
end

#from_signatureObject

Returns the value of attribute from_signature

Returns:

  • (Object)

    the current value of from_signature



588
589
590
# File 'lib/ast/merge.rb', line 588

def from_signature
  @from_signature
end

#rename_distanceObject

Returns the value of attribute rename_distance

Returns:

  • (Object)

    the current value of rename_distance



588
589
590
# File 'lib/ast/merge.rb', line 588

def rename_distance
  @rename_distance
end

#selectedObject

Returns the value of attribute selected

Returns:

  • (Object)

    the current value of selected



588
589
590
# File 'lib/ast/merge.rb', line 588

def selected
  @selected
end

#stable_body_hashObject

Returns the value of attribute stable_body_hash

Returns:

  • (Object)

    the current value of stable_body_hash



588
589
590
# File 'lib/ast/merge.rb', line 588

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



588
589
590
# File 'lib/ast/merge.rb', line 588

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



588
589
590
# File 'lib/ast/merge.rb', line 588

def to_path
  @to_path
end

#to_signatureObject

Returns the value of attribute to_signature

Returns:

  • (Object)

    the current value of to_signature



588
589
590
# File 'lib/ast/merge.rb', line 588

def to_signature
  @to_signature
end

Instance Method Details

#to_hObject



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