arcade: GenFacades fails to generate not supported assembly for reference source that contains throw null expression body
- This issue is blocking
- This issue is causing unreasonable pain
GenFacades not supported assembly fails for reference source files that use the => throw null; syntax instead of a full method body.
C:\git\runtime5\artifacts\obj\System.Net.Quic\net6.0-Browser-Debug\System.Net.Quic.notsupported.cs(17,9): error CS8057: Block bodies and expression bodies cannot both be provided. [C:\git\runtime5\src\libraries\System.Net.Quic\src\System.Net.Quic.csproj]
public QuicListener(IPEndPoint listenEndPoint, System.Net.Security.SslServerAuthenticationOptions sslServerAuthenticationOptions) { throw new System.PlatformNotSupportedException(System.SR.SystemNetQuic_PlatformNotSupported); }
=> throw null;
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- Add a PNSE configuration for System.Net.Quic Systme.Net.Quic is part of the shared framework but dosn't have a configuration that applies to Browser. Adding a non-rid configuration so that this appli... — committed to ViktorHofer/runtime by ViktorHofer 4 years ago
- Add a PNSE configuration for System.Net.Quic (#44223) Systme.Net.Quic is part of the shared framework but dosn't have a configuration that applies to Browser. Adding a non-rid configuration so that... — committed to dotnet/runtime by ViktorHofer 4 years ago
- Sync code-gen branch with runtime-master (#332) * Fix inconsistency of the 'CanRead' property after disposing an HTTP content stream (#43766) * Fix inconsistency of the 'CanRead' property after di... — committed to dotnet/runtimelab by layomia 4 years ago
- Add a PNSE configuration for System.Net.Quic (#44223) Systme.Net.Quic is part of the shared framework but dosn't have a configuration that applies to Browser. Adding a non-rid configuration so that... — committed to Rattenkrieg/runtime by ViktorHofer 4 years ago
@safern is currently investigating. We have discussed with folks from Roslyn in the past and no tool existed but the closest one was the functionality that backed go-to definition. We indeed want Roslyn APIs to back as much of the GenAPI stack as possible so we get new language features automatically. We also desire to publicly ship the tool and there is likely a better place for it to live than arcade or runtime.
We can use https://apisof.net/catalog/Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax.ExpressionBody to differentiate between the 2 cases and fix the error.