Scala structure

I'm trying to write a Java plugin that acts on scala sources, and I'm slowly but surely running out of hair to tear out in frustration. Does anyone have any thoughts, or even a starting point, to do any of the following...

- Given an interpolated string literal, resolve it to its final string value. For example:

val x = "foo"
val resolveMeForTheLoveOfGod = s"hi $x"

I'd like to go from the ScInterpolatedLiteral class to the actual text value, ie "hi foo".

- Given a ScReferencePattern when I put the cursor on a method call, how do I get the method call's parameters?


Please sign in to leave a comment.