-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Label support in new ILGenerator #93565
Conversation
Co-authored-by: Aaron Robinson <[email protected]>
…t/ILGeneratorImpl.cs Co-authored-by: Aaron Robinson <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
Tagging subscribers to this area: @dotnet/area-system-reflection-emit Issue DetailsAdd implementation for The PR depend on #93244, will be cleaned up after #93244 merged. Also blocked by #93497. Contributes to #92975
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
src/libraries/System.Reflection.Emit.ILGeneration/tests/Label/LabelId.cs
Outdated
Show resolved
Hide resolved
The failure is known |
* Emit Label/Branching IL * Throw when OpCode is not Switch Co-authored-by: Jan Kotas <[email protected]> * Add protected factory to ILGenerator instead of making the Label constructor public * Update test to assert label.Id instead of label.GetHashCode --------- Co-authored-by: Jan Kotas <[email protected]>
Add implementation for
DefineLabel()
,(OpCode opcode, Label label)
,Emit(OpCode opcode, Label[] labels)
,MarkLabel(Label loc)
and corresponding testsContributes to #92975 and #93497