mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 20:01:22 -05:00
gccrs: fixed indentations in AST pretty expanded dump of trait
gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): removed extra indentations in trait ast dump Signed-off-by: Abdul Rafey <abdulrafeyq@gmail.com>
This commit is contained in:
committed by
Arthur Cohen
parent
760f529d81
commit
8e7e682a9f
@@ -1072,8 +1072,6 @@ Dump::visit (TypeBoundWhereClauseItem &item)
|
||||
void
|
||||
Dump::visit (Method &method)
|
||||
{
|
||||
// FIXME: Do we really need to dump the indentation here?
|
||||
stream << indentation;
|
||||
visit (method.get_visibility ());
|
||||
stream << "fn " << method.get_method_name () << '(';
|
||||
|
||||
@@ -1326,7 +1324,7 @@ void
|
||||
Dump::visit (TraitItemFunc &item)
|
||||
{
|
||||
auto func = item.get_trait_function_decl ();
|
||||
stream << indentation << "fn " << func.get_identifier () << '(';
|
||||
stream << "fn " << func.get_identifier () << '(';
|
||||
|
||||
visit_items_joined_by_separator (func.get_function_params ());
|
||||
|
||||
@@ -1340,9 +1338,6 @@ Dump::visit (TraitItemMethod &item)
|
||||
{
|
||||
auto method = item.get_trait_method_decl ();
|
||||
|
||||
// FIXME: Do we really need to dump the indentation here?
|
||||
stream << indentation;
|
||||
|
||||
// FIXME: Can we have visibility here?
|
||||
// emit_visibility (method.get_visibility ());
|
||||
stream << "fn " << method.get_identifier () << '(';
|
||||
|
||||
Reference in New Issue
Block a user