Class: Ast::Merge::TieBreakMatch
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::TieBreakMatch
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#from_node_id ⇒ Object
Returns the value of attribute from_node_id.
-
#from_path ⇒ Object
Returns the value of attribute from_path.
-
#rejected_candidates ⇒ Object
Returns the value of attribute rejected_candidates.
-
#selected_by ⇒ Object
Returns the value of attribute selected_by.
-
#signature ⇒ Object
Returns the value of attribute signature.
-
#to_node_id ⇒ Object
Returns the value of attribute to_node_id.
-
#to_path ⇒ Object
Returns the value of attribute to_path.
Instance Method Summary collapse
Instance Attribute Details
#confidence ⇒ Object
Returns the value of attribute confidence
665 666 667 |
# File 'lib/ast/merge.rb', line 665 def confidence @confidence end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
665 666 667 |
# File 'lib/ast/merge.rb', line 665 def diagnostics @diagnostics end |
#from_node_id ⇒ Object
Returns the value of attribute from_node_id
665 666 667 |
# File 'lib/ast/merge.rb', line 665 def from_node_id @from_node_id end |
#from_path ⇒ Object
Returns the value of attribute from_path
665 666 667 |
# File 'lib/ast/merge.rb', line 665 def from_path @from_path end |
#rejected_candidates ⇒ Object
Returns the value of attribute rejected_candidates
665 666 667 |
# File 'lib/ast/merge.rb', line 665 def rejected_candidates @rejected_candidates end |
#selected_by ⇒ Object
Returns the value of attribute selected_by
665 666 667 |
# File 'lib/ast/merge.rb', line 665 def selected_by @selected_by end |
#signature ⇒ Object
Returns the value of attribute signature
665 666 667 |
# File 'lib/ast/merge.rb', line 665 def signature @signature end |
#to_node_id ⇒ Object
Returns the value of attribute to_node_id
665 666 667 |
# File 'lib/ast/merge.rb', line 665 def to_node_id @to_node_id end |
#to_path ⇒ Object
Returns the value of attribute to_path
665 666 667 |
# File 'lib/ast/merge.rb', line 665 def to_path @to_path end |
Instance Method Details
#to_h ⇒ Object
667 668 669 670 671 672 673 674 675 676 677 678 679 |
# File 'lib/ast/merge.rb', line 667 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, selected_by: selected_by, rejected_candidates: (rejected_candidates || []).map(&:to_h), diagnostics: diagnostics || [] } end |