Module: SystemRDL::Evaluator::PropertyAssignmentCommon

Included in:
DefaultPropertyAssignment, PostPropertyAssignment, PropertyAssignment
Defined in:
lib/systemrdl/evaluator/property_assignment.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(instance, **optargs) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/systemrdl/evaluator/property_assignment.rb', line 11

def evaluate(instance, **optargs)
  properties = find_properties(instance)
  check_properties(instance, properties)

  properties.each do |property|
    value = eval_value(instance, property, **optargs)
    assign_property(instance, property, value)
  end
end

#initialize(value, token_range) ⇒ Object



6
7
8
9
# File 'lib/systemrdl/evaluator/property_assignment.rb', line 6

def initialize(value, token_range)
  super(token_range)
  @value = value
end