Class: Ast::Merge::MatchingAmbiguity

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



624
625
626
# File 'lib/ast/merge.rb', line 624

def diagnostics
  @diagnostics
end

#from_candidatesObject

Returns the value of attribute from_candidates

Returns:

  • (Object)

    the current value of from_candidates



624
625
626
# File 'lib/ast/merge.rb', line 624

def from_candidates
  @from_candidates
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



624
625
626
# File 'lib/ast/merge.rb', line 624

def reason
  @reason
end

#scope_pathObject

Returns the value of attribute scope_path

Returns:

  • (Object)

    the current value of scope_path



624
625
626
# File 'lib/ast/merge.rb', line 624

def scope_path
  @scope_path
end

#selectedObject

Returns the value of attribute selected

Returns:

  • (Object)

    the current value of selected



624
625
626
# File 'lib/ast/merge.rb', line 624

def selected
  @selected
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



624
625
626
# File 'lib/ast/merge.rb', line 624

def signature
  @signature
end

#to_candidatesObject

Returns the value of attribute to_candidates

Returns:

  • (Object)

    the current value of to_candidates



624
625
626
# File 'lib/ast/merge.rb', line 624

def to_candidates
  @to_candidates
end

Instance Method Details

#to_hObject



626
627
628
629
630
631
632
633
634
635
636
# File 'lib/ast/merge.rb', line 626

def to_h
  {
    signature: signature,
    scope_path: scope_path,
    from_candidates: from_candidates || [],
    to_candidates: to_candidates || [],
    selected: selected,
    reason: reason,
    diagnostics: diagnostics || []
  }
end