Class: Ast::Merge::SignatureNodeMatch

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



458
459
460
# File 'lib/ast/merge.rb', line 458

def confidence
  @confidence
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



458
459
460
# File 'lib/ast/merge.rb', line 458

def diagnostics
  @diagnostics
end

#from_node_idObject

Returns the value of attribute from_node_id

Returns:

  • (Object)

    the current value of from_node_id



458
459
460
# File 'lib/ast/merge.rb', line 458

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



458
459
460
# File 'lib/ast/merge.rb', line 458

def from_path
  @from_path
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



458
459
460
# File 'lib/ast/merge.rb', line 458

def signature
  @signature
end

#to_node_idObject

Returns the value of attribute to_node_id

Returns:

  • (Object)

    the current value of to_node_id



458
459
460
# File 'lib/ast/merge.rb', line 458

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



458
459
460
# File 'lib/ast/merge.rb', line 458

def to_path
  @to_path
end

Instance Method Details

#to_hObject



460
461
462
463
464
465
466
467
468
469
470
# File 'lib/ast/merge.rb', line 460

def to_h
  {
    signature: signature,
    from_path: from_path,
    to_path: to_path,
    from_node_id: from_node_id,
    to_node_id: to_node_id,
    confidence: confidence,
    diagnostics: diagnostics || []
  }
end