From 96db34759717072fa600f2c4f4e27b2aa808859c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 20 Feb 2016 08:36:06 -0800 Subject: 2674 - tried to follow s-exps more closely But I realize that this won't actually streamline replace_type_ingredients(), which needs that 'if (curr->left) curr = curr->left' dance for an unrelated reason. So there's no justification for entering into this big refactoring. --- 058shape_shifting_container.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to '058shape_shifting_container.cc') diff --git a/058shape_shifting_container.cc b/058shape_shifting_container.cc index f16d4c75..256c3800 100644 --- a/058shape_shifting_container.cc +++ b/058shape_shifting_container.cc @@ -269,6 +269,9 @@ void replace_type_ingredients(type_tree* element_type, string_tree* element_type replacement = curr->left; } else { + // We want foo:_t to be used like foo:number, which expands to {foo: number} + // rather than {foo: (number)} + // We'd also like to use it with multiple types: foo:address:number. replacement = curr; if (!final_type_ingredient(type_ingredient_index, container_info)) splice_right = false; -- cgit 1.4.1-2-gfad0