dex3r / GPT-Codemaster

Automatic programming by creating Pull Requests from Issues using LLMs
GNU General Public License v3.0
55 stars 5 forks source link

[GPT-Codemaster] Fixes issue #3: Refactor ClassExtractorCSharp #4

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

This Pull Request was created automatically by GPT-Codemaster Resolves #3

dex3r commented 1 year ago

/reviewpad summarize

reviewpad[bot] commented 1 year ago

AI-Generated Pull Request Summary: This pull request contains a patch that refactors the ClassExtractorCSharp class in the AiProgrammer.CodeProcessing namespace. The changes improve code readability and maintainability by breaking down the GetClassContentWithSelectedMethodBodies method into smaller, more manageable methods. In particular, the new methods include IsNamespaceDeclaration, HandleNamespaceDeclaration, IsClassDeclaration, HandleClassDeclaration, HandleNextLineNamespace, HandleNextLineClass, and ProcessLine.