[Generator] Move Type-related methods into Type Manager by dustin-wojciechowski · Pull Request #19380 · dotnet/macios (original) (raw)

This PR moves the following methods from the Generator class to the TypeManager class:

IsNativeType
IsWrappedType
IsArray
IsDictionaryContainerType
GetParentTypeWithSameNameProperty

Some of these methods call AttributeManager.HasAttribute, which has the unfortunate consequence of the two Manager classes calling things from each other. In another PR, I will have a TypeCache class that stores type information (that long list of properties in the TypeManager) and pass that into the two managers to overcome this dependency concern.