mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 02:41:15 -03:00
Adopt the new AST in parse_execution
parse_execution is what turns a parsed tree into jobs, etc. Switch it from parse_tree to the new AST.
This commit is contained in:
@@ -1311,9 +1311,9 @@ parser_test_error_bits_t parse_util_detect_errors(const wcstring &buff_src,
|
||||
*out_errors = std::move(parse_errors);
|
||||
}
|
||||
|
||||
// \return the ast to our caller if requested.
|
||||
if (out_pstree != nullptr) {
|
||||
// TODO: legacy
|
||||
*out_pstree = parse_source(buff_src, parse_flags, nullptr);
|
||||
*out_pstree = std::make_shared<parsed_source_t>(buff_src, std::move(ast));
|
||||
}
|
||||
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user