aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/parser.h b/parser.h
index 3e4a431f..15de1e98 100644
--- a/parser.h
+++ b/parser.h
@@ -345,7 +345,7 @@ public:
\param arg_src String to evaluate as an argument list
\param output List to insert output into
*/
- void eval_args(const wcstring &arg_src, std::vector<completion_t> &output);
+ void expand_argument_list(const wcstring &arg_src, std::vector<completion_t> &output);
/**
Sets the current evaluation error. This function should only be used by libraries that are called by
@@ -438,12 +438,9 @@ public:
void get_backtrace(const wcstring &src, const parse_error_list_t &errors, wcstring *output) const;
/**
- Test if the specified string can be parsed as an argument list,
- e.g. sent to eval_args. The result has the first bit set if the
- string contains errors, and the second bit is set if the string
- contains an unclosed block.
+ Detect errors in the specified string when parsed as an argument list. Returns true if an error occurred.
*/
- int test_args(const wchar_t * buff, wcstring *out, const wchar_t *prefix);
+ bool detect_errors_in_argument_list(const wcstring &arg_list_src, wcstring *out_err, const wchar_t *prefix);
/**
Tell the parser that the specified function may not be run if not