Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Daniel Santos on October 24, 2015, 04:20:58 am

Title: New Grammar (TypeScript)
Post by: Daniel Santos on October 24, 2015, 04:20:58 am
Hello. I'm developing TypeScript support for EA.
I already created code templates and a proper grammar for it. However every time I sync model and source my properties and methods notes are duplicated like this.

          /**
           * 0 to 65535
           */
          /**
           * 0 to 65535
           */
    /**
     * 0 to 65535
     */
    public id: number;


          /**
           * meters
           */
          /**
           * meters
           */
    /**
     * meters
     */
    public position: number;

What can i do to avoid it?
Title: Re: New Grammar (TypeScript)
Post by: Eve on October 26, 2015, 08:08:56 am
At a guess (without seeing your templates)

Make sure that your attribute notes are being generated outside of the attribute declaration template.