(property, index)
| 409 | } |
| 410 | |
| 411 | function get(property, index) { |
| 412 | if (requiresUnpackForGet(property)) { |
| 413 | unpackProperty(property); |
| 414 | } |
| 415 | |
| 416 | const classProperty = property._classProperty; |
| 417 | const isArray = classProperty.isArray; |
| 418 | const type = classProperty.type; |
| 419 | const componentCount = MetadataType.getComponentCount(type); |
| 420 | |
| 421 | if (defined(property._unpackedValues)) { |
| 422 | const value = property._unpackedValues[index]; |
| 423 | if (isArray) { |
| 424 | return clone(value, true); |
| 425 | } |
| 426 | return value; |
| 427 | } |
| 428 | |
| 429 | // handle single values |
| 430 | if (!isArray && componentCount === 1) { |
| 431 | return property._getValue(index); |
| 432 | } |
| 433 | |
| 434 | return getArrayValues(property, classProperty, index); |
| 435 | } |
| 436 | |
| 437 | function getArrayValues(property, classProperty, index) { |
| 438 | let offset; |
no test coverage detected