The command a statement runs: the body of a redirection. */
| 802 | |
| 803 | /* The command a statement runs: the body of a redirection. */ |
| 804 | static TSNode sh_unwrap(TSNode n) { |
| 805 | while (sh_type(n, "redirected_statement")) { |
| 806 | TSNode body = ts_node_child_by_field_name(n, TS_FIELD("body")); |
| 807 | if (ts_node_is_null(body)) { |
| 808 | break; |
| 809 | } |
| 810 | n = body; |
| 811 | } |
| 812 | return n; |
| 813 | } |
| 814 | |
| 815 | /* The first non-option argument after argv[0]. */ |
| 816 | static const char *sh_first_operand(const sh_argv_t *a, int from) { |
no test coverage detected