aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-02-27 18:37:59 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-02-27 18:37:59 -0800
commitd628fe0deaa134efa1205a25e538f3cb828661a0 (patch)
treeda788321b10efb8740607bf454857de10fb783c3 /src/parser.h
parentcbd3fa6b01bab709d0b6f5277a984685d8c45888 (diff)
Eliminate parser_t::show_errors
Errors are now unconditionally shown
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/parser.h b/src/parser.h
index df3df8ee..dfc4dcf1 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -228,9 +228,6 @@ class parser_t
{
friend class parse_execution_context_t;
private:
- /** Whether or not we output errors */
- const bool show_errors;
-
/** Indication that we should skip all blocks */
bool cancellation_requested;
@@ -283,8 +280,8 @@ public:
*/
static void skip_all_blocks();
- /** Create a parser of the given type */
- parser_t(bool show_errors);
+ /** Create a parser */
+ parser_t();
/** Global event blocks */
event_blockage_list_t global_event_blocks;
@@ -312,7 +309,7 @@ public:
\param flags Some expand flags to use
\param output List to insert output into
*/
- void expand_argument_list(const wcstring &arg_src, expand_flags_t flags, std::vector<completion_t> *output);
+ void expand_argument_list(const wcstring &arg_src, expand_flags_t flags, std::vector<completion_t> *output) const;
/**
Returns a string describing the current parser pisition in the format 'FILENAME (line LINE_NUMBER): LINE'.