Skip to content

[WIP] if/switch expressions #62178

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

Closed
wants to merge 8 commits into from

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Nov 18, 2022

@hamishknight hamishknight force-pushed the express-yourself branch 8 times, most recently from bec3769 to 338c133 Compare November 22, 2022 18:37
@hamishknight hamishknight force-pushed the express-yourself branch 4 times, most recently from 0a38b86 to ace8db7 Compare November 30, 2022 11:06
@hamishknight hamishknight force-pushed the express-yourself branch 4 times, most recently from 42e0c61 to a5ef8f8 Compare December 3, 2022 13:30
@hamishknight hamishknight force-pushed the express-yourself branch 4 times, most recently from 17f80b1 to 6c82031 Compare December 8, 2022 18:34
@hamishknight hamishknight force-pushed the express-yourself branch 7 times, most recently from 7b4f120 to 69c548b Compare December 16, 2022 11:52
@hamishknight hamishknight force-pushed the express-yourself branch 2 times, most recently from 5a5af00 to 1813dbd Compare January 12, 2023 21:40
Missed this when I originally added the
`--lit-jobs` build-script option, propagate the value
provided to `LLVM_LIT_ARGS` in addition to
`SWIFT_LIT_ARGS`.
Split out brace element handling for a couple of
walkers into a new function. The diff for this is
best viewed without whitespace changes. This
should be NFC.
And change `getBody` to `getStmt` to reflect the
fact that we always rewrite a statement.
Factor out some type-checking logic for ReturnStmt,
including the conversion to FailStmt, into a
request. We can then invoke this request from
both the regular type-checking path, as well as
during a pre-check of an expression.
@hamishknight
Copy link
Contributor Author

@hamishknight
Copy link
Contributor Author

@hamishknight
Copy link
Contributor Author

@hamishknight
Copy link
Contributor Author

Continuing on #63022

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.

1 participant