-
Notifications
You must be signed in to change notification settings - Fork 516
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
[RGent] Add name and namespace to the codechanges struct. #21857
[RGent] Add name and namespace to the codechanges struct. #21857
Conversation
We add the name and a collection with the namespaces that contains the type. This way we do not need to query the symbol when generating code and we can simply use the data in the structure.
04b78fa
to
baaf851
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 9 changed files in this pull request and generated 3 comments.
Files not reviewed (4)
- src/rgen/Microsoft.Macios.Generator/ListComparer.cs: Evaluated as low risk
- tests/rgen/Microsoft.Macios.Generator.Tests/DataModel/CodeChangesEqualityComparerTests.cs: Evaluated as low risk
- tests/rgen/Microsoft.Macios.Generator.Tests/DataModel/ClassCodeChangesTests.cs: Evaluated as low risk
- src/rgen/Microsoft.Macios.Generator/DataModel/CodeChangesEqualityComparer.cs: Evaluated as low risk
Comments suppressed due to low confidence (2)
src/rgen/Microsoft.Macios.Generator/DataModel/CodeChanges.cs:281
- Add a check to ensure that the Namespace property is not empty before appending it to the StringBuilder.
sb.Append ($"BindingType: {BindingType}, Name: {Name}, Namespace: [");
src/rgen/Microsoft.Macios.Generator/DataModel/CodeChanges.cs:180
- [nitpick] Consider renaming the @namespace parameter to namespaceArray to make the code more readable and less confusing.
internal CodeChanges (BindingType bindingType, string name, ImmutableArray<string> @namespace, string fullyQualifiedSymbol)
tests/rgen/Microsoft.Macios.Generator.Tests/Extensions/SemanticModelExtensionsTests.cs
Outdated
Show resolved
Hide resolved
tests/rgen/Microsoft.Macios.Generator.Tests/Extensions/SemanticModelExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/rgen/Microsoft.Macios.Generator/Extensions/SemanticModelExtensions.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…tensions.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
/azp run xamarin-macios-pr |
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run xamarin-macios-pr |
Azure Pipelines successfully started running 1 pipeline(s). |
✅ [CI Build] Build passed (Build packages) ✅Pipeline on Agent |
✅ [CI Build] Build passed (Build macOS tests) ✅Pipeline on Agent |
💻 [CI Build] Tests on macOS M1 - Mac Monterey (12) passed 💻✅ All tests on macOS M1 - Mac Monterey (12) passed. Pipeline on Agent |
💻 [CI Build] Windows Integration Tests passed 💻✅ All Windows Integration Tests passed. Pipeline on Agent |
💻 [CI Build] Tests on macOS M1 - Mac Ventura (13) passed 💻✅ All tests on macOS M1 - Mac Ventura (13) passed. Pipeline on Agent |
💻 [CI Build] Tests on macOS arm64 - Mac Sequoia (15) passed 💻✅ All tests on macOS arm64 - Mac Sequoia (15) passed. Pipeline on Agent |
💻 [CI Build] Tests on macOS X64 - Mac Sonoma (14) passed 💻✅ All tests on macOS X64 - Mac Sonoma (14) passed. Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🔥 [CI Build] Test results 🔥Test results❌ Tests failed on VSTS: test results 0 tests crashed, 1 tests failed, 106 tests passed. Failures❌ dotnettests tests (MacCatalyst) [attempt 2]
Html Report (VSDrops) Download Successes✅ cecil: All 1 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
The maccatalyst test failures are unrelated to the changes of PR PR: https://github.com/xamarin/maccore/issues/2965 |
We add the name and a collection with the namespaces that contains the type. This way we do not need to query the symbol when generating code and we can simply use the data in the structure.