Class: Dhall::Operator::RightBiasedRecordMerge

Inherits:
Dhall::Operator show all
Includes:
FetchFromMerge
Defined in:
lib/dhall/ast.rb,
lib/dhall/normalize.rb

Constant Summary collapse

FETCH1K =
:rhs
FETCH2K =
:lhs

Constants inherited from Dhall::Operator

OPERATORS

Instance Method Summary collapse

Methods included from FetchFromMerge

#fetch, #fetch_second_record

Methods inherited from Dhall::Operator

#as_json, decode

Methods inherited from Expression

#&, #*, #+, #annotate, #as_dhall, #cache_key, #call, #concat, decode, #deep_merge, #deep_merge_type, #dhall_eq, #digest, #fetch, #fusion, #merge, #resolve, #shift, #slice, #substitute, #to_binary, #to_cbor, #to_proc, #to_s, #|

Instance Method Details

#normalizeObject



247
248
249
250
251
252
# File 'lib/dhall/normalize.rb', line 247

def normalize
	n_lhs = lhs.normalize
	n_rhs = rhs.normalize
	return n_lhs if n_lhs == n_rhs
	n_lhs.merge(n_rhs)
end