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



646
647
648
# File 'lib/ast/merge.rb', line 646

def diagnostics
  @diagnostics
end

#from_candidatesObject

Returns the value of attribute from_candidates

Returns:

  • (Object)

    the current value of from_candidates



646
647
648
# File 'lib/ast/merge.rb', line 646

def from_candidates
  @from_candidates
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



646
647
648
# File 'lib/ast/merge.rb', line 646

def reason
  @reason
end

#scope_pathObject

Returns the value of attribute scope_path

Returns:

  • (Object)

    the current value of scope_path



646
647
648
# File 'lib/ast/merge.rb', line 646

def scope_path
  @scope_path
end

#selectedObject

Returns the value of attribute selected

Returns:

  • (Object)

    the current value of selected



646
647
648
# File 'lib/ast/merge.rb', line 646

def selected
  @selected
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



646
647
648
# File 'lib/ast/merge.rb', line 646

def signature
  @signature
end

#to_candidatesObject

Returns the value of attribute to_candidates

Returns:

  • (Object)

    the current value of to_candidates



646
647
648
# File 'lib/ast/merge.rb', line 646

def to_candidates
  @to_candidates
end

Instance Method Details

#to_hObject



648
649
650
651
652
653
654
655
656
657
658
# File 'lib/ast/merge.rb', line 648

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