about summary refs log tree commit diff stats
path: root/058shape_shifting_container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-18 23:47:16 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-18 23:47:16 -0800
commitfbc3455bf14ccba2854317ebf40dbb4d47d02d05 (patch)
tree6555d9fd5e675877af0d80facd67b4c25c4c5957 /058shape_shifting_container.cc
parent0c26f02d8156ccee727a71801b1d6b08984a1ff4 (diff)
downloadmu-fbc3455bf14ccba2854317ebf40dbb4d47d02d05.tar.gz
2673 - rename
Diffstat (limited to '058shape_shifting_container.cc')
-rw-r--r--058shape_shifting_container.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/058shape_shifting_container.cc b/058shape_shifting_container.cc
index 890184d3..612f0463 100644
--- a/058shape_shifting_container.cc
+++ b/058shape_shifting_container.cc
@@ -219,7 +219,7 @@ recipe main [
 if (contains_type_ingredient(element)) {
   if (!canonized_base.type->right)
     raise_error << "illegal type '" << debug_string(canonized_base.type) << "' seems to be missing a type ingredient or three\n" << end();
-  replace_type_ingredient(element.type, element.properties.at(0).second, canonized_base.type->right, canonized_base.properties.at(0).second->right);
+  replace_type_ingredients(element.type, element.properties.at(0).second, canonized_base.type->right, canonized_base.properties.at(0).second->right);
 }
 
 :(code)
@@ -233,7 +233,7 @@ bool contains_type_ingredient(const type_tree* type) {
   return contains_type_ingredient(type->left) || contains_type_ingredient(type->right);
 }
 
-void replace_type_ingredient(type_tree* element_type, string_tree* element_type_name, const type_tree* callsite_type, const string_tree* callsite_type_name) {
+void replace_type_ingredients(type_tree* element_type, string_tree* element_type_name, const type_tree* callsite_type, const string_tree* callsite_type_name) {
   if (!callsite_type) return;  // error but it's already been raised above
   if (!element_type) return;
   if (element_type->value >= START_TYPE_INGREDIENTS) {
@@ -258,7 +258,7 @@ void replace_type_ingredient(type_tree* element_type, string_tree* element_type_
     element_type_name->right = replacement_name->right ? new string_tree(*replacement_name->right) : NULL;
     append(element_type_name->right, old_right_name);
   }
-  replace_type_ingredient(element_type->right, element_type_name->right, callsite_type, callsite_type_name);
+  replace_type_ingredients(element_type->right, element_type_name->right, callsite_type, callsite_type_name);
 }
 
 void append(type_tree*& base, type_tree* extra) {
@@ -281,7 +281,7 @@ void append(string_tree*& base, string_tree* extra) {
   curr->right = extra;
 }
 
-void test_replace_type_ingredient_entire() {
+void test_replace_type_ingredients_entire() {
   run("container foo:_elem [\n"
       "  x:_elem\n"
       "  y:number\n"
@@ -293,7 +293,7 @@ void test_replace_type_ingredient_entire() {
   CHECK(!element.properties.at(0).second->right);
 }
 
-void test_replace_type_ingredient_tail() {
+void test_replace_type_ingredients_tail() {
   run("container foo:_elem [\n"
       "  x:_elem\n"
       "]\n"
@@ -308,7 +308,7 @@ void test_replace_type_ingredient_tail() {
   CHECK(!element.properties.at(0).second->right->right);
 }
 
-void test_replace_type_ingredient_head_tail_multiple() {
+void test_replace_type_ingredients_head_tail_multiple() {
   run("container foo:_elem [\n"
       "  x:_elem\n"
       "]\n"
@@ -326,7 +326,7 @@ void test_replace_type_ingredient_head_tail_multiple() {
   CHECK(!element.properties.at(0).second->right->right->right->right->right);
 }
 
-void test_replace_type_ingredient_head_middle() {
+void test_replace_type_ingredients_head_middle() {
   run("container foo:_elem [\n"
       "  x:_elem\n"
       "]\n"
@@ -550,5 +550,5 @@ recipe main [
 if (contains_type_ingredient(element)) {
   if (!canonized_base.type->right)
     raise_error << "illegal type '" << debug_string(canonized_base.type) << "' seems to be missing a type ingredient or three\n" << end();
-  replace_type_ingredient(element.type, element.properties.at(0).second, canonized_base.type->right, canonized_base.properties.at(0).second->right);
+  replace_type_ingredients(element.type, element.properties.at(0).second, canonized_base.type->right, canonized_base.properties.at(0).second->right);
 }