Class: Ast::Merge::MatchingAmbiguity
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::MatchingAmbiguity
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#from_candidates ⇒ Object
Returns the value of attribute from_candidates.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#scope_path ⇒ Object
Returns the value of attribute scope_path.
-
#selected ⇒ Object
Returns the value of attribute selected.
-
#signature ⇒ Object
Returns the value of attribute signature.
-
#to_candidates ⇒ Object
Returns the value of attribute to_candidates.
Instance Method Summary collapse
Instance Attribute Details
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
646 647 648 |
# File 'lib/ast/merge.rb', line 646 def diagnostics @diagnostics end |
#from_candidates ⇒ Object
Returns the value of attribute from_candidates
646 647 648 |
# File 'lib/ast/merge.rb', line 646 def from_candidates @from_candidates end |
#reason ⇒ Object
Returns the value of attribute reason
646 647 648 |
# File 'lib/ast/merge.rb', line 646 def reason @reason end |
#scope_path ⇒ Object
Returns the value of attribute scope_path
646 647 648 |
# File 'lib/ast/merge.rb', line 646 def scope_path @scope_path end |
#selected ⇒ Object
Returns the value of attribute selected
646 647 648 |
# File 'lib/ast/merge.rb', line 646 def selected @selected end |
#signature ⇒ Object
Returns the value of attribute signature
646 647 648 |
# File 'lib/ast/merge.rb', line 646 def signature @signature end |
#to_candidates ⇒ Object
Returns the value of attribute to_candidates
646 647 648 |
# File 'lib/ast/merge.rb', line 646 def to_candidates @to_candidates end |
Instance Method Details
#to_h ⇒ Object
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 |