@@ -2394,47 +2394,43 @@ open class KotlinFileExtractor(
23942394 extractExpressionExpr(e.argument, callable, id, 1 , enclosingStmt)
23952395 }
23962396 IrTypeOperator .IMPLICIT_CAST -> {
2397- // TODO: Make this distinguishable from an explicit cast?
2398- val id = tw.getFreshIdLabel<DbCastexpr >()
2397+ val id = tw.getFreshIdLabel<DbImplicitcastexpr >()
23992398 val locId = tw.getLocation(e)
24002399 val type = useType(e.type)
2401- tw.writeExprs_castexpr (id, type.javaResult.id, type.kotlinResult.id, parent, idx)
2400+ tw.writeExprs_implicitcastexpr (id, type.javaResult.id, type.kotlinResult.id, parent, idx)
24022401 tw.writeHasLocation(id, locId)
24032402 tw.writeCallableEnclosingExpr(id, callable)
24042403 tw.writeStatementEnclosingExpr(id, enclosingStmt)
24052404 extractTypeAccess(e.typeOperand, callable, id, 0 , e, enclosingStmt)
24062405 extractExpressionExpr(e.argument, callable, id, 1 , enclosingStmt)
24072406 }
24082407 IrTypeOperator .IMPLICIT_NOTNULL -> {
2409- // TODO: Make this distinguishable from an explicit cast?
2410- val id = tw.getFreshIdLabel<DbCastexpr >()
2408+ val id = tw.getFreshIdLabel<DbImplicitnotnullexpr >()
24112409 val locId = tw.getLocation(e)
24122410 val type = useType(e.type)
2413- tw.writeExprs_castexpr (id, type.javaResult.id, type.kotlinResult.id, parent, idx)
2411+ tw.writeExprs_implicitnotnullexpr (id, type.javaResult.id, type.kotlinResult.id, parent, idx)
24142412 tw.writeHasLocation(id, locId)
24152413 tw.writeCallableEnclosingExpr(id, callable)
24162414 tw.writeStatementEnclosingExpr(id, enclosingStmt)
24172415 extractTypeAccess(e.typeOperand, callable, id, 0 , e, enclosingStmt)
24182416 extractExpressionExpr(e.argument, callable, id, 1 , enclosingStmt)
24192417 }
24202418 IrTypeOperator .IMPLICIT_COERCION_TO_UNIT -> {
2421- // TODO: Make this distinguishable from an explicit cast?
2422- val id = tw.getFreshIdLabel<DbCastexpr >()
2419+ val id = tw.getFreshIdLabel<DbImplicitcoerciontounitexpr >()
24232420 val locId = tw.getLocation(e)
24242421 val type = useType(e.type)
2425- tw.writeExprs_castexpr (id, type.javaResult.id, type.kotlinResult.id, parent, idx)
2422+ tw.writeExprs_implicitcoerciontounitexpr (id, type.javaResult.id, type.kotlinResult.id, parent, idx)
24262423 tw.writeHasLocation(id, locId)
24272424 tw.writeCallableEnclosingExpr(id, callable)
24282425 tw.writeStatementEnclosingExpr(id, enclosingStmt)
24292426 extractTypeAccess(e.typeOperand, callable, id, 0 , e, enclosingStmt)
24302427 extractExpressionExpr(e.argument, callable, id, 1 , enclosingStmt)
24312428 }
24322429 IrTypeOperator .SAFE_CAST -> {
2433- // TODO: Distinguish this (e as? T) from CAST
2434- val id = tw.getFreshIdLabel<DbCastexpr >()
2430+ val id = tw.getFreshIdLabel<DbSafecastexpr >()
24352431 val locId = tw.getLocation(e)
24362432 val type = useType(e.type)
2437- tw.writeExprs_castexpr (id, type.javaResult.id, type.kotlinResult.id, parent, idx)
2433+ tw.writeExprs_safecastexpr (id, type.javaResult.id, type.kotlinResult.id, parent, idx)
24382434 tw.writeHasLocation(id, locId)
24392435 tw.writeCallableEnclosingExpr(id, callable)
24402436 tw.writeStatementEnclosingExpr(id, enclosingStmt)
0 commit comments