fullstack-lang / gongdoc

A gong stack for editing UML diagrams of gong code
MIT License
1 stars 0 forks source link

Renaming is not performed on Field #136

Closed thomaspeugeot closed 1 year ago

thomaspeugeot commented 1 year ago

Foo has been renamed to Bar

NewDiagram.go file is

    "ref_models.Foo.Waldos": (ref_models.Bar{}).Waldos,
...

    // Declarations of staged instances of Link
    __Link__000000_Waldos := (&models.Link{Name: `Waldos`}).Stage()

    //gong:ident [ref_models.Foo.Waldos]
    __Link__000000_Waldos.Identifier = `ref_models.Foo.Waldos`

Problem:

The Link has disapeared

Screenshot 2023-02-11 at 10 29 51
thomaspeugeot commented 1 year ago

Problem:

Screenshot 2023-02-11 at 10 35 57

The Structname is "Foo". It should be "Bar". In fact, Structname is redondant with Identifier. One should see how to get rid of it. Idem for FieldTypeName.