Class: RuboCop::Cop::InternalAffairs::NodePatternGroups::ASTWalker::NodeGroup
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
Struct
|
Defined in: | lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb |
Overview
Struct to contain data about parts of a node pattern that can be replaced
Instance Attribute Summary
-
#name
rw
Struct to contain data about parts of a node pattern that can be replaced.
-
#node_types
rw
Struct to contain data about parts of a node pattern that can be replaced.
-
#offense_range
rw
Struct to contain data about parts of a node pattern that can be replaced.
-
#pipe
rw
Struct to contain data about parts of a node pattern that can be replaced.
-
#ranges
rw
Struct to contain data about parts of a node pattern that can be replaced.
-
#start_index
rw
Struct to contain data about parts of a node pattern that can be replaced.
-
#union
rw
Struct to contain data about parts of a node pattern that can be replaced.
Instance Method Summary
-
#other_elements?
Struct to contain data about parts of a node pattern that can be replaced.
-
#sequence?
Struct to contain data about parts of a node pattern that can be replaced.
Instance Attribute Details
#name (rw)
Struct to contain data about parts of a node pattern that can be replaced
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
NodeGroup = Struct.new( :name, # The name of the node group that will be inserted :union, # The entire `union` node :node_types, # An array of `node_type` nodes that will be removed :sequence?, # The pattern matches a node type with given attributes :start_index, # The index in the union of the first node type to remove :offense_range, # The range to mark an offense on :ranges, # Range of each element to remove, since they may not be adjacent :pipe, # Is the union delimited by pipes? :other_elements?, # Does the union have other elements other than those to remove? keyword_init: true )
#node_types (rw)
Struct to contain data about parts of a node pattern that can be replaced
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
NodeGroup = Struct.new( :name, # The name of the node group that will be inserted :union, # The entire `union` node :node_types, # An array of `node_type` nodes that will be removed :sequence?, # The pattern matches a node type with given attributes :start_index, # The index in the union of the first node type to remove :offense_range, # The range to mark an offense on :ranges, # Range of each element to remove, since they may not be adjacent :pipe, # Is the union delimited by pipes? :other_elements?, # Does the union have other elements other than those to remove? keyword_init: true )
#offense_range (rw)
Struct to contain data about parts of a node pattern that can be replaced
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
NodeGroup = Struct.new( :name, # The name of the node group that will be inserted :union, # The entire `union` node :node_types, # An array of `node_type` nodes that will be removed :sequence?, # The pattern matches a node type with given attributes :start_index, # The index in the union of the first node type to remove :offense_range, # The range to mark an offense on :ranges, # Range of each element to remove, since they may not be adjacent :pipe, # Is the union delimited by pipes? :other_elements?, # Does the union have other elements other than those to remove? keyword_init: true )
#pipe (rw)
Struct to contain data about parts of a node pattern that can be replaced
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
NodeGroup = Struct.new( :name, # The name of the node group that will be inserted :union, # The entire `union` node :node_types, # An array of `node_type` nodes that will be removed :sequence?, # The pattern matches a node type with given attributes :start_index, # The index in the union of the first node type to remove :offense_range, # The range to mark an offense on :ranges, # Range of each element to remove, since they may not be adjacent :pipe, # Is the union delimited by pipes? :other_elements?, # Does the union have other elements other than those to remove? keyword_init: true )
#ranges (rw)
Struct to contain data about parts of a node pattern that can be replaced
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
NodeGroup = Struct.new( :name, # The name of the node group that will be inserted :union, # The entire `union` node :node_types, # An array of `node_type` nodes that will be removed :sequence?, # The pattern matches a node type with given attributes :start_index, # The index in the union of the first node type to remove :offense_range, # The range to mark an offense on :ranges, # Range of each element to remove, since they may not be adjacent :pipe, # Is the union delimited by pipes? :other_elements?, # Does the union have other elements other than those to remove? keyword_init: true )
#start_index (rw)
Struct to contain data about parts of a node pattern that can be replaced
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
NodeGroup = Struct.new( :name, # The name of the node group that will be inserted :union, # The entire `union` node :node_types, # An array of `node_type` nodes that will be removed :sequence?, # The pattern matches a node type with given attributes :start_index, # The index in the union of the first node type to remove :offense_range, # The range to mark an offense on :ranges, # Range of each element to remove, since they may not be adjacent :pipe, # Is the union delimited by pipes? :other_elements?, # Does the union have other elements other than those to remove? keyword_init: true )
#union (rw)
Struct to contain data about parts of a node pattern that can be replaced
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
NodeGroup = Struct.new( :name, # The name of the node group that will be inserted :union, # The entire `union` node :node_types, # An array of `node_type` nodes that will be removed :sequence?, # The pattern matches a node type with given attributes :start_index, # The index in the union of the first node type to remove :offense_range, # The range to mark an offense on :ranges, # Range of each element to remove, since they may not be adjacent :pipe, # Is the union delimited by pipes? :other_elements?, # Does the union have other elements other than those to remove? keyword_init: true )
Instance Method Details
#other_elements?
Struct to contain data about parts of a node pattern that can be replaced
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
NodeGroup = Struct.new( :name, # The name of the node group that will be inserted :union, # The entire `union` node :node_types, # An array of `node_type` nodes that will be removed :sequence?, # The pattern matches a node type with given attributes :start_index, # The index in the union of the first node type to remove :offense_range, # The range to mark an offense on :ranges, # Range of each element to remove, since they may not be adjacent :pipe, # Is the union delimited by pipes? :other_elements?, # Does the union have other elements other than those to remove? keyword_init: true )
#sequence?
Struct to contain data about parts of a node pattern that can be replaced
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
NodeGroup = Struct.new( :name, # The name of the node group that will be inserted :union, # The entire `union` node :node_types, # An array of `node_type` nodes that will be removed :sequence?, # The pattern matches a node type with given attributes :start_index, # The index in the union of the first node type to remove :offense_range, # The range to mark an offense on :ranges, # Range of each element to remove, since they may not be adjacent :pipe, # Is the union delimited by pipes? :other_elements?, # Does the union have other elements other than those to remove? keyword_init: true )