diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-21 17:13:33 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-21 17:13:33 -0700 |
commit | ad6367018b5d04bdba99f10ec3afcb3398fe880e (patch) | |
tree | fd54aaaf145a313bece854a321482323233b21fd /parse_execution.h | |
parent | c71b1684020515f342f7dfd5e31324f84e2c6294 (diff) |
Excise use of parser_t's error() functionality. Thread a
parse_error_list_t through all of the expand functions, enabling them to
report errors more directly. Improve aspects of error reporting for
expansion failures.
Diffstat (limited to 'parse_execution.h')
-rw-r--r-- | parse_execution.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/parse_execution.h b/parse_execution.h index cb2ff65f..fb46f10a 100644 --- a/parse_execution.h +++ b/parse_execution.h @@ -65,7 +65,9 @@ private: execution_cancellation_reason_t cancellation_reason(const block_t *block) const; /* Report an error. Always returns true. */ - parse_execution_result_t report_error(const parse_node_t &node, const wchar_t *fmt, ...); + parse_execution_result_t report_error(const parse_node_t &node, const wchar_t *fmt, ...) const; + parse_execution_result_t report_errors(const parse_error_list_t &errors) const; + /* Wildcard error helper */ parse_execution_result_t report_unmatched_wildcard_error(const parse_node_t &unmatched_wildcard); |