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

Method resolve

libsolidity/experimental/ast/TypeSystem.cpp:205–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205experimental::Type TypeEnvironment::resolve(Type _type) const
206{
207 Type result = _type;
208 while (auto const* var = std::get_if<TypeVariable>(&result))
209 if (Type const* resolvedType = util::valueOrNullptr(m_typeVariables, var->index()))
210 result = *resolvedType;
211 else
212 break;
213 return result;
214}
215
216experimental::Type TypeEnvironment::resolveRecursive(Type _type) const
217{

Callers 9

memberTypeMethod · 0.45
typeVarsMethod · 0.45
substituteMethod · 0.45
canonicalTypeNameMethod · 0.45
typeToStringMethod · 0.45
endVisitMethod · 0.45
generateMethod · 0.45

Calls 2

valueOrNullptrFunction · 0.85
indexMethod · 0.45

Tested by

no test coverage detected