MCPcopy Create free account
hub / github.com/argotorg/solidity / copyForLocation

Method copyForLocation

libsolidity/ast/Types.cpp:2036–2046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2034}
2035
2036std::unique_ptr<ReferenceType> ArrayType::copyForLocation(DataLocation _location, bool _isPointer) const
2037{
2038 auto copy = std::make_unique<ArrayType>(_location);
2039 if (_location == DataLocation::Storage)
2040 copy->m_isPointer = _isPointer;
2041 copy->m_arrayKind = m_arrayKind;
2042 copy->m_baseType = copy->copyForLocationIfReference(m_baseType);
2043 copy->m_hasDynamicLength = m_hasDynamicLength;
2044 copy->m_length = m_length;
2045 return copy;
2046}
2047
2048BoolResult ArraySliceType::isImplicitlyConvertibleTo(Type const& _other) const
2049{

Calls 1

Tested by

no test coverage detected