True if node is an element of an array - not the descriptor. */
| 225 | |
| 226 | /* True if node is an element of an array - not the descriptor. */ |
| 227 | static bool pn_is_in_array(pn_data_t *data, pni_node_t *parent, pni_node_t *node) { |
| 228 | return (parent && parent->atom.type == PN_ARRAY) /* In array */ |
| 229 | && !(parent->described && !node->prev); /* Not the descriptor */ |
| 230 | } |
| 231 | |
| 232 | /** True if node is the first element of an array, not the descriptor. |
| 233 | *@pre pn_is_in_array(data, parent, node) |
no outgoing calls
no test coverage detected