class RBS::AST::Ruby::Declarations::ClassDecl::SuperClass
Attributes
operator_location
[R]
Location
type_annotation
[R]
Annotations::TypeApplicationAnnotation?
type_name_location
[R]
Location
Public Class Methods
(Location type_name_location, Location operator_location, TypeName, RBS::AST::Ruby::Annotations::TypeApplicationAnnotation?) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/declarations.rb, line 28 def initialize(type_name_location, operator_location, type_name, type_annotation) @type_name_location = type_name_location @operator_location = operator_location @type_name = type_name @type_annotation = type_annotation end
Public Instance Methods
() → Location
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/declarations.rb, line 43 def location if type_annotation Location.new( type_name_location.buffer, type_name_location.start_pos, type_annotation.location.end_pos ) else type_name_location end end
() → Array[Types::t]
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/declarations.rb, line 35 def type_args if type_annotation type_annotation.type_args else [] end end
Also aliased as: args, args
() → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/declarations.rb, line 58 def type_fingerprint [ type_name.to_s, type_annotation&.type_fingerprint ] end