class RBS::AST::Ruby::Members::MixinMember
Attributes
annotation
[R]
Annotations::TypeApplicationAnnotation | nil
Public Class Methods
(Buffer, Prism::CallNode, TypeName, Annotations::TypeApplicationAnnotation | nil) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 598 def initialize(buffer, node, module_name, annotation) super(buffer) @node = node @module_name = module_name @annotation = annotation end
Calls superclass method
RBS::AST::Ruby::Members::Base::new
Public Instance Methods
() → Location
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 605 def location rbs_location(node.location) end
() → Location
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 609 def name_location args = node.arguments or raise first_arg = args.arguments.first or raise rbs_location(first_arg.location) end
() → Array[Types::t]
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 616 def type_args annotation&.type_args || [] end
() → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 620 def type_fingerprint [ "members/mixin", self.class.name, module_name.to_s, annotation&.type_fingerprint ] end