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

Method expressionAsType

libsolidity/codegen/ir/IRGeneratorForStatements.cpp:2970–2977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2968}
2969
2970std::string IRGeneratorForStatements::expressionAsType(Expression const& _expression, Type const& _to)
2971{
2972 IRVariable from(_expression);
2973 if (from.type() == _to)
2974 return from.commaSeparatedList();
2975 else
2976 return m_utils.conversionFunction(from.type(), _to) + "(" + from.commaSeparatedList() + ")";
2977}
2978
2979std::string IRGeneratorForStatements::expressionAsCleanedType(Expression const& _expression, Type const& _to)
2980{

Callers

nothing calls this directly

Calls 3

commaSeparatedListMethod · 0.80
conversionFunctionMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected