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
624 625 626 |
# File 'lib/ast/merge.rb', line 624 def diagnostics @diagnostics end |
#from_candidates ⇒ Object
Returns the value of attribute from_candidates
624 625 626 |
# File 'lib/ast/merge.rb', line 624 def from_candidates @from_candidates end |
#reason ⇒ Object
Returns the value of attribute reason
624 625 626 |
# File 'lib/ast/merge.rb', line 624 def reason @reason end |
#scope_path ⇒ Object
Returns the value of attribute scope_path
624 625 626 |
# File 'lib/ast/merge.rb', line 624 def scope_path @scope_path end |
#selected ⇒ Object
Returns the value of attribute selected
624 625 626 |
# File 'lib/ast/merge.rb', line 624 def selected @selected end |
#signature ⇒ Object
Returns the value of attribute signature
624 625 626 |
# File 'lib/ast/merge.rb', line 624 def signature @signature end |
#to_candidates ⇒ Object
Returns the value of attribute to_candidates
624 625 626 |
# File 'lib/ast/merge.rb', line 624 def to_candidates @to_candidates end |
Instance Method Details
#to_h ⇒ Object
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 |