eclipse-cyclonedds / cyclonedds-insight

Other
10 stars 6 forks source link

fix nested struct idl import #14

Closed trittsv closed 5 months ago

trittsv commented 5 months ago

This PR fixes the import of structs nested in more than one module. Previously only the top level structs were displayed.

With this PR now all structs are displayed, for example:

Screenshot 2024-06-26 at 17 42 29
module vehicles 
{
    struct Vehicle 
    {
        string name;
        int64 x;
        int64 y;
    };

    module Engine
    {
        struct RealEngine
        {
            string name;
        };
    };

    module Wheel
    {
        struct GreatWheel
        {
            string name;
        };

            module CarPark
           {

                struct Car
                {
                    string name;
                };

                module vehicles2
                {
                    module vehicles3
                    {
                        struct Ultimate
                        {
                            string name;
                        };
                    };
               };
          };
     };
};

@eboasson would be cool when you can look into it :)