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

Break Method Convert #816

Closed
15 tasks
Jim8y opened this issue Nov 15, 2023 · 5 comments
Closed
15 tasks

Break Method Convert #816

Jim8y opened this issue Nov 15, 2023 · 5 comments

Comments

@Jim8y
Copy link
Contributor

Jim8y commented Nov 15, 2023

As is in #813, the methodconvert file is too large to maintain, we need to break it into smaller files.

This issue will trace the breaking prs. Breaking process plan:

  • ExpressionConvert split ExpressionConvert #818
  • PatternConvert
  • StatementConvert
  • SystemConvert
  • ConstructorConvert
  • Adding comments to ExpressionConvert
  • Adding comments to PatternConvert
  • Adding comments to StatementConvert
  • Adding comments to SystemConvert
  • Adding comments to ConstructorConvert
  • Adding tests to ExpressionConvert
  • Adding tests to PatternConvert
  • Adding tests to StatementConvert
  • Adding tests to SystemConvert
  • Adding tests to ConstructorConvert
@shargon
Copy link
Member

shargon commented Nov 15, 2023

Could you add unit tests at same time that is moved?

@Jim8y
Copy link
Contributor Author

Jim8y commented Nov 15, 2023

Work all at once would only cause two situations, either very large pr again, or very surface unit tests. Unit tests for this has being missing for years, adding them should be systemically and carefully designed and should be another separate task.

Just checked again, unit tests for these are actually hard, will take a while for me to figure out how to add them.

@shargon
Copy link
Member

shargon commented Nov 16, 2023

You say that splitting this method into several files is necessary to maintain it better and improve the coverage, I think that if you split it up it has to be to add that coverage, otherwise, we don't improve anything. In addition, this way we can ensure that this code is correct.

@Jim8y
Copy link
Contributor Author

Jim8y commented Nov 16, 2023

@shargon step by step. How about we focus on fixing issues? Large file is hard to follow and maintain, how about we break it into smaller files step by step, then we work on checking C# language specification to find what is missing, then unit tests to ensure everything works fine, and then comments to make sure others can understand?

@Jim8y
Copy link
Contributor Author

Jim8y commented Nov 17, 2023

Will directly work on the original methodconvert file

@Jim8y Jim8y closed this as completed Nov 17, 2023
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

No branches or pull requests

2 participants