def AddLeafNodes(self, prefix, node):
if not node:<EOL><INDENT>self.AddPath(prefix)<EOL><DEDENT>for name in node:<EOL><INDENT>child_path = prefix + '<STR_LIT:.>' + name<EOL>self.AddLeafNodes(child_path, node[name])<EOL><DEDENT>
Adds leaf nodes begin with prefix to this tree.