| 379 | } |
| 380 | |
| 381 | bool ExpressionValue::IsHeapStringArrayType() const noexcept |
| 382 | { |
| 383 | if (type != (uint32_t)TypeCode::HeapArray) |
| 384 | { |
| 385 | return false; |
| 386 | } |
| 387 | |
| 388 | ReadLocker lock(Heap::heapLock); // must have a read lock on heapLock when calling GetNumElements or GetElement |
| 389 | const size_t numElems = ahVal.GetNumElements(); |
| 390 | for (size_t i = 0; i < numElems; ++i) |
| 391 | { |
| 392 | if (ahVal.GetElementType(i) != TypeCode::HeapString) |
| 393 | { |
| 394 | return false; |
| 395 | } |
| 396 | } |
| 397 | return true; |
| 398 | } |
| 399 | |
| 400 | #if SUPPORT_CAN_EXPANSION |
| 401 |
no test coverage detected