Skip to content

CliPlugin error:Unresolved reference: arrow #916

@song3liu

Description

@song3liu

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions