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

Method isTypeConstant

libsolidity/experimental/ast/TypeSystemHelper.cpp:216–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216bool TypeSystemHelpers::isTypeConstant(Type _type) const
217{
218 return std::visit(util::GenericVisitor{
219 [&](TypeConstant const&) -> bool {
220 return true;
221 },
222 [](auto const&) -> bool {
223 return false;
224 }
225 }, _type);
226}
227
228bool TypeSystemHelpers::isPrimitiveType(Type _type, PrimitiveType _primitiveType) const
229{

Callers 3

memberTypeMethod · 0.80
unifyMethod · 0.80
instantiateClassMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected