Class: RBS::AST::Ruby::Annotations::ModuleAliasAnnotation

Inherits:
AliasAnnotation show all
Defined in:
sig/ast/ruby/annotations.rbs,
lib/rbs/ast/ruby/annotations.rb

Overview

: module-alias annotation

: module-alias Foo::Bar
^                        -- prefix_location
  ^^^^^^^^^^^^           -- keyword_location
               ^^^^^^^^  -- type_name_location

Instance Attribute Summary

Attributes inherited from AliasAnnotation

#keyword_location, #type_name, #type_name_location

Attributes inherited from Base

#location, #prefix_location

Instance Method Summary collapse

Methods inherited from AliasAnnotation

#initialize, #map_type_name

Methods inherited from Base

#buffer, #initialize

Constructor Details

This class inherits a constructor from RBS::AST::Ruby::Annotations::AliasAnnotation

Instance Method Details

#type_fingerprintObject

Returns:

  • (Object)


74
75
76
77
78
79
# File 'lib/rbs/ast/ruby/annotations.rb', line 74

def type_fingerprint
  [
    "annots/module-alias",
    type_name&.to_s
  ]
end