@@ -1901,9 +1901,8 @@ open class KotlinFileExtractor(
19011901
19021902 val dr = c.dispatchReceiver
19031903 when {
1904- c.origin == IrStatementOrigin .PLUS &&
1905- (isNumericFunction(target, " plus" )
1906- || isFunction(target, " kotlin" , " String" , " plus" , null )) -> {
1904+ isNumericFunction(target, " plus" )
1905+ || isFunction(target, " kotlin" , " String" , " plus" , false ) -> {
19071906 val id = tw.getFreshIdLabel<DbAddexpr >()
19081907 val type = useType(c.type)
19091908 tw.writeExprs_addexpr(id, type.javaResult.id, parent, idx)
@@ -1918,28 +1917,28 @@ open class KotlinFileExtractor(
19181917 extractRawMethodAccess(stringPlusFn, c, callable, parent, idx, enclosingStmt, listOf (c.extensionReceiver, c.getValueArgument(0 )), null , null )
19191918 }
19201919 }
1921- c.origin == IrStatementOrigin . MINUS && isNumericFunction(target, " minus" ) -> {
1920+ isNumericFunction(target, " minus" ) -> {
19221921 val id = tw.getFreshIdLabel<DbSubexpr >()
19231922 val type = useType(c.type)
19241923 tw.writeExprs_subexpr(id, type.javaResult.id, parent, idx)
19251924 tw.writeExprsKotlinType(id, type.kotlinResult.id)
19261925 binopDisp(id)
19271926 }
1928- c.origin == IrStatementOrigin . MUL && isNumericFunction(target, " times" ) -> {
1927+ isNumericFunction(target, " times" ) -> {
19291928 val id = tw.getFreshIdLabel<DbMulexpr >()
19301929 val type = useType(c.type)
19311930 tw.writeExprs_mulexpr(id, type.javaResult.id, parent, idx)
19321931 tw.writeExprsKotlinType(id, type.kotlinResult.id)
19331932 binopDisp(id)
19341933 }
1935- c.origin == IrStatementOrigin . DIV && isNumericFunction(target, " div" ) -> {
1934+ isNumericFunction(target, " div" ) -> {
19361935 val id = tw.getFreshIdLabel<DbDivexpr >()
19371936 val type = useType(c.type)
19381937 tw.writeExprs_divexpr(id, type.javaResult.id, parent, idx)
19391938 tw.writeExprsKotlinType(id, type.kotlinResult.id)
19401939 binopDisp(id)
19411940 }
1942- c.origin == IrStatementOrigin . PERC && isNumericFunction(target, " rem" ) -> {
1941+ isNumericFunction(target, " rem" ) -> {
19431942 val id = tw.getFreshIdLabel<DbRemexpr >()
19441943 val type = useType(c.type)
19451944 tw.writeExprs_remexpr(id, type.javaResult.id, parent, idx)
0 commit comments