Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: GrahamL on June 14, 2021, 07:50:13 pm

Title: Importing c# does not import comments
Post by: GrahamL on June 14, 2021, 07:50:13 pm
Hi
I am importing c# code into my model and my comments are not imported as the element notes
For example
Code: [Select]
  public class AddManualTrackEventArgs : EventArgs
   {
      ///-------------------------------------------------------------------------------------------------
      /// <summary>  Altitude (metres AMSL). </summary>
      ///-------------------------------------------------------------------------------------------------
      public GeoLocation m_location;
In this example the comment for m_location is not imported
Can any one suggest a way doing this?

Thanks
Title: Re: Importing c# does not import comments
Post by: qwerty on June 14, 2021, 09:00:43 pm
I don't use that feature much, so I would guess that EA's compiler just does not parse the comment. There's not much you could do about as to send a feature request.

q.
Title: Re: Importing c# does not import comments
Post by: Eve on June 15, 2021, 08:06:29 am
My only guess is that you've turned off 'Reverse' of comments at Start > Desktop > Preferences > Source Code Engineering.
Title: Re: Importing c# does not import comments
Post by: GrahamL on June 16, 2021, 06:00:28 pm
I have those features turned on
If I create a cs file and import it the class comment is ignored
If I then add a class note to the class in EA and generate the code the original class note remains and the on created in EA is also included
Title: Re: Importing c# does not import comments
Post by: qwerty on June 16, 2021, 06:27:24 pm
Code generation and interpretatio have nothing in common. EA has an internal compiler for each of the languages. And how they work is completely unknown to us humans. The code gen in contrast uses that EA macro language you can alter.

q.