Skip to content

Conversation

@Triogap
Copy link
Owner

@Triogap Triogap commented May 30, 2025

No description provided.

Copilot AI review requested due to automatic review settings May 30, 2025 18:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a channel-based approach to load class definitions concurrently and generate code, replacing the previous synchronous flow.

  • Utilize System.Threading.Channels to stream ClassDefinition data from the DefinitionLoader to the CodeGenerator concurrently.
  • Refactor methods in DefinitionLoader and CodeGenerator to use async patterns and channel operations.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
Generator/Program.cs Implements channel creation and concurrent execution with Task.WhenAll.
Generator/DefinitionLoader.cs Refactors loading logic to use a ChannelWriter and converts parsing methods to async.
Generator/CodeGenerator.cs Updates constructor and GenerateCode method to consume class definitions via a ChannelReader.

@Triogap Triogap force-pushed the task/use-channel-in-generator branch from 6c97e62 to 456bd96 Compare May 30, 2025 18:13
@Triogap Triogap marked this pull request as draft May 30, 2025 18:31
@Triogap Triogap marked this pull request as ready for review May 30, 2025 18:31
@Triogap Triogap force-pushed the task/use-channel-in-generator branch from d63e47c to 35c2008 Compare May 30, 2025 18:37
@Triogap Triogap merged commit eb48dff into master May 30, 2025
2 checks passed
@Triogap Triogap deleted the task/use-channel-in-generator branch May 30, 2025 18:45
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.

2 participants