Class: Dhall::ExpressionResolver::FallbackResolver

Inherits:
Dhall::ExpressionResolver show all
Defined in:
lib/dhall/resolve.rb

Instance Method Summary collapse

Methods inherited from Dhall::ExpressionResolver

for, #initialize, register_for

Constructor Details

This class inherits a constructor from Dhall::ExpressionResolver

Instance Method Details

#resolve(resolver:, relative_to:) ⇒ Object



455
456
457
458
459
460
461
462
463
464
465
# File 'lib/dhall/resolve.rb', line 455

def resolve(resolver:, relative_to:)
  ExpressionResolver.for(@expr.lhs).resolve(
    resolver:    resolver,
    relative_to: relative_to
  ).catch do
    @expr.rhs.resolve(
      resolver:    resolver.child(Import::MissingImport.new),
      relative_to: relative_to
    )
  end
end