mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 20:01:22 -05:00
gccrs: ast: dump: RangeExprs
gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::visit): Add dump for RangeExprs.
This commit is contained in:
committed by
Arthur Cohen
parent
d1db46191e
commit
173f98ae49
@@ -622,27 +622,46 @@ Dump::visit (BreakExpr &expr)
|
||||
|
||||
void
|
||||
Dump::visit (RangeFromToExpr &expr)
|
||||
{}
|
||||
{
|
||||
expr.get_from_expr ()->accept_vis (*this);
|
||||
stream << "..";
|
||||
expr.get_to_expr ()->accept_vis (*this);
|
||||
}
|
||||
|
||||
void
|
||||
Dump::visit (RangeFromExpr &expr)
|
||||
{}
|
||||
{
|
||||
expr.get_from_expr ()->accept_vis (*this);
|
||||
stream << "..";
|
||||
}
|
||||
|
||||
void
|
||||
Dump::visit (RangeToExpr &expr)
|
||||
{}
|
||||
{
|
||||
stream << "..";
|
||||
expr.get_to_expr ()->accept_vis (*this);
|
||||
}
|
||||
|
||||
void
|
||||
Dump::visit (RangeFullExpr &expr)
|
||||
{}
|
||||
{
|
||||
stream << "..";
|
||||
}
|
||||
|
||||
void
|
||||
Dump::visit (RangeFromToInclExpr &expr)
|
||||
{}
|
||||
{
|
||||
expr.get_from_expr ()->accept_vis (*this);
|
||||
stream << "..=";
|
||||
expr.get_to_expr ()->accept_vis (*this);
|
||||
}
|
||||
|
||||
void
|
||||
Dump::visit (RangeToInclExpr &expr)
|
||||
{}
|
||||
{
|
||||
stream << "..=";
|
||||
expr.get_to_expr ()->accept_vis (*this);
|
||||
}
|
||||
|
||||
void
|
||||
Dump::visit (ReturnExpr &expr)
|
||||
|
||||
Reference in New Issue
Block a user