Fix retrieving type for Enumeration Case -> Global Variable mappings

Description

In https://swiftify.atlassian.net/browse/SWC-716, we could not retrieve the return type name for such mappings, so skipped them for now:

Need this addressed and fixed.

Interestingly, other very similar mappings like below are generated correctly.

For reference, see the table in .

Environment

None

Activity

Show:
Vadim Vorotilin
July 14, 2020, 8:23 AM

I don’t see either kDNSServiceClass nor SparseSubfactorP in EnumMappings.def. Should they be present there? I’ve gone through the whole database looking for these entities and didn’t find anything like that. Could you provide a bit more examples?

Alex Petuschak
July 14, 2020, 2:10 PM
Edited

See these entries in CustomEnumMappings.m.

These should be optimally automatically generated.

This relates to this task, and .

Here is what I see in Apple Help:

https://take.ms/x0oyW

https://take.ms/Fw2Ok

Vadim Vorotilin
July 15, 2020, 4:56 PM

After an investigation, I’ve found out that unlike kDNSServiceClass_IN, SparseSubfactorP is represented in the database and has a parent object of type SparseSubfactor_t. This may be the reason why SparseSubfactorP got generated correctly. But DataFacade doesn’t list kDNSServiceClass_IN. So, either it’s not in the database, or DataFacade doesn’t work correctly.

I don’t see how this can be quickly fixed.

Alex Petuschak
July 16, 2020, 8:40 AM

Thanks. Postponing.

Assignee

Vadim Vorotilin

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

Low
Configure