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

Method hasReferenceOrMappingType

libsolidity/ast/AST.cpp:819–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819bool VariableDeclaration::hasReferenceOrMappingType() const
820{
821 solAssert(typeName().annotation().type, "Can only be called after reference resolution");
822 Type const* type = typeName().annotation().type;
823 return type->category() == Type::Category::Mapping || dynamic_cast<ReferenceType const*>(type);
824}
825
826bool VariableDeclaration::isStateVariable() const
827{

Callers 3

endVisitMethod · 0.80
assignmentMethod · 0.80

Calls 1

categoryMethod · 0.45

Tested by

no test coverage detected