| 252 | : child_{std::move(child)}, parameters_{{TypeParameter(child_)}} {} |
| 253 | |
| 254 | bool ArrayType::equivalent(const Type& other) const { |
| 255 | if (&other == this) { |
| 256 | return true; |
| 257 | } |
| 258 | if (!Type::hasSameTypeId(other)) { |
| 259 | return false; |
| 260 | } |
| 261 | auto& otherArray = other.asArray(); |
| 262 | return child_->equivalent(*otherArray.child_); |
| 263 | } |
| 264 | |
| 265 | folly::dynamic ArrayType::serialize() const { |
| 266 | folly::dynamic obj = folly::dynamic::object; |