|Re: Generation of field initializers and methods body at JVM Inferring [message #937670 is a reply to message #936599]
||Tue, 09 October 2012 06: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 13:16]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02298 seconds