class Dhallish::Ast::RecordNonRecursiveMergeNode
Attributes
lhs[RW]
rhs[RW]
Public Class Methods
new(lhs, rhs)
click to toggle source
lhs and rhs should be RecordNodes
# File lib/ast.rb, line 520 def initialize(lhs, rhs) @lhs = lhs @rhs = rhs end
Public Instance Methods
compute_type(ctx)
click to toggle source
# File lib/ast.rb, line 525 def compute_type(ctx) lhs = @lhs.compute_type ctx rhs = @rhs.compute_type ctx ::Dhallish::mergeRecordTypesPrefereRight(lhs, rhs) end
evaluate(ctx)
click to toggle source
# File lib/ast.rb, line 531 def evaluate(ctx) lhs = @lhs.evaluate(ctx) rhs = @rhs.evaluate(ctx) ::Dhallish::mergeRecordsPrefereRight(lhs, rhs) end