Teach decoration_for_plain_statement about tnode, rename it get_decoration

This commit is contained in:
ridiculousfish
2018-01-13 16:43:12 -08:00
parent 84dcb24682
commit f0f56a6910
9 changed files with 29 additions and 41 deletions

View File

@@ -1174,7 +1174,7 @@ parser_test_error_bits_t parse_util_detect_errors(const wcstring &buff_src,
// We need to know the decoration.
const enum parse_statement_decoration_t decoration =
node_tree.decoration_for_plain_statement(node);
get_decoration({&node_tree, &node});
// Check that we don't try to pipe through exec.
if (is_in_pipeline && decoration == parse_statement_decoration_exec) {