dotnet / dotnet/macios

Generator should warn if unused interfaces are part of bindings

Open
#7,107 0 comments 0 reactions 0 assignees View on GitHub
enhancement generator iOS macOS
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 17h
Merged PRs (30d)
108

Description

An interface without `[Protocol]` or `[BaseType]` will be ignored when generating binding code.

### Steps to Reproduce

1. Add the following in `appkit.cs`

```csharp
interface NSAccessibilityOutline2 : NSAccessibilityTable {}
```

2. Build

### Expected Behavior

`NSAccessibilityOutline2` is not part of the API but there were no warnings.

### Actual Behavior

No warnings. Incorrect bindings might result.

### Environment

master

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.