dotnet / dotnet/roslyn

Add ErrorCode to RuntimeRudeEdit

Open
#74,666 3 comments 0 reactions 1 assignee Claimed by @tmat View on GitHub
api-approved Concept-API Feature Request Interactive-Debugging
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

## Background and Motivation

See https://github.com/dotnet/roslyn/pull/74625

## Proposed API

```diff
namespace Microsoft.CodeAnalysis.Emit;
{
public readonly struct RuntimeRudeEdit
{
+ public int ErrorCode { get; }

+ public RuntimeRudeEdit(string message, int errorCode)

+ [Obsolete("Specify errorCode")]
public RuntimeRudeEdit(string message);
}
```

## Usage Examples

Used by Roslyn EnC analyzer in the IDE to specify error code for runtime rude edit.

## Alternative Designs

## Risks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.