heremaps / gluecodium

Cross-language bindings generator for C++, Java, Swift, and Dart
Apache License 2.0
202 stars 27 forks source link

Internal tag of parent not applied for nested struct (Flutter) #1602

Open Hsilgos opened 2 months ago

Hsilgos commented 2 months ago

For Flutter, the nested struct of an internal struct is exposed.

package sdk.core

@Internal
struct OuterStruct {
    struct InnerStruct {
        a: Int = 1
    }

    inner: InnerStruct = {}
}

Leads to

export 'src/sdk/core/outer_struct.dart' show OuterStruct_InnerStruct;

Expected: inter struct not exposed

Current workaround: Add @Internal tag to nested struct.

hliberacki commented 2 months ago

Hi @Hsilgos,

As we discussed in #1601, I will try implementing it.

pwrobeldev commented 4 days ago

The fix has been implemented in: https://github.com/heremaps/gluecodium/pull/1606