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

Method withLocation

libsolidity/ast/TypeProvider.cpp:410–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410ReferenceType const* TypeProvider::withLocation(ReferenceType const* _type, DataLocation _location, bool _isPointer)
411{
412 if (_type->location() == _location && _type->isPointer() == _isPointer)
413 return _type;
414
415 instance().m_generalTypes.emplace_back(_type->copyForLocation(_location, _isPointer));
416 return static_cast<ReferenceType const*>(instance().m_generalTypes.back().get());
417}
418
419FunctionType const* TypeProvider::function(FunctionDefinition const& _function, FunctionType::Kind _kind)
420{

Callers

nothing calls this directly

Calls 4

isPointerMethod · 0.80
locationMethod · 0.45
copyForLocationMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected