mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 00:47:30 +00:00
parsed_source_ref to always make a job_list
Removed an unnecessary param in preparation for more changes.
This commit is contained in:
parent
e530163078
commit
45c9e3b0f1
2 changed files with 5 additions and 5 deletions
|
@ -1215,10 +1215,10 @@ const parse_node_t *parse_node_tree_t::get_child(const parse_node_t &parent, nod
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
parsed_source_ref_t parse_source(wcstring src, parse_tree_flags_t flags, parse_error_list_t *errors,
|
parsed_source_ref_t parse_source(wcstring src, parse_tree_flags_t flags,
|
||||||
parse_token_type_t goal) {
|
parse_error_list_t *errors) {
|
||||||
parse_node_tree_t tree;
|
parse_node_tree_t tree;
|
||||||
if (!parse_tree_from_string(src, flags, &tree, errors, goal)) return {};
|
if (!parse_tree_from_string(src, flags, &tree, errors, symbol_job_list)) return {};
|
||||||
return std::make_shared<parsed_source_t>(std::move(src), std::move(tree));
|
return std::make_shared<parsed_source_t>(std::move(src), std::move(tree));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -225,8 +225,8 @@ struct parsed_source_t {
|
||||||
};
|
};
|
||||||
/// Return a shared pointer to parsed_source_t, or null on failure.
|
/// Return a shared pointer to parsed_source_t, or null on failure.
|
||||||
using parsed_source_ref_t = std::shared_ptr<const parsed_source_t>;
|
using parsed_source_ref_t = std::shared_ptr<const parsed_source_t>;
|
||||||
parsed_source_ref_t parse_source(wcstring src, parse_tree_flags_t flags, parse_error_list_t *errors,
|
parsed_source_ref_t parse_source(wcstring src, parse_tree_flags_t flags,
|
||||||
parse_token_type_t goal = symbol_job_list);
|
parse_error_list_t *errors);
|
||||||
|
|
||||||
/// Error message for improper use of the exec builtin.
|
/// Error message for improper use of the exec builtin.
|
||||||
#define EXEC_ERR_MSG _(L"The '%ls' command can not be used in a pipeline")
|
#define EXEC_ERR_MSG _(L"The '%ls' command can not be used in a pipeline")
|
||||||
|
|
Loading…
Reference in a new issue