flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik de Bruin <e...@ixsoftware.nl>
Subject Re: [FlexJS] [FalconJX] Feature request - Preserve ASDoc style comments
Date Fri, 12 Sep 2014 20:04:57 GMT
Short answer: no.

Slightly longer answer - and I'm not pretending to actually know what I'm
talking about - Falcon doesn't preserve comments in the AST, so FalconJX
can't pick them up to put them in the JS output.

Maybe the compiler gurus can give some input if it would be possible to
implement at all?

EdB



On Friday, September 12, 2014, OmPrakash Muppirala <bigosmallm@gmail.com>
wrote:

> Is it possible to copy over the ASDoc styled comments when cross-compiling
> from AS to JS?
>
> My AS function looks like this:
>
>         /**
>          *  Draw the path.
>          *  @param data A string containing a compact represention of the
> path segments.
>          *  The value is a space-delimited string describing each path
> segment. Each
>          *  segment entry has a single character which denotes the segment
> type and
>          *  two or more segment parameters.
>          *
>          *  If the segment command is upper-case, the parameters are
> absolute values.
>          *  If the segment command is lower-case, the parameters are
> relative values.
>          *
>          *  @langversion 3.0
>          *  @playerversion Flash 10.2
>          *  @playerversion AIR 2.6
>          *  @productversion FlexJS 0.0
>          */
>         public function drawPath(data:String):void {
>
>
> But, when I cross-compile it, the JS function looks like this:
>
> /**
>  * @expose
>  * @param {string} data
>  */
> org.apache.flex.core.graphics.GraphicsContainer.prototype.drawPath =
> function(data) {
>
> Is there any way to preserve the comments from the AS3 version?
>
> Thanks,
> Om
>


-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message