Open sbomer opened 4 months ago
Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas See info in area-owners.md if you want to be subscribed.
This is blocked on https://github.com/dotnet/roslyn/issues/14061. I can't find a way to register a symbol action in the analyzer that gets called for top-level methods. I tried adding a RegisterSymbolAction
for SymbolKind.Parameter
, but that faces the same problem as mentioned in https://github.com/dotnet/roslyn/issues/14061#issuecomment-249438327.
DynamicallyAccessedMembers annotations are not supported for arbitrary types. The ILLink analyzer normally produces IL2098 warnings when the annotations are applied to unsupported types, but this isn't working for top-level methods: