diff options
Diffstat (limited to '062convert_ingredients_to_text.cc')
-rw-r--r-- | 062convert_ingredients_to_text.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/062convert_ingredients_to_text.cc b/062convert_ingredients_to_text.cc index cf639b9e..abbacb1e 100644 --- a/062convert_ingredients_to_text.cc +++ b/062convert_ingredients_to_text.cc @@ -143,6 +143,15 @@ bool is_static_array(const reagent& x) { return !x.type->atom && x.type->left->atom && x.type->left->name == "array"; } +//: Supporting 'append' above requires remembering what name an instruction +//: had before any rewrites or transforms. +:(before "End instruction Fields") +string name_before_rewrite; +:(before "End instruction Clear") +name_before_rewrite.clear(); +:(before "End next_instruction(curr)") +curr->name_before_rewrite = curr->name; + :(scenarios run) :(scenario append_other_types_to_text) def main [ |