File tree Expand file tree Collapse file tree 5 files changed +6
-38
lines changed
src/main/java/com/bennyhuo/kotlin/trimindent/compiler Expand file tree Collapse file tree 5 files changed +6
-38
lines changed Original file line number Diff line number Diff line change @@ -110,36 +110,4 @@ plugins {
110110
111111## Change Log
112112
113- ### 1.9.10-1.1.0
114-
115- * Kotlin 1.9.10.
116-
117- ### 1.8.20-1.1.0
118-
119- * Fix embedded trimIndent call expressions.
120-
121- ### 1.8.20-1.0.0
122-
123- * Use new version style.
124- * Upgrade Kotlin to 1.8.20.
125-
126- ### 1.8.0
127-
128- * Upgrade Kotlin to 1.8.0.
129-
130- ### 1.7.10.3
131-
132- * Fix: A newline was mistakenly inserted after an interpolated variable.
133- * Feat: Reindent the whole value of the interpolated variable.
134-
135- ### 1.7.10.2
136-
137- Compatible with Java 8.
138-
139- ### 1.7.10.1
140-
141- Compatible with Kotlin 1.7.10.
142-
143- ### 1.6.10.1
144-
145- Compatible with Kotlin 1.6.10.
113+ See [ releases] ( ttps://github.com/bennyhuo/Kotlin-Trim-Indent/releases ) .
Original file line number Diff line number Diff line change 11plugins {
2- kotlin(" jvm" ) version " 1.9.10 " apply false
2+ kotlin(" jvm" ) version " 1.9.20 " apply false
33 id(" org.jetbrains.dokka" ) version " 1.7.10" apply false
44 id(" com.github.gmazzo.buildconfig" ) version " 2.1.0" apply false
55 id(" com.vanniktech.maven.publish" ) version " 0.22.0" apply false
Original file line number Diff line number Diff line change 11kotlin.code.style =official
22
3- VERSION_NAME =1.9.10 -1.1.0
3+ VERSION_NAME =1.9.20 -1.1.0-SNAPSHOT
44
55GROUP =com.bennyhuo.kotlin
66
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ dependencies {
1717
1818 testImplementation(kotlin(" test-junit" ))
1919 testImplementation(" org.jetbrains.kotlin:kotlin-compiler-embeddable" )
20- testImplementation(" com.bennyhuo.kotlin:kotlin-compile-testing-extensions:1.8 .20-1.2 .0" )
20+ testImplementation(" com.bennyhuo.kotlin:kotlin-compile-testing-extensions:1.9 .20-1.3 .0" )
2121}
2222
2323val compileKotlin: KotlinCompile by tasks
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ internal fun IrCall.isTrimIndent(): Boolean {
3434 return symbol.owner.name == Name .identifier(" trimIndent" )
3535 && dispatchReceiver == null
3636 && extensionReceiver?.type?.classFqName?.asString() == " kotlin.String"
37- && symbol.owner.getPackageFragment().fqName .asString() == " kotlin.text"
37+ && symbol.owner.getPackageFragment().packageFqName .asString() == " kotlin.text"
3838}
3939
4040fun IrPluginContext.prependIndent (): IrFunction {
4141 return referenceFunctions(CallableId (FqName (" kotlin.text" ), Name .identifier(" prependIndent" )))
4242 .singleOrNull {
4343 it.owner.extensionReceiverParameter?.type?.classFqName?.asString() == " kotlin.String"
4444 }?.owner!!
45- }
45+ }
You can’t perform that action at this time.
0 commit comments