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

Method binaryOperatorResult

libsolidity/ast/Types.cpp:538–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536
537
538TypeResult AddressType::binaryOperatorResult(Token _operator, Type const* _other) const
539{
540 if (!TokenTraits::isCompareOp(_operator))
541 return TypeResult::err("Arithmetic operations on addresses are not supported. Convert to integer first before using them.");
542
543 return Type::commonType(this, _other);
544}
545
546bool AddressType::operator==(Type const& _other) const
547{

Callers 3

visitMethod · 0.45
endVisitMethod · 0.45
endVisitMethod · 0.45

Calls 15

isCompareOpFunction · 0.85
isShiftOpFunction · 0.85
isBooleanOpFunction · 0.85
isBitOpFunction · 0.85
absFunction · 0.85
isFractionalMethod · 0.80
integerTypeMethod · 0.80
isNegativeMethod · 0.80
hasBoundFirstArgumentMethod · 0.80
categoryMethod · 0.45
isSignedMethod · 0.45

Tested by

no test coverage detected