def node_dotted_as_names(self, node):
        imports = []
        childs = node.children.__iter__()
        try:
            while True:
                child = childs.next()
                if isinstance(child, Leaf):
                    if child.value == ',':
                        continue
                    imports.append(Import([child.value]))
                else:
                    imp = self.dispatch(child)
                    if isinstance(imp, list):
                        imp = Import(imp)
                    else:
                        imp = Import([imp])
                    imports.append(imp)
        except __HOLE__:
            pass
        return imports
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.node_dotted_as_names