[ 
https://issues.apache.org/jira/browse/FLEX-34544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

OmPrakash Muppirala updated FLEX-34544:
---------------------------------------
    Description: 
Is it possible to copy over the ASDoc styled comments when cross-compiling from 
AS to JS?

My AS function looks like this:
{code}
        /**
         *  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 {
{code}

But, when I cross-compile it, the JS function looks like this:

{code}
/**
 * @expose
 * @param {string} data
 */
org.apache.flex.core.graphics.GraphicsContainer.prototype.drawPath = 
function(data) {
{code}

Is there any way to preserve the comments from the AS3 version?

  was:
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?


> Preserve ASDoc style comments
> -----------------------------
>
>                 Key: FLEX-34544
>                 URL: https://issues.apache.org/jira/browse/FLEX-34544
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: Falcon, FlexJS
>    Affects Versions: Apache FlexJS 0.0.2
>            Reporter: OmPrakash Muppirala
>            Assignee: Alex Harui
>
> Is it possible to copy over the ASDoc styled comments when cross-compiling 
> from AS to JS?
> My AS function looks like this:
> {code}
>         /**
>          *  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 {
> {code}
> But, when I cross-compile it, the JS function looks like this:
> {code}
> /**
>  * @expose
>  * @param {string} data
>  */
> org.apache.flex.core.graphics.GraphicsContainer.prototype.drawPath = 
> function(data) {
> {code}
> Is there any way to preserve the comments from the AS3 version?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to