Class: RBS::AST::Ruby::Annotations::SplatParamTypeAnnotation
| 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
Base - Inherited
Instance Attribute Summary
- #colon_location readonly
- #comment_location readonly
- #name_location readonly
- #param_type readonly
- #star_location readonly
Base - Inherited
Instance Method Summary
Constructor Details
.new(location:, prefix_location:, star_location:, name_location:, colon_location:, param_type:, comment_location:) ⇒ SplatParamTypeAnnotation
# File '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
Instance Attribute Details
#colon_location (readonly)
[ GitHub ]# File 'lib/rbs/ast/ruby/annotations.rb', line 289
attr_reader :star_location, :name_location, :colon_location, :param_type, :comment_location
#comment_location (readonly)
[ GitHub ]# File 'lib/rbs/ast/ruby/annotations.rb', line 289
attr_reader :star_location, :name_location, :colon_location, :param_type, :comment_location
#name_location (readonly)
[ GitHub ]# File 'lib/rbs/ast/ruby/annotations.rb', line 289
attr_reader :star_location, :name_location, :colon_location, :param_type, :comment_location
#param_type (readonly)
[ GitHub ]# File 'lib/rbs/ast/ruby/annotations.rb', line 289
attr_reader :star_location, :name_location, :colon_location, :param_type, :comment_location
#star_location (readonly)
[ GitHub ]# File 'lib/rbs/ast/ruby/annotations.rb', line 289
attr_reader :star_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 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
#type_fingerprint
[ GitHub ]# File '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