module TypeProf::Core::TypeAliasRead - typeprof: Ruby Standard Library Documentation

# module TypeProf::Core::TypeAliasRead

### Attributes

type_alias_entity[R]

### Public Instance Methods

check_module(genv, mod) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/static_read.rb, line 125
    def check_module(genv, mod)
      tae = mod.type_aliases[@name]
      if tae && tae.exist?
        update_type_alias(genv, tae)
        return true
      end
      return false
    end

resolution_failed(genv) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/static_read.rb, line 134
    def resolution_failed(genv)
      update_type_alias(genv, nil)
    end

update_type_alias(genv, tae) click to toggle source

    # File typeprof-0.30.1/lib/typeprof/core/env/static_read.rb, line 138
    def update_type_alias(genv, tae)
      if tae != @type_alias_entity
        @type_alias_entity = tae
        propagate(genv)
      end
    end