Skip to content

Change json-modern target to use legacy IR#1916

Merged
JakeDawkins merged 8 commits intomasterfrom
jake/fix-json-modern
May 6, 2020
Merged

Change json-modern target to use legacy IR#1916
JakeDawkins merged 8 commits intomasterfrom
jake/fix-json-modern

Conversation

@JakeDawkins
Copy link
Copy Markdown
Contributor

@JakeDawkins JakeDawkins commented Apr 27, 2020

Hopefully resolves #1909

The legacy IR contains information that codegen in swift needs to
work properly. When building the json-modern target, I didn't
account for everything that was dropped from the original json
output :sad:. This commit changes the json-modern codegen target
so it uses the legacy IR generation with the exposeTypeNodes option
set to true (which passes it to the new ir codegen since legacy
uses that under the hood lol).

TODO:

  • Update CHANGELOG.md* with your change (include reference to issue & this PR)
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass

*Make sure changelog entries note which project(s) has been affected. See older entries for examples on what this looks like.

The legacy IR contains information that codegen in swift needs to
work properly. When building the json-modern target, I didn't
account for everything that was dropped from the original json
output :sad:. This commit changes the json-modern codegen target
so it uses the legacy IR generation with the exposeTypeNodes option
set to true (which passes it to the new ir codegen since legacy
uses that under the hood lol).
@JakeDawkins JakeDawkins merged commit 7963639 into master May 6, 2020
@JakeDawkins JakeDawkins deleted the jake/fix-json-modern branch May 6, 2020 14:27
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.

json-modern enhancement requests

1 participant