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

Method isPrimitiveType

libsolidity/experimental/ast/TypeSystemHelper.cpp:228–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228bool TypeSystemHelpers::isPrimitiveType(Type _type, PrimitiveType _primitiveType) const
229{
230 if (!isTypeConstant(_type))
231 return false;
232 auto constructor = std::get<0>(destTypeConstant(_type));
233 return constructor == typeSystem.constructor(_primitiveType);
234}
235
236experimental::Type TypeSystemHelpers::functionType(experimental::Type _argType, experimental::Type _resultType) const
237{

Callers 1

visitMethod · 0.80

Calls 1

constructorMethod · 0.45

Tested by

no test coverage detected