|
@@ -437,6 +437,9 @@ Void function rewrite(host_model : Element, schedule_model : Element, RHS : Stri
|
|
|
elif (has_value(result)):
|
|
|
// New value defined, so assign!
|
|
|
instantiate_attribute(host_model, new_mapping[label], string_substr(attribute, string_len("value_"), string_len(attribute) + 1), result)
|
|
|
+ elif (is_error(result)):
|
|
|
+ log("Error in evaluation of attribute " + attribute)
|
|
|
+ log("On element with label " + label)
|
|
|
else:
|
|
|
// Try to interpret as code
|
|
|
instantiate_attribute_code(host_model, new_mapping[label], string_substr(attribute, string_len("value_"), string_len(attribute) + 1), result)
|