Generate hx file and include position+file name from the genarator

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Generate hx file and include position+file name from the genarator

pleclech
This post has NOT been accepted by the mailing list yet.
Hi Everyone,

Is it possible to generate hx file for a file X and include in the generated file the originating file X and position into the source.

And so if there is an error from haxe compiler indicate file X and the position filled ?

Ex:

foo.hx:

@info:("file.X", line:10, pos:10)
package foo.bar;

@info:("file.X", line:12, pos:1)
import bar.XYZ;

... etc


Cheers,
Patrick.
Loading...