|Re: Generation of field initializers and methods body at JVM Inferring [message #937670 is a reply to message #936599]
||Tue, 09 October 2012 02:58
| Pascal Degenne
Registered: September 2012
I have been experimenting similar things recently.
Just a hint from what I understood : I guess you could at least generate the import statement using an injected TypeReferenceSerializer. The serialize() method appends the type name to the TreeAppendable but also deals with the import manager if needed.
I mean something like the following :
@Inject extension TypeReferenceSerializer
f.toField(name, type) [
val Procedure1<ITreeAppendable> proc = [
initializer = proc
[Updated on: Tue, 09 October 2012 09:16]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03566 seconds