Convert GenerationState: actual conversion
This commit is contained in:
@@ -261,7 +261,7 @@ public class AndroidExpressionCodegenExtension : ExpressionCodegenExtension {
|
||||
methodVisitor.visitCode()
|
||||
val iv = InstructionAdapter(methodVisitor)
|
||||
|
||||
val classType = state.getTypeMapper().mapClass(descriptor)
|
||||
val classType = state.typeMapper.mapClass(descriptor)
|
||||
val className = classType.getInternalName()
|
||||
|
||||
fun loadCache() {
|
||||
@@ -282,7 +282,7 @@ public class AndroidExpressionCodegenExtension : ExpressionCodegenExtension {
|
||||
}
|
||||
|
||||
private fun SyntheticPartsGenerateContext.generateCachedFindViewByIdFunction() {
|
||||
val classType = state.getTypeMapper().mapClass(descriptor)
|
||||
val classType = state.typeMapper.mapClass(descriptor)
|
||||
val className = classType.getInternalName()
|
||||
|
||||
val viewType = Type.getObjectType("android/view/View")
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ public class StubProducerExtension(val stubsOutputDir: File) : AnalysisCompleted
|
||||
KotlinCodegenFacade.compileCorrectFiles(generationState, CompilationErrorHandler.THROW_EXCEPTION)
|
||||
|
||||
if (!stubsOutputDir.exists()) stubsOutputDir.mkdirs()
|
||||
generationState.getFactory().writeAllTo(stubsOutputDir)
|
||||
generationState.factory.writeAllTo(stubsOutputDir)
|
||||
|
||||
generationState.destroy()
|
||||
return AnalysisResult.success(BindingContext.EMPTY, module, shouldGenerateCode = false)
|
||||
|
||||
Reference in New Issue
Block a user