-
Notifications
You must be signed in to change notification settings - Fork 511
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
[Rgen] Implement SmartEnums code emittion. #21465
base: main
Are you sure you want to change the base?
Conversation
Add the following: 1. Code needed to register the changes in the compiler pipeline. 2. Code that will add the using statements for the generated code that match those in the binding file. 3. Code that allows to write tabbed code in a way we do not have to keep track of indentation. We have the first unit test that verifies code generation by checking the using statements.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
This comment has been minimized.
This comment has been minimized.
…acios into dev/mandel/rgen-wiring
0f10657
to
0a66ce0
Compare
…nerator.Sample.csproj
|
🔥 [CI Build] Test results 🔥Test results❌ Tests failed on VSTS: test results 0 tests crashed, 2 tests failed, 99 tests passed. Failures❌ cecil tests
Html Report (VSDrops) Download ❌ dotnettests tests (MacCatalyst)
Html Report (VSDrops) Download Successes✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
d836caf
to
fa0c0ee
Compare
2284712
to
afb8217
Compare
|
4a0295c
to
5acc05a
Compare
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5d5d67e
to
d0c8564
Compare
|
474b054
to
bb16529
Compare
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This change brings the following: 1. We now generate the Extension classes for the SmartEnums. 2. Bumped the roslyn version, the one we were using had a bug when using dir separators in the name hint for a generated file. 3. Generated code is added under the expected directory for bgen to allow the API diff.
4a07007
to
f91473f
Compare
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🔥 [CI Build] Build failed 🔥Build failed for the job 'Build packages' Pipeline on Agent |
This change brings the following:
dir separators in the name hint for a generated file.
allow the API diff.
PS: Create as a draft because it depends on a previous PR but I want to see that the generated diff is correct.