123456789_123456789_123456789_123456789_123456789_

Class: RBS::AST::Ruby::Annotations::DoubleSplatParamTypeAnnotation

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Base
Instance Chain:
self, Base
Inherits: RBS::AST::Ruby::Annotations::Base
Defined in: lib/rbs/ast/ruby/annotations.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(location:, prefix_location:, star2_location:, name_location:, colon_location:, param_type:, comment_location:) ⇒ DoubleSplatParamTypeAnnotation

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/annotations.rb', line 325

def initialize(location:, prefix_location:, star2_location:, name_location:, colon_location:, param_type:, comment_location:)
  super(location, prefix_location)
  @star2_location = star2_location
  @name_location = name_location
  @colon_location = colon_location
  @param_type = param_type
  @comment_location = comment_location
end

Instance Attribute Details

#colon_location (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/annotations.rb', line 323

attr_reader :star2_location, :name_location, :colon_location, :param_type, :comment_location

#comment_location (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/annotations.rb', line 323

attr_reader :star2_location, :name_location, :colon_location, :param_type, :comment_location

#name_location (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/annotations.rb', line 323

attr_reader :star2_location, :name_location, :colon_location, :param_type, :comment_location

#param_type (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/annotations.rb', line 323

attr_reader :star2_location, :name_location, :colon_location, :param_type, :comment_location

#star2_location (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/annotations.rb', line 323

attr_reader :star2_location, :name_location, :colon_location, :param_type, :comment_location

Instance Method Details

#map_type_name(&block)

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/annotations.rb', line 334

def map_type_name(&block)
  self.class.new(
    location:,
    prefix_location:,
    star2_location: star2_location,
    name_location: name_location,
    colon_location: colon_location,
    param_type: param_type.map_type_name { yield _1 },
    comment_location: comment_location
  ) #: self
end

#type_fingerprint

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/annotations.rb', line 346

def type_fingerprint
  [
    "annots/double_splat_param_type",
    name_location&.source,
    param_type.to_s,
    comment_location&.source
  ]
end