On 10/25/2015 03:46 AM, Andrey Ilinykh wrote:
> I want to print a parsed tree. if I just call toString method I get
> something like Function1[Int,Int]. It is correct, but I want to have
> Int => Int. What is the best way to do it?
This is indeed a problem, which makes DeclarationPrinter useless. It
looks like you have to bite the bullet and reimplement parts of
DeclarationPrinter based only on the syntactical information.
> I Looked into declaration printer, it heavily relies on Symbols (which
> are not available in parsed tree) and has to run on compiler thread.
> Is it possible to use declaration printer on any thread?
No, that is not possible. It needs to run on the PC thread.