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

Method typeConstructor

libsolidity/experimental/analysis/TypeInference.cpp:1212–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210 return *result;
1211}
1212TypeConstructor TypeInference::typeConstructor(Declaration const* _type) const
1213{
1214 if (auto const& constructor = m_analysis.annotation<TypeRegistration>(*_type).typeConstructor)
1215 return *constructor;
1216 m_errorReporter.fatalTypeError(5904_error, _type->location(), "Unregistered type.");
1217 util::unreachable();
1218}
1219experimental::Type TypeInference::type(Declaration const* _type, std::vector<Type> _arguments) const
1220{
1221 return m_typeSystem.type(typeConstructor(_type), std::move(_arguments));

Callers 2

visitMethod · 0.80
visitMethod · 0.80

Calls 3

unreachableFunction · 0.85
fatalTypeErrorMethod · 0.80
locationMethod · 0.45

Tested by

no test coverage detected