mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 04:58:57 +00:00
Run restyle.sh to enforce style rules.
This commit is contained in:
parent
fe3b439e31
commit
0d3169ef70
30 changed files with 450 additions and 443 deletions
|
@ -116,7 +116,10 @@ public:
|
|||
parse_execution_context_t(const parse_node_tree_t &t, const wcstring &s, parser_t *p, int initial_eval_level);
|
||||
|
||||
/* Returns the current eval level */
|
||||
int current_eval_level() const { return eval_level; }
|
||||
int current_eval_level() const
|
||||
{
|
||||
return eval_level;
|
||||
}
|
||||
|
||||
/* Returns the current line number, indexed from 1. Not const since it touches cached_lineno_offset */
|
||||
int get_current_line_number();
|
||||
|
@ -125,7 +128,10 @@ public:
|
|||
int get_current_source_offset() const;
|
||||
|
||||
/* Returns the source string */
|
||||
const wcstring &get_source() const { return src; }
|
||||
const wcstring &get_source() const
|
||||
{
|
||||
return src;
|
||||
}
|
||||
|
||||
/* Start executing at the given node offset. Returns 0 if there was no error, 1 if there was an error */
|
||||
parse_execution_result_t eval_node_at_offset(node_offset_t offset, const block_t *associated_block, const io_chain_t &io);
|
||||
|
|
|
@ -1502,7 +1502,8 @@ bool parse_node_tree_t::job_should_be_backgrounded(const parse_node_t &job) cons
|
|||
assert(job.production_idx == 0);
|
||||
bool result = false;
|
||||
const parse_node_t *opt_background = get_child(job, 2, symbol_optional_background);
|
||||
if (opt_background != NULL) {
|
||||
if (opt_background != NULL)
|
||||
{
|
||||
assert(opt_background->production_idx <= 1);
|
||||
result = (opt_background->production_idx == 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue