class RBS::AST::Ruby::Annotations::NodeTypeAssertion
: TYPE annotation attached to nodes
Attributes
type
[R]
Types::t
Public Class Methods
(location: Location, prefix_location: Location, type: Types::t) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/annotations.rb, line 23 def initialize(location:, prefix_location:, type:) super(location, prefix_location) @type = type 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 28 def map_type_name self.class.new( location:, prefix_location:, type: type.map_type_name { yield _1 } ) #: self end
() → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/ast/ruby/annotations.rb, line 35 def type_fingerprint [ "annots/node_type_assertion", type.to_s ] end