| 2549 | } |
| 2550 | |
| 2551 | FunctionTypePointer StructType::constructorType() const |
| 2552 | { |
| 2553 | TypePointers paramTypes; |
| 2554 | strings paramNames; |
| 2555 | solAssert(!containsNestedMapping(), ""); |
| 2556 | for (auto const& member: members(nullptr)) |
| 2557 | { |
| 2558 | paramNames.push_back(member.name); |
| 2559 | paramTypes.push_back(TypeProvider::withLocationIfReference(DataLocation::Memory, member.type)); |
| 2560 | } |
| 2561 | return TypeProvider::function( |
| 2562 | paramTypes, |
| 2563 | TypePointers{TypeProvider::withLocation(this, DataLocation::Memory, false)}, |
| 2564 | paramNames, |
| 2565 | strings(1, ""), |
| 2566 | FunctionType::Kind::Internal |
| 2567 | ); |
| 2568 | } |
| 2569 | |
| 2570 | std::pair<u256, unsigned> const& StructType::storageOffsetsOfMember(std::string const& _name) const |
| 2571 | { |
no test coverage detected