class RBS::AST::Ruby::Annotations::SplatParamTypeAnnotation
@rbs *name: Type -- comment annotation in leading comments
@rbs *a: String -- comment
^^^^ -- prefix_location
^ -- star_location
^ -- name_location
^ -- colon_location
^^^^^^^^^^ -- comment_location
@rbs *: String
^^^^ -- prefix_location
^ -- star_location
^ -- colon_location
Attributes
colon_location
[R]
Location
comment_location
[R]
Location?
name_location
[R]
Location?
param_type
[R]
Types::t
star_location
[R]
Location
Public Class Methods
(location: Location, prefix_location: Location, star_location: Location, name_location: Location?, colon_location: Location, param_type: Types::t, comment_location: Location?) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/annotations.rb, line 291 def initialize(location:, prefix_location:, star_location:, name_location:, colon_location:, param_type:, comment_location:) super(location, prefix_location) @star_location = star_location @name_location = name_location @colon_location = colon_location @param_type = param_type @comment_location = comment_location end
Calls superclass method
RBS::AST::Ruby::Annotations::Base::new
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/annotations.rb, line 300 def map_type_name(&block) self.class.new( location:, prefix_location:, star_location: star_location, name_location: name_location, colon_location: colon_location, param_type: param_type.map_type_name { yield _1 }, comment_location: comment_location ) #: self end
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/sig/ast/ruby/annotations.rbs, line 310
def name: () -> Symbol?
() → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/annotations.rb, line 312 def type_fingerprint [ "annots/splat_param_type", name_location&.source, param_type.to_s, comment_location&.source ] end