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



466
467
468
469
470
471
472
473
474
475
476
# File 'lib/dhall/resolve.rb', line 466

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