Sha256: 821fa84b76dbb6524a02ef6f2a0fe01bcb6abb6d4ecc3a99716324de5d38bc2c

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Spoom
  module Deadcode
    # An abstraction to simplify handling of SyntaxTree::CallNode, SyntaxTree::Command, SyntaxTree::CommandCall and
    # SyntaxTree::VCall nodes.
    class Send < T::Struct
      extend T::Sig

      const :node, SyntaxTree::Node
      const :name, String
      const :recv, T.nilable(SyntaxTree::Node), default: nil
      const :args, T::Array[SyntaxTree::Node], default: []
      const :block, T.nilable(SyntaxTree::Node), default: nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spoom-1.2.3 lib/spoom/deadcode/send.rb
spoom-1.2.2 lib/spoom/deadcode/send.rb