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:
parent
beeb58bd93
commit
d575c50f3e
4 changed files with 321 additions and 267 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue