Author Topic: Wish: Code generation - bug fixing/tracebility  (Read 1284 times)

Thomas_Arnbjerg

  • EA User
  • **
  • Posts: 80
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Wish: Code generation - bug fixing/tracebility
« on: November 22, 2007, 11:13:59 pm »
It would be nice if the names of the code generation templates used in a given file were somehow available in the file - either as a summary on a file/class/operation level or "near" the generated code. I'm doing this manually now but the structure of the information is scattered all over the source code, which makes the generated code "messy". It would be nice if the framework collected the summary based on the actual generated code and wrote a well-formatted section somewhere.

Rationale:
Implementing an extensive set of code generation templates with stereotyped overrides occasionally makes it difficult to track down the template used to generate a particular code fragment.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Wish: Code generation - bug fixing/tracebility
« Reply #1 on: November 22, 2007, 11:23:41 pm »
Good idea.

I suspect this summary might be at the end of the file, since it appears that code generation is a single pass operation.

Or, it might be that the code would be in a separate documentation file, given that EA generates many files when building code.

Either way, it would be nice to have consolidated documentation.

David
No, you can't have it!