private static ExceptionInfo ScanPlatformNotSupported(ITypeDefinitionMember item) { if (item is IMethodDefinition m) { return(ScanPlatformNotSupported(m)); } else if (item is IFieldDefinition || item is ITypeDefinition) { // Ignore return(ExceptionInfo.DoesNotThrow); } else { throw new NotImplementedException($"Unexpected type member: {item.FullName()} ({item.GetApiKind()})"); } }
private bool IsDeprecated(ITypeDefinitionMember item) { if (item is IMethodDefinition m) { return(CheckMethodForDeprecation(m)); } else if (item is IFieldDefinition || item is ITypeDefinition) { // Ignore return(false); } else { throw new NotImplementedException($"Unexpected type member: {item.FullName()} ({item.GetApiKind()})"); } }