123456789_123456789_123456789_123456789_123456789_

Module: RBS::Environment::ContextUtil

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rbs/environment.rb

Instance Method Summary

Instance Method Details

#calculate_context(decls)

[ GitHub ]

  
# File 'lib/rbs/environment.rb', line 17

def calculate_context(decls)
  decls.inject(nil) do |context, decl| #$ Resolver::context
    if (_, last = context)
      last or raise
      [context, last + decl.name]
    else
      [nil, decl.name.absolute!]
    end
  end
end