Replies: 1 comment 5 replies
-
You should be able to go through the val methodSym: TermSymbol = ???
methodSym.tree match
case Some(DefDef(_, paramLists, _, _)) =>
val paramSymss = paramLists.map {
case Left(valDefs) => valDefs.map(_.symbol)
case Right(typeParams) => typeParams.map(_.symbol)
}
case _ =>
println("hum, I don't have a tree, or it's not a method That only works for methods coming from Scala 3, though. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is the a way to get the Parameter Annotations of a Method?
I would say that a ParameterSymbol is missing.
Beta Was this translation helpful? Give feedback.
All reactions