-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
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
}
Metadata
Metadata
Assignees
Labels
No labels