@staticmethod<EOL><INDENT>def _determine_types(start_node, first_name, add_leaf, add_link):<DEDENT>
if start_node.v_is_root:<EOL><INDENT>where = first_name<EOL><DEDENT>else:<EOL><INDENT>where = start_node._branch<EOL><DEDENT>if where in SUBTREE_MAPPING:<EOL><INDENT>type_tuple = SUBTREE_MAPPING[where]<EOL><DEDENT>else:<EOL><INDENT>type_tuple = (GROUP, LEAF)<EOL><DEDENT>if add_link:<EOL><INDENT>return type_tuple[<NUM_LIT:0>], LINK<EOL><DEDENT>if add_leaf:<EOL><INDENT>return type_tuple<EOL><DEDENT>else:<EOL><INDENT>return type_tuple[<NUM_LIT:0>], type_tuple[<NUM_LIT:0>]<EOL><DEDENT>
Determines types for generic additions