Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
E2ex86 is failing because of MSVC compiler issue with the ternary operator, modified the codegen source file to generate file using comma operator.
This fix is only applicable for 0.82 , cause this file will be removed in upcoming intergration.
upstream commit: facebook/react-native#54059
Please validate the code changes from npm code viewer, cause the code in react native is different from published codegen package.

Type of Change
Why
This will fix our CI pipeline, and user can build x86 RNW app without any issues
Resolves [ #15545 ]
What
Modified the windows codegen to use our own custom generator instead of the file from @react-native/codegen
Testing
Tested in playground and e2e for all different arch
Optional: Describe the tests that you ran locally to verify your changes.
Changelog
Should this change be included in the release notes: yes
Modified codegen generators so that use of ternary operator will be avoided.
Microsoft Reviewers: Open in CodeFlow