Raehat Singh Nanda
03/16/2023, 11:04 PMimplementation 'io.arrow-kt:arrow-meta:1.6.0'
But I still can't resolve
import arrow.meta.quotes
If only this resolve issue is solved, everything will work just fine
I looked into the downloaded arrow meta package and found arrow.meta.quotes doesn't even existraulraja
03/17/2023, 7:47 AMRaehat Singh Nanda
03/18/2023, 12:24 PMraulraja
03/18/2023, 7:31 PMraulraja
03/18/2023, 7:33 PMRaehat Singh Nanda
03/18/2023, 8:04 PMRaehat Singh Nanda
03/18/2023, 8:05 PMRaehat Singh Nanda
03/18/2023, 8:11 PMraulraja
03/18/2023, 8:48 PM@DebugThreadName
or similar.
2. Alternatively do not use an annotation if you want to intercept all methods.
3. Instead of using quotes use the backend IR to perform a transformation. https://github.com/arrow-kt/arrow-meta/blob/main/libs/arrow-meta/src/main/kotlin/arrow/meta/dsl/codegen/ir/IrSyntax.kt if you want to use Arrow Meta or use directly the IR compiler transformers:
object : IrElementTransformer<Unit> {
override fun visitSimpleFunction(declaration: IrSimpleFunction, data: Unit): IrStatement =
// inject here statements in body to get thread name or whatever if the declaration is annotated with `@DebugThreadName`
}
raulraja
03/18/2023, 8:50 PMRaehat Singh Nanda
03/18/2023, 8:56 PMRaehat Singh Nanda
03/18/2023, 8:57 PMRaehat Singh Nanda
03/18/2023, 8:57 PMraulraja
03/18/2023, 9:00 PMRaehat Singh Nanda
03/18/2023, 9:08 PM