def METHOD_NAME(self) -> Generator[float, None, None]:
    for value in self.values:
        if isinstance(value, NumberExprAST):
            yield value.val
        else:
            yield from value.METHOD_NAME()