Sha256: 44993b9c574d417e84b0b535fb1174daae48d422b3c7c7bdfd26755035e06410

Contents?: true

Size: 512 Bytes

Versions: 5

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module AST
    # A node extension for `send` nodes. This will be used in place of a plain
    # node when the builder constructs the AST, making its methods available
    # to all `send` nodes within RuboCop.
    class SendNode < Node
      include ParameterizedNode
      include MethodDispatchNode

      def_node_matcher :attribute_accessor?, <<~PATTERN
        (send nil? ${:attr_reader :attr_writer :attr_accessor :attr} $...)
      PATTERN
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/rubocop-ast-0.0.3/lib/rubocop/ast/node/send_node.rb
rubocop-ast-0.0.3 lib/rubocop/ast/node/send_node.rb
rubocop-ast-0.0.2 lib/rubocop/ast/node/send_node.rb
rubocop-ast-0.0.1 lib/rubocop/ast/node/send_node.rb
rubocop-0.83.0 lib/rubocop/ast/node/send_node.rb