Class: RBI::MergeTree
- Inherits:
-
Tree
- Object
- Node
- NodeWithComments
- Tree
- RBI::MergeTree
- Defined in:
- lib/rbi/rewriters/merge_trees.rb
Overview
A tree that might contain conflicts
Instance Attribute Summary collapse
-
#conflicts ⇒ Object
readonly
: Array.
Attributes inherited from Tree
Attributes inherited from NodeWithComments
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Tree
#<<, #add_sig_templates!, #annotate!, #deannotate!, #empty?, #filter_versions!, #flatten_singleton_methods!, #flatten_visibilities!, #group_nodes!, #index, #merge, #nest_non_public_members!, #nest_singleton_methods!, #nest_top_level_members!, #replace_attributes_with_methods!, #sort_nodes!, #translate_rbs_sigs!
Methods inherited from NodeWithComments
#annotations, #merge_with, #version_requirements
Methods inherited from Node
#compatible_with?, #detach, #merge_with, #parent_conflict_tree, #parent_scope, #print, #rbs_print, #rbs_string, #replace, #satisfies_version?, #string
Constructor Details
#initialize(loc: nil, comments: [], conflicts: [], &block) ⇒ MergeTree
325 326 327 328 329 |
# File 'lib/rbi/rewriters/merge_trees.rb', line 325 def initialize(loc: nil, comments: [], conflicts: [], &block) super(loc: loc, comments: comments) @conflicts = conflicts block&.call(self) end |
Instance Attribute Details
#conflicts ⇒ Object (readonly)
: Array
322 323 324 |
# File 'lib/rbi/rewriters/merge_trees.rb', line 322 def conflicts @conflicts end |