class SyntaxTree::ArgStar

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/syntax_tree/node.rbs

class SyntaxTree::ArgStar < SyntaxTree::Node
  def child_nodes: () -> untyped
  def initialize: (value: SyntaxTree::VarRef, location: SyntaxTree::Location) -> void
end


method(*arguments)
Star represents using a splat operator on an expression.

def ===(other)

def ===(other)
  other.is_a?(ArgStar) && value === other.value
end

def accept(visitor)

def accept(visitor)
  visitor.visit_arg_star(self)
end

def child_nodes

Experimental RBS support (using type sampling data from the type_fusion project).

def child_nodes: () -> untyped

This signature was generated using 2 samples from 1 application.

def child_nodes
  [value]
end

def copy(value: nil, location: nil)

def copy(value: nil, location: nil)
  node =
    ArgStar.new(
      value: value || self.value,
      location: location || self.location
    )
  node.comments.concat(comments.map(&:copy))
  node
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { value: value, location: location, comments: comments }
end

def format(q)

def format(q)
  q.text("*")
  q.format(value) if value
end

def initialize(value:, location:)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (value: SyntaxTree::VarRef, location: SyntaxTree::Location) -> void

This signature was generated using 2 samples from 1 application.

def initialize(value:, location:)
  @value = value
  @location = location
  @comments = []
end