Class: Ast::Merge::AmbiguityMatchingReport
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::AmbiguityMatchingReport
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#ambiguities ⇒ Object
Returns the value of attribute ambiguities.
-
#ambiguous ⇒ Object
Returns the value of attribute ambiguous.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#matches ⇒ Object
Returns the value of attribute matches.
-
#matching_id ⇒ Object
Returns the value of attribute matching_id.
-
#scope_path ⇒ Object
Returns the value of attribute scope_path.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
Instance Method Summary collapse
Instance Attribute Details
#ambiguities ⇒ Object
Returns the value of attribute ambiguities
639 640 641 |
# File 'lib/ast/merge.rb', line 639 def ambiguities @ambiguities end |
#ambiguous ⇒ Object
Returns the value of attribute ambiguous
639 640 641 |
# File 'lib/ast/merge.rb', line 639 def ambiguous @ambiguous end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
639 640 641 |
# File 'lib/ast/merge.rb', line 639 def diagnostics @diagnostics end |
#matches ⇒ Object
Returns the value of attribute matches
639 640 641 |
# File 'lib/ast/merge.rb', line 639 def matches @matches end |
#matching_id ⇒ Object
Returns the value of attribute matching_id
639 640 641 |
# File 'lib/ast/merge.rb', line 639 def matching_id @matching_id end |
#scope_path ⇒ Object
Returns the value of attribute scope_path
639 640 641 |
# File 'lib/ast/merge.rb', line 639 def scope_path @scope_path end |
#strategy ⇒ Object
Returns the value of attribute strategy
639 640 641 |
# File 'lib/ast/merge.rb', line 639 def strategy @strategy end |
Instance Method Details
#to_h ⇒ Object
641 642 643 644 645 646 647 648 649 650 651 |
# File 'lib/ast/merge.rb', line 641 def to_h { matching_id: matching_id, strategy: strategy, scope_path: scope_path, ambiguous: ambiguous, matches: (matches || []).map(&:to_h), ambiguities: (ambiguities || []).map(&:to_h), diagnostics: diagnostics || [] } end |