Copies this array's elements into the parameter list. Caller has ensured param_list can fit aParamCount + Length().
| 287 | // Copies this array's elements into the parameter list. |
| 288 | // Caller has ensured param_list can fit aParamCount + Length(). |
| 289 | void Array::ToParams(ExprTokenType *token, ExprTokenType **param_list, ExprTokenType **aParam, int aParamCount) |
| 290 | { |
| 291 | for (index_t i = 0; i < mLength; ++i) |
| 292 | mItem[i].ToToken(token[i]); |
| 293 | |
| 294 | ExprTokenType **param_ptr = param_list; |
| 295 | for (int i = 0; i < aParamCount; ++i) |
| 296 | *param_ptr++ = aParam[i]; // Caller-supplied param token. |
| 297 | for (index_t i = 0; i < mLength; ++i) |
| 298 | *param_ptr++ = &token[i]; // New param. |
| 299 | } |
| 300 | |
| 301 | ResultType GetEnumerator(IObject *&aEnumerator, ExprTokenType &aEnumerable, int aVarCount, bool aDisplayError) |
| 302 | { |
no test coverage detected