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

Method visit

libsolidity/codegen/ExpressionCompiler.cpp:288–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288bool ExpressionCompiler::visit(Conditional const& _condition)
289{
290 CompilerContext::LocationSetter locationSetter(m_context, _condition);
291 _condition.condition().accept(*this);
292 evmasm::AssemblyItem trueTag = m_context.appendConditionalJump();
293 acceptAndConvert(_condition.falseExpression(), *_condition.annotation().type);
294 evmasm::AssemblyItem endTag = m_context.appendJumpToNew();
295 m_context << trueTag;
296 int offset = static_cast<int>(_condition.annotation().type->sizeOnStack());
297 m_context.adjustStackOffset(-offset);
298 acceptAndConvert(_condition.trueExpression(), *_condition.annotation().type);
299 m_context << endTag;
300 return false;
301}
302
303bool ExpressionCompiler::visit(Assignment const& _assignment)
304{

Callers

nothing calls this directly

Calls 15

closestTypeFunction · 0.85
isShiftOpFunction · 0.85
swapInstructionFunction · 0.85
isCommutativeOpFunction · 0.85
isCompareOpFunction · 0.85
dupInstructionFunction · 0.85
ArrayUtilsClass · 0.85
erc7201CompileTimeValueFunction · 0.85
logInstructionFunction · 0.85
referencedDeclarationFunction · 0.85

Tested by

no test coverage detected