We are adding collection return result types into the typesToKeep list:
|
ScmCodeModelGenerator.Instance.AddTypeToKeep(scmMethod.CollectionDefinition); |
Only "root types" should be able to add into the typesToKeep list.
The collection return result types are not really clients therefore they should not be added in the first place.
If a related operation is generated, they will be kept but if a related operation is not generated because of various reasons, those types should not be there.