Migrate parse_util_detect_errors_in_argument to tnode_t

This commit is contained in:
ridiculousfish
2018-01-12 11:36:45 -08:00
parent f69055b5e9
commit 55fc10ea6e
4 changed files with 28 additions and 42 deletions

View File

@@ -136,7 +136,8 @@ parser_test_error_bits_t parse_util_detect_errors(const wcstring &buff_src,
/// operator. This does NOT currently detect unterminated quotes.
class parse_node_t;
parser_test_error_bits_t parse_util_detect_errors_in_argument(
const parse_node_t &node, const wcstring &arg_src, parse_error_list_t *out_errors = NULL);
tnode_t<grammar::argument> node, const wcstring &arg_src,
parse_error_list_t *out_errors = NULL);
/// Given a string containing a variable expansion error, append an appropriate error to the errors
/// list. The global_token_pos is the offset of the token in the larger source, and the dollar_pos