class RBS::AST::Ruby::Members::DefMember
Constants
- Overload
Attributes
Public Class Methods
(Buffer, Symbol name, Prism::DefNode node, MethodTypeAnnotation, CommentBlock? leading_comment) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 555 def initialize(buffer, name, node, method_type, leading_comment) super(buffer) @name = name @node = node @method_type = method_type @leading_comment = leading_comment end
Calls superclass method
RBS::AST::Ruby::Members::Base::new
Public Instance Methods
() → Array[AST::Annotation]
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 575 def annotations [] end
() → Location
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 563 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 579 def name_location rbs_location(node.name_loc) end
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 571 def overloading? method_type.overloading? end
() → Array[Overload]
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 567 def overloads method_type.overloads end
() → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/members.rb, line 583 def type_fingerprint [ "members/def", name.to_s, method_type.type_fingerprint, leading_comment&.as_comment&.string ] end