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

Code cleanup for Kotlin-based TypeScript generator (Comments from code review 21-07-29) #444

Merged
merged 9 commits into from
Aug 2, 2021

Conversation

cmnrd
Copy link
Collaborator

@cmnrd cmnrd commented Jul 29, 2021

No description provided.

@cmnrd cmnrd marked this pull request as draft July 29, 2021 16:36
@hokeun
Copy link
Member

hokeun commented Jul 30, 2021

Making the switch exhaustive without default actually didn't work due to Missing return statement error.

Please see here for more information: https://stackoverflow.com/questions/39225553/complete-switch-on-enum-in-java-produces-missing-return-statement-error

@@ -132,7 +132,9 @@ private GeneratorBase createGenerator(Target target, FileConfig fileConfig,
case Python: {
return new PythonGenerator(fileConfig, errorReporter);
}
// FIXME: make case exhaustive
Copy link
Member

Choose a reason for hiding this comment

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

Making the switch exhaustive without default actually didn't work due to Missing return statement error.

Please see here for more information: https://stackoverflow.com/questions/39225553/complete-switch-on-enum-in-java-produces-missing-return-statement-error

…except for making the switch exhaustive due toe a missing return statement compile error.
@hokeun hokeun changed the title Comments from code review 21-07-29 Code cleanup for Kotlin-based TypeScript generator (Comments from code review 21-07-29) Jul 30, 2021
@hokeun hokeun marked this pull request as ready for review July 30, 2021 05:41
@hokeun hokeun requested review from oowekyala and lhstrh July 30, 2021 05:41
@hokeun hokeun self-requested a review July 31, 2021 05:13
@lhstrh lhstrh merged commit 64f32ae into master Aug 2, 2021
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.

None yet

3 participants