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

Method compileExpression

libsolidity/codegen/ContractCompiler.cpp:1537–1543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1535}
1536
1537void ContractCompiler::compileExpression(Expression const& _expression, Type const* _targetType)
1538{
1539 ExpressionCompiler expressionCompiler(m_context, m_optimiserSettings.runOrderLiterals);
1540 expressionCompiler.compile(_expression);
1541 if (_targetType)
1542 CompilerUtils(m_context).convertType(*_expression.annotation().type, *_targetType);
1543}
1544
1545void ContractCompiler::popScopedVariables(ASTNode const* _node)
1546{

Callers

nothing calls this directly

Calls 3

convertTypeMethod · 0.80
CompilerUtilsClass · 0.70
compileMethod · 0.45

Tested by

no test coverage detected