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

[WIP] Transform to convert @requried to Client Controlled Nullability #3993

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

captbaritone
Copy link
Contributor

Sketch (code is quite rough) of a transform to attempt to convert @required directives to the equivalent Client Controlled Nullability semantics.

Some @required patterns cannot be expressed. For these we create an error.

Much more work to do here before it can be useful (or even correct), but I got to a good stopping place and wanted to with some folks.

GITHUB_ROOT=$(dirname "$SCRIPT_DIR")

cd "$GITHUB_ROOT"/compiler || exit
cargo run --bin fixture_tests_bin --quiet --release -- \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to add a version of this to open source.

@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants