| 939 | } |
| 940 | |
| 941 | bool Value::hasNoneNullChildren() const { |
| 942 | for (auto i = 0u; i < childrenSize; ++i) { |
| 943 | if (!children[i]->isNull()) { |
| 944 | return true; |
| 945 | } |
| 946 | } |
| 947 | return false; |
| 948 | } |
| 949 | |
| 950 | // Handle the case of casting empty list to a different type. |
| 951 | bool Value::allowTypeChange() const { |