Hi,
Is there a way to track a certain instance in a compiler plugin?
As in, if someone creates an instance and then, say, puts it inside an array, is there a way of knowing that the instance is in that array and at which index?
e.g. in code as follows:
val myCat = new Cat()
val cats = for(cat <- List(myCat)) yield cat
Does the compiler know that myCat is now in cats(0)? And is there a way to retreive that information in a compiler plugin?