Module: Dhall::Parser::Import

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



529
530
531
532
533
534
535
536
537
538
539
# File 'lib/dhall/parser.rb', line 529

def value
	import_type = if captures.key?(:text)
		Dhall::Import::Text
	elsif captures.key?(:location)
		Dhall::Import::AsLocation
	else
		Dhall::Import::Expression
	end

	capture(:import_hashed).value(import_type)
end