}
void
-Dump::visit (QualifiedPathInType &)
-{}
+Dump::visit (QualifiedPathInType &path)
+{
+ auto qualified_path_type = path.get_qualified_path_type ();
+ stream << "<";
+ visit (qualified_path_type.get_type ());
+ if (qualified_path_type.has_as_clause ())
+ {
+ stream << " as ";
+ visit (qualified_path_type.get_as_type_path ());
+ }
+ stream << ">::";
+ visit (path.get_associated_segment ());
+ visit_items_joined_by_separator (path.get_segments (), "::");
+}
// rust-expr.h
void
// Visibility? type IDENTIFIER GenericParams? WhereClause? = Type;
// Note: Associated types are handled by `AST::TraitItemType`.
-
if (type_alias.has_visibility ())
visit (type_alias.get_visibility ());
stream << "type " << type_alias.get_new_type_name ();
visit (type_alias.get_where_clause ());
stream << " = ";
visit (type_alias.get_type_aliased ());
+ stream << ";\n";
}
void