File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
trimindent-compiler/src/main/java/com/bennyhuo/kotlin/trimindent/compiler Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import org.jetbrains.kotlin.ir.expressions.impl.IrConstImpl
11
11
import org.jetbrains.kotlin.ir.expressions.impl.IrStringConcatenationImpl
12
12
import org.jetbrains.kotlin.ir.types.classFqName
13
13
import org.jetbrains.kotlin.ir.util.fqNameWhenAvailable
14
+ import org.jetbrains.kotlin.ir.util.getPackageFragment
14
15
import org.jetbrains.kotlin.name.FqName
15
16
import org.jetbrains.kotlin.name.Name
16
17
import kotlin.contracts.ExperimentalContracts
@@ -33,7 +34,7 @@ internal fun IrCall.isTrimIndent(): Boolean {
33
34
return symbol.owner.name == Name .identifier(" trimIndent" )
34
35
&& dispatchReceiver == null
35
36
&& extensionReceiver?.type?.classFqName?.asString() == " kotlin.String"
36
- && symbol.owner.fqNameWhenAvailable?.parent ()?.asString() == " kotlin.text.StringsKt "
37
+ && symbol.owner.getPackageFragment ()?.fqName?. asString() == " kotlin.text"
37
38
}
38
39
39
40
fun IrPluginContext.prependIndent (): IrFunction {
You can’t perform that action at this time.
0 commit comments