Class: Ast::Merge::MoveDetectionMatch
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::MoveDetectionMatch
- 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_index ⇒ Object
Returns the value of attribute from_index.
-
#from_node_id ⇒ Object
Returns the value of attribute from_node_id.
-
#from_parent_path ⇒ Object
Returns the value of attribute from_parent_path.
-
#from_path ⇒ Object
Returns the value of attribute from_path.
-
#moved ⇒ Object
Returns the value of attribute moved.
-
#signature ⇒ Object
Returns the value of attribute signature.
-
#to_index ⇒ Object
Returns the value of attribute to_index.
-
#to_node_id ⇒ Object
Returns the value of attribute to_node_id.
-
#to_parent_path ⇒ Object
Returns the value of attribute to_parent_path.
-
#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
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def confidence @confidence end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def diagnostics @diagnostics end |
#from_index ⇒ Object
Returns the value of attribute from_index
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def from_index @from_index end |
#from_node_id ⇒ Object
Returns the value of attribute from_node_id
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def from_node_id @from_node_id end |
#from_parent_path ⇒ Object
Returns the value of attribute from_parent_path
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def from_parent_path @from_parent_path end |
#from_path ⇒ Object
Returns the value of attribute from_path
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def from_path @from_path end |
#moved ⇒ Object
Returns the value of attribute moved
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def moved @moved end |
#signature ⇒ Object
Returns the value of attribute signature
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def signature @signature end |
#to_index ⇒ Object
Returns the value of attribute to_index
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def to_index @to_index end |
#to_node_id ⇒ Object
Returns the value of attribute to_node_id
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def to_node_id @to_node_id end |
#to_parent_path ⇒ Object
Returns the value of attribute to_parent_path
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def to_parent_path @to_parent_path end |
#to_path ⇒ Object
Returns the value of attribute to_path
538 539 540 |
# File 'lib/ast/merge.rb', line 538 def to_path @to_path end |
Instance Method Details
#to_h ⇒ Object
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 |
# File 'lib/ast/merge.rb', line 540 def to_h { from_path: from_path, to_path: to_path, from_node_id: from_node_id, to_node_id: to_node_id, signature: signature, moved: moved, from_parent_path: from_parent_path, to_parent_path: to_parent_path, from_index: from_index, to_index: to_index, confidence: confidence, diagnostics: diagnostics || [] } end |