| 1165 | } |
| 1166 | |
| 1167 | static VAR_EXPANDED apply_modifiers_impl( LIST * result, string * buf, |
| 1168 | VAR_EDITS * edits, int32_t n, LISTITER iter, LISTITER end ) |
| 1169 | { |
| 1170 | LIST * modified = iter == end |
| 1171 | ? apply_modifiers_empty( result, buf, edits, n ) |
| 1172 | : apply_modifiers_non_empty( result, buf, edits, n, iter, end ); |
| 1173 | VAR_EXPANDED expanded; |
| 1174 | expanded.value = apply_modifiers_prepost( |
| 1175 | L0, buf, edits, n, list_begin( modified ), list_end( modified ) ); |
| 1176 | expanded.inner = modified; |
| 1177 | expanded.opt_file = false; |
| 1178 | expanded.opt_content = false; |
| 1179 | for ( int32_t i = 0; i < n; ++i ) |
| 1180 | { |
| 1181 | expanded.opt_file |= edits[i].opt_file; |
| 1182 | expanded.opt_content |= edits[i].opt_content; |
| 1183 | } |
| 1184 | return expanded; |
| 1185 | } |
| 1186 | |
| 1187 | static LIST * apply_subscript_and_modifiers( STACK * s, int32_t n ) |
| 1188 | { |
no test coverage detected