You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested the code in Arrow-meta CliPlugin. but it does not work.
when I build in use-plugin ,the error is :NewMultipleSource.kt: (3, 2): Unresolved reference: arrow
I tested the code in Arrow-meta CliPlugin. but it does not work.
when I build in use-plugin ,the error is :NewMultipleSource.kt: (3, 2): Unresolved reference: arrow
val Meta.transformNewSources: CliPlugin
get() = "Transform New Multiple Source" {
meta(
classDeclaration(this,{element.name == "NewMultipleSource"}){
changeClassVisibility("NewMultipleSource" , it.element ,this)
}
)
}
fun CompilerContext.changeClassVisibility(className: String, context: KtClass, declaration: ClassDeclaration): Transform = declaration.run {
Transform.replace(
replacing = context,
newDeclaration = """
|private class $className {
| $body
| } """.
class
.syntheticScope)
generate-sources.zip
}
The text was updated successfully, but these errors were encountered: