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

Method finalBaseType

libsolidity/ast/Types.cpp:2012–2024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2010}
2011
2012Type const* ArrayType::finalBaseType(bool _breakIfDynamicArrayType) const
2013{
2014 Type const* finalBaseType = this;
2015
2016 while (auto arrayType = dynamic_cast<ArrayType const*>(finalBaseType))
2017 {
2018 if (_breakIfDynamicArrayType && arrayType->isDynamicallySized())
2019 break;
2020 finalBaseType = arrayType->baseType();
2021 }
2022
2023 return finalBaseType;
2024}
2025
2026u256 ArrayType::memoryDataSize() const
2027{

Callers 3

visitMethod · 0.80
containsNestedMappingMethod · 0.80
interfaceTypeMethod · 0.80

Calls 2

isDynamicallySizedMethod · 0.45
baseTypeMethod · 0.45

Tested by

no test coverage detected