| 2968 | } |
| 2969 | |
| 2970 | std::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 | |
| 2979 | std::string IRGeneratorForStatements::expressionAsCleanedType(Expression const& _expression, Type const& _to) |
| 2980 | { |
nothing calls this directly
no test coverage detected