fullstack-lang / gong

Gong (go+ng) is a go sub-language that compiles to go and angular. All valid go is valid gong and vice versa. Gong enables fast development of web applications. Gong is model centric and by default, a UML diagram editor of the model is embedded in each application.
MIT License
12 stars 1 forks source link

put //gong:ident into doc comment, not free floating comments #491

Open thomaspeugeot opened 1 month ago

thomaspeugeot commented 1 month ago

Situation:

//gong:ident parsing allows renaming to propagate to static identifiers

It is currently used in the gongdoc package to reference meta information

    //gong:ident [ref_models.Astruct]
    __GongStructShape__000000_NewDiagram_Astruct.Identifier = `ref_models.Astruct`

Problem:

This is a free floating comment, not a doc comment.

Resolution:

thomaspeugeot commented 1 month ago

Well, field renaming does not work