[TS/JS] Fix TS code gen after #6420 #6445
Closed
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.
This PR fixes a code gen problem introduced in #6420. The generated code for "endXXStruct()" doesn't compile. I assume that there was a regexp used to replace
.requiredby.IsRequired. It was also applied incorrectly tobuilder.requiredField.To test it I did:
It seem the
makerun did modifications to some generated.hfiles that are totally unrelated to my fix. I suspect that these were not correctly regenerated by a previous PR. I included those changes as a separate commit. Tell me if you want to drop this commit.Also when I do
cd test, sh generate_code.shthe changes on the.hare reverted and a whole lot of new.js|.ts|.d.tsfiles are created at the root of thetestsdirectory and not in thetests/tsdirectory (which already contains the same files). Is that supposed to happen ? Please tell me what to do.