def visit_newtype_expr(self, node: NewTypeExpr) -> NewTypeExpr: res = NewTypeExpr(node.name, node.old_type, line=node.line, column=node.column) res.info = node.info return res
def visit_newtype_expr(self, node: NewTypeExpr) -> None: if node.info: node.info = self.fixup(node.info) self.process_type_info(node.info) if node.old_type: self.fixup_type(node.old_type) super().visit_newtype_expr(node)
def visit_newtype_expr(self, node: NewTypeExpr) -> None: if node.info: node.info = self.fixup_and_reset_typeinfo(node.info) self.process_synthetic_type_info(node.info) self.fixup_type(node.old_type) super().visit_newtype_expr(node)
def visit_newtype_expr(self, node: NewTypeExpr) -> NewTypeExpr: res = NewTypeExpr(node.name, node.old_type, line=node.line) res.info = node.info return res