Skip to content

[ApiDiff] Add static factory method to generate AssemblySymbolLoader#46380

Merged
carlossanlop merged 4 commits intodotnet:mainfrom
carlossanlop:AssemblySymbolLoader
Jan 31, 2025
Merged

[ApiDiff] Add static factory method to generate AssemblySymbolLoader#46380
carlossanlop merged 4 commits intodotnet:mainfrom
carlossanlop:AssemblySymbolLoader

Conversation

@carlossanlop
Copy link
Copy Markdown
Contributor

@carlossanlop carlossanlop commented Jan 29, 2025

Follow up of #46255

This PR is part of the work needed to create an ApiDiff tool that reuses some of the code from Microsoft.DotNet.GenAPI. The idea is to make the larger PR smaller and make it easier to review: #45389

The proposed changes in this PR include:

  • Adding a static factory method to AssemblySymbolLoader to create instances.
  • Extracting the document generation logic from CSharpFileBuilder and into its own class. That specific code will be used in ApiDiff. CSharpFileBuilder behavior should remain the same.
  • Refactoring GenAPIApp and GenApiTask to generate a loader using the static method.
  • Modify the tests accordingly.

Extract the document generation logic into its own class.
Refactor GenAPIApp and GenApiTask to generate a loader using the static method.
Comment thread src/Compatibility/GenAPI/Microsoft.DotNet.GenAPI.Task/GenAPITask.cs
Comment thread src/Compatibility/GenAPI/Microsoft.DotNet.GenAPI.Task/GenAPITask.cs Outdated
Comment thread src/Compatibility/GenAPI/Microsoft.DotNet.GenAPI/GenAPIApp.cs
@carlossanlop carlossanlop removed the untriaged Request triage from a team member label Jan 30, 2025
Copy link
Copy Markdown

@michaelgsharp michaelgsharp left a comment

Choose a reason for hiding this comment

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

LGTM.

@carlossanlop carlossanlop enabled auto-merge (squash) January 31, 2025 01:13
@carlossanlop carlossanlop merged commit a945fa6 into dotnet:main Jan 31, 2025
@carlossanlop carlossanlop deleted the AssemblySymbolLoader branch January 31, 2025 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants