Class: Ast::Merge::MoveDetectionMatch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



538
539
540
# File 'lib/ast/merge.rb', line 538

def confidence
  @confidence
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



538
539
540
# File 'lib/ast/merge.rb', line 538

def diagnostics
  @diagnostics
end

#from_indexObject

Returns the value of attribute from_index

Returns:

  • (Object)

    the current value of from_index



538
539
540
# File 'lib/ast/merge.rb', line 538

def from_index
  @from_index
end

#from_node_idObject

Returns the value of attribute from_node_id

Returns:

  • (Object)

    the current value of from_node_id



538
539
540
# File 'lib/ast/merge.rb', line 538

def from_node_id
  @from_node_id
end

#from_parent_pathObject

Returns the value of attribute from_parent_path

Returns:

  • (Object)

    the current value of from_parent_path



538
539
540
# File 'lib/ast/merge.rb', line 538

def from_parent_path
  @from_parent_path
end

#from_pathObject

Returns the value of attribute from_path

Returns:

  • (Object)

    the current value of from_path



538
539
540
# File 'lib/ast/merge.rb', line 538

def from_path
  @from_path
end

#movedObject

Returns the value of attribute moved

Returns:

  • (Object)

    the current value of moved



538
539
540
# File 'lib/ast/merge.rb', line 538

def moved
  @moved
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



538
539
540
# File 'lib/ast/merge.rb', line 538

def signature
  @signature
end

#to_indexObject

Returns the value of attribute to_index

Returns:

  • (Object)

    the current value of to_index



538
539
540
# File 'lib/ast/merge.rb', line 538

def to_index
  @to_index
end

#to_node_idObject

Returns the value of attribute to_node_id

Returns:

  • (Object)

    the current value of to_node_id



538
539
540
# File 'lib/ast/merge.rb', line 538

def to_node_id
  @to_node_id
end

#to_parent_pathObject

Returns the value of attribute to_parent_path

Returns:

  • (Object)

    the current value of to_parent_path



538
539
540
# File 'lib/ast/merge.rb', line 538

def to_parent_path
  @to_parent_path
end

#to_pathObject

Returns the value of attribute to_path

Returns:

  • (Object)

    the current value of to_path



538
539
540
# File 'lib/ast/merge.rb', line 538

def to_path
  @to_path
end

Instance Method Details

#to_hObject



540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/ast/merge.rb', line 540

def to_h
  {
    from_path: from_path,
    to_path: to_path,
    from_node_id: from_node_id,
    to_node_id: to_node_id,
    signature: signature,
    moved: moved,
    from_parent_path: from_parent_path,
    to_parent_path: to_parent_path,
    from_index: from_index,
    to_index: to_index,
    confidence: confidence,
    diagnostics: diagnostics || []
  }
end