diff --git a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/baseClass/baseClass.kt b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/baseClass/baseClass.kt index 96331ae26d8..c56d293dca2 100644 --- a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/baseClass/baseClass.kt +++ b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/baseClass/baseClass.kt @@ -8,8 +8,7 @@ fun Activity.a() { val y = this.login } -// 2 GETSTATIC -// 2 INVOKEVIRTUAL -// 2 CHECKCAST -// 0 _\$_findCachedViewById -// 2 findViewById \ No newline at end of file +// 2 GETSTATIC com/myapp/R\$id\.login +// 2 INVOKEVIRTUAL android/app/Activity\.findViewById +// 2 CHECKCAST android/widget/Button +// 0 _\$_findCachedViewById \ No newline at end of file diff --git a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/baseClassFragment/baseClassFragment.kt b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/baseClassFragment/baseClassFragment.kt index fac5e0cdcc1..c42ecd99000 100644 --- a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/baseClassFragment/baseClassFragment.kt +++ b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/baseClassFragment/baseClassFragment.kt @@ -8,9 +8,8 @@ fun Fragment.a() { val y = this.login } -// 2 GETSTATIC -// 4 INVOKEVIRTUAL -// 2 CHECKCAST -// 0 _\$_findCachedViewById -// 2 findViewById -// 2 getView \ No newline at end of file +// 2 GETSTATIC com/myapp/R\$id\.login +// 2 CHECKCAST android/widget/Button +// 2 INVOKEVIRTUAL android/app/Fragment\.getView +// 2 INVOKEVIRTUAL android/view/View\.findViewById +// 0 _\$_findCachedViewById \ No newline at end of file diff --git a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/clearCache/clearCache.kt b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/clearCache/clearCache.kt index 5ea50a48ee6..a53a518d9ac 100644 --- a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/clearCache/clearCache.kt +++ b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/clearCache/clearCache.kt @@ -6,9 +6,9 @@ import java.io.File import kotlinx.android.synthetic.* public class MyActivity : Activity() { - {clearFindViewByIdCache()} + init { clearFindViewByIdCache() } } -// 5 INVOKEVIRTUAL -// 1 CHECKCAST -// 2 _\$_clearFindViewByIdCache \ No newline at end of file +// 1 public _\$_findCachedViewById +// 1 public _\$_clearFindViewByIdCache +// 1 INVOKEVIRTUAL com/myapp/MyActivity\._\$_clearFindViewByIdCache diff --git a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/clearCacheBaseClass/clearCacheBaseClass.kt b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/clearCacheBaseClass/clearCacheBaseClass.kt index 97f1ae17cf6..2e444109162 100644 --- a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/clearCacheBaseClass/clearCacheBaseClass.kt +++ b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/clearCacheBaseClass/clearCacheBaseClass.kt @@ -9,4 +9,4 @@ public fun Activity.a() { clearFindViewByIdCache() } -// 0 clearFindViewByIdCache \ No newline at end of file +// 0 clearFindViewByIdCache \ No newline at end of file diff --git a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctions/extensionFunctions.kt b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctions/extensionFunctions.kt index fec92fcb0e0..3ed457e41bd 100644 --- a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctions/extensionFunctions.kt +++ b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctions/extensionFunctions.kt @@ -14,8 +14,8 @@ fun MyActivity.b() { val y = this.login } -// 2 GETSTATIC -// 6 INVOKEVIRTUAL -// 3 CHECKCAST -// 3 _\$_findCachedViewById -// 1 findViewById \ No newline at end of file +// 1 public _\$_findCachedViewById +// 1 public _\$_clearFindViewByIdCache +// 2 GETSTATIC com/myapp/R\$id\.login +// 2 INVOKEVIRTUAL com/myapp/MyActivity\._\$_findCachedViewById +// 2 CHECKCAST android/widget/Button diff --git a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctionsBaseClass/extensionFunctionsBaseClass.kt b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctionsBaseClass/extensionFunctionsBaseClass.kt deleted file mode 100644 index 8d45c659bbc..00000000000 --- a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctionsBaseClass/extensionFunctionsBaseClass.kt +++ /dev/null @@ -1,21 +0,0 @@ -package com.myapp - -import android.app.Activity -import android.os.Bundle -import java.io.File -import kotlinx.android.synthetic.layout.* - -public class MyActivity : Activity() { - -} - -fun Activity.b() { - val x = login - val y = this.login -} - -// 2 GETSTATIC -// 6 INVOKEVIRTUAL -// 3 CHECKCAST -// 1 _\$_findCachedViewById -// 3 findViewById \ No newline at end of file diff --git a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctionsBaseClass/res/layout/layout.xml b/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctionsBaseClass/res/layout/layout.xml deleted file mode 100644 index 4d73173b521..00000000000 --- a/plugins/android-compiler-plugin/testData/codegen/bytecodeShape/extensionFunctionsBaseClass/res/layout/layout.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - -