Book a Demo

Author Topic: New Grammar (TypeScript)  (Read 3516 times)

Daniel Santos

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
New Grammar (TypeScript)
« 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?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: New Grammar (TypeScript)
« Reply #1 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.