Skip to content
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

[src] Import xml docs for members, part 1. #22210

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rolfbjarne
Copy link
Member

@rolfbjarne rolfbjarne commented Feb 18, 2025

This has to be done in parts, because the Roslyn importer runs out of memory otherwise.

Which also means I have no idea how many parts there will end up being.

Partial fix for #17399.

rolfbjarne and others added 2 commits February 18, 2025 18:56
This has to be done in parts, because the Roslyn importer runs out of memory otherwise.

Which also means I have no idea how many parts there will end up being.
Copy link
Contributor

⚠️ Your code has been reformatted. ⚠️

If this is not desired, add the actions-disable-autoformat label, and revert the reformatting commit.

If files unrelated to your change were modified, try reverting the reformatting commit + merging with the target branch (and push those changes).

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne rolfbjarne marked this pull request as ready for review February 19, 2025 07:48
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

1 similar comment
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [CI Build] Windows Integration Tests failed ❌

❌ Failed ❌

Pipeline on Agent
Hash: b9b1099e3b034f78ccc9612da4594cc66c3808e6 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #38db4b3] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 38db4b301a21a244ccb97507d88fad2718b4d048 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #38db4b3] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 38db4b301a21a244ccb97507d88fad2718b4d048 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #38db4b3] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 38db4b301a21a244ccb97507d88fad2718b4d048 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build #38db4b3] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: 38db4b301a21a244ccb97507d88fad2718b4d048 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build #38db4b3] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: 38db4b301a21a244ccb97507d88fad2718b4d048 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build #38db4b3] Tests on macOS arm64 - Mac Sequoia (15) passed 💻

All tests on macOS arm64 - Mac Sequoia (15) passed.

Pipeline on Agent
Hash: 38db4b301a21a244ccb97507d88fad2718b4d048 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build #38db4b3] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: 38db4b301a21a244ccb97507d88fad2718b4d048 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

.NET ( No breaking changes )

❗ API diff vs stable (Breaking changes)

.NET ( ❗ Breaking changes ❗ )

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 38db4b301a21a244ccb97507d88fad2718b4d048 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build #38db4b3] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 112 tests passed 🎉

Tests counts

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 8 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 8 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: 38db4b301a21a244ccb97507d88fad2718b4d048 [PR build]

Comment on lines +553 to +554
/// <value>
/// </value>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any value in having this <value>? :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ported from an existing repository with the documentation, and this is how it was there.

Going through everything to make sure it makes sense is out of scope for this work, so I'm leaving everything as-is.

@@ -226,6 +277,8 @@ protected virtual void OnPacketDecoded (int numberOfBytes, IntPtr inputData, Aud
p (this, new PacketReceivedEventArgs (numberOfBytes, inputData, packetDescriptions));
}

/// <summary>This event is raised when a property has been found on the decoded data.</summary>
/// <remarks>The most interesting property that is raised is AudioFileStreamProperty.ReadyToProducePackets; When this property is parsed there is enough information to create the output queue. The MagicCookie and the StreamBasicDescription contain the information necessary to create a working instance of the OutputAudioQueue.</remarks>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the indentation correct here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's off, but I left it as-is for a few reasons:

  • Turns out it's not entirely trivial to reformat xml and get a result I'm happy with.
  • I'm using a custom written tool to port the documentation (i.e. create this PR), and it's already more complex than I ever wanted. Pretty printing xml too is out of scope.
  • This can be fixed later on in an automated fashion (by creating a Roslyn code fixer) if we decide it's important enough.
  • It doesn't affect the resulting documentation.

Copy link

@MartyIX MartyIX Feb 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just had in mind a regex converting

		///         <remarks>

to

		/// <remarks>

But it's just an idea.

I'm happy to see the comments in the codebase (in any form).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't trust regexes when there are multi-line CDATA section in here with significant whitespace (as I found out because I tried something similar).

@rolfbjarne rolfbjarne requested a review from Copilot February 21, 2025 15:44

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 161 out of 161 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/AudioUnit/AUEnums.cs:1253

  • [nitpick] The enum value 'AUiPodTimeOther' mixes casing that may be confusing. Consider renaming it to follow a consistent naming convention (for example, 'IPodTimeOther' or similar) to improve clarity.
AUiPodTimeOther = 0x6970746F, // 'ipto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants