Module: RBS::Environment::ContextUtil
- Included in:
- SingleEntry
- Defined in:
- lib/rbs/environment.rb
Instance Method Summary collapse
Instance Method Details
#calculate_context(decls) ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# 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 |