Parse a counted argument list, given the count.
| 791 | |
| 792 | // Parse a counted argument list, given the count. |
| 793 | ValueListNode* PAR_args(thread_db* tdbb, CompilerScratch* csb, USHORT count, USHORT allocCount) |
| 794 | { |
| 795 | SET_TDBB(tdbb); |
| 796 | |
| 797 | fb_assert(allocCount >= count); |
| 798 | |
| 799 | MemoryPool& pool = *tdbb->getDefaultPool(); |
| 800 | ValueListNode* node = FB_NEW_POOL(pool) ValueListNode(pool, allocCount); |
| 801 | NestConst<ValueExprNode>* ptr = node->items.begin(); |
| 802 | |
| 803 | if (count) |
| 804 | { |
| 805 | do |
| 806 | { |
| 807 | *ptr++ = PAR_parse_value(tdbb, csb); |
| 808 | } while (--count); |
| 809 | } |
| 810 | |
| 811 | return node; |
| 812 | } |
| 813 | |
| 814 | |
| 815 | // Parse a counted argument list. |
no test coverage detected