diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-20 08:36:06 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-20 08:36:06 -0800 |
commit | 96db34759717072fa600f2c4f4e27b2aa808859c (patch) | |
tree | 8a8e1036c802c4175bd31a8d7764d4cb5c3f1fe0 /058shape_shifting_container.cc | |
parent | a284b697db8306e747afc79d90d2365152bd622f (diff) | |
download | mu-96db34759717072fa600f2c4f4e27b2aa808859c.tar.gz |
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.
Diffstat (limited to '058shape_shifting_container.cc')
-rw-r--r-- | 058shape_shifting_container.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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; |