1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:08:12 +00:00

Shell: Make AST::dump() ErrorOr-aware

This commit is contained in:
Ali Mohammad Pur 2023-02-18 10:56:59 +03:30 committed by Ali Mohammad Pur
parent beeb58bd93
commit d575c50f3e
4 changed files with 321 additions and 267 deletions

View file

@ -588,7 +588,7 @@ int Shell::run_command(StringView cmd, Optional<SourcePosition> source_position_
if constexpr (SH_DEBUG) {
dbgln("Command follows");
command->dump(0);
(void)command->dump(0);
}
if (command->is_syntax_error()) {
@ -2498,7 +2498,7 @@ RefPtr<AST::Node> Shell::parse(StringView input, bool interactive, bool as_comma
auto node = parser.parse();
if constexpr (SHELL_POSIX_PARSER_DEBUG) {
dbgln("Parsed with the POSIX Parser:");
node->dump(0);
(void)node->dump(0);
}
return node;
}