

def expand(self, generator, node, depth):
    current = node
    for e in self.elements:
        current = getattr(current, generator)
    if isinstance(current, Node):
        return generator._generate_node(current, depth)
    else:
        return current

dataset/ETHPy150Open alehander42/pseudo/pseudo/code_generator_dsl.py SubElement.expand/VarMisuse@35/37 `e`->`generator`