Why we can not use DottyUnpickler for work with tasty files?

Yes, that’s the methods that don’t take a (using Context) argument. Since they don’t have a context, they literally cannot look at other files, so it’s guaranteed not to change in the future by the very type system.

But there’s not much you’ll find there that you wouldn’t be able to get from parsing the source file with ScalaMeta. You can get the “surface syntax” of inferred types, but that’s pretty much it.

2 Likes