def _stringify(self, transform: StringifyTransform) -> str:
    res = []
    if self.rooted:
        res.append('::')
    res.append('new ')
    if self.isNewTypeId:
        res.append(transform(self.typ))
    else:
        assert False
    if (self.initList is not None):
        res.append(transform(self.initList))
    return ''.join(res)
def _stringify(self, transform: StringifyTransform) -> str:
    res = []
    if self.rooted:
        res.append('::')
    res.append('new ')
    if self.isNewTypeId:
        res.append(transform(self.typ))
    else:
        assert False
    if (self.initList is not None):
        res.append(transform(self.initList))
    return .join(res)