-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[rust] Better support for abstract types (unions and interfaces) #3280
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
Open
MaartenStaa
wants to merge
50
commits into
facebook:main
Choose a base branch
from
MaartenStaa:better-support-for-abstract-types
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
21c09e0
Fix remaining cases with hardcoded output, rather than using AST.
MaartenStaa 18ad028
Reduce code duplication for writing AST.
MaartenStaa c95f333
Fix some typescript tests using Flow typing instead.
MaartenStaa fac60f0
Allow opting into `import type` syntax for Typescript through config.
MaartenStaa 42fd9e2
Bring format of fragment usage, imports & exports in line with curren…
MaartenStaa c6150b0
For typescript, use the field name " $data" rather than "$data".
MaartenStaa 555ac15
Handle Windows-style newlines in GraphQL lexing (\r\n).
MaartenStaa 213bf99
Fix grouped fragment refs.
MaartenStaa d6575ba
Type optional and nullable fields the same as relay-compiler-language…
MaartenStaa 7eaef79
Rename AST::OtherEnumValue to AST::OtherTypename to reflect usage mor…
MaartenStaa 16a642a
Merge remote-tracking branch 'upstream/master' into refine-typescript…
MaartenStaa 6483808
Create AST for type definition when not using haste.
MaartenStaa f0f3ed8
Don't use relative import path in haste mode.
MaartenStaa b0c97bf
Allow opting out of future proof enums.
MaartenStaa 0e04a86
Add better support for abstract types (unions and interfaces), using …
MaartenStaa 7275cf7
Handle %other for unions, to be sure the accompanying comment is incl…
MaartenStaa 75a9a26
Some suggestions from Clippy.
MaartenStaa cc85020
Merge remote-tracking branch 'upstream/master' into better-support-fo…
MaartenStaa 20c443a
Update test fixtures including combinations of different values of fu…
MaartenStaa 69e2811
s/babel/ast
MaartenStaa 8d19116
Fix incorrect merge/rebase: don't use intermediate String for writing…
MaartenStaa 455d3de
Wrap nullable intersections in parentheses as well as unions.
MaartenStaa c28af7b
Prevent intersections of exact objects, which would not make sense.
MaartenStaa 573d12d
Either list possible type names or "%other", but not a combination of…
MaartenStaa a125a39
Prevent combinational test fixture output.
MaartenStaa d769f2a
Add an optional JSON header to typegen fixtures for customizable type…
MaartenStaa ba2d375
Remove outdated #[allow] attribute.
MaartenStaa 7317056
Merge remote-tracking branch 'upstream/master' into better-support-fo…
MaartenStaa 09ca96b
Revert "remove unused intersection variant"
MaartenStaa 026ab4c
Merge remote-tracking branch 'upstream/master' into better-support-fo…
5ebfe4d
Update usage after merge of master.
2070f23
Merge remote-tracking branch 'upstream/main' into better-support-for-…
853ac17
Fix unused enum variant: FragmentReferenceType.
3380f23
Merge remote-tracking branch 'upstream/main' into better-support-for-…
191b4ab
Fix typegen config not being set correctly in typegen tests.
18ad43e
Fix properties being duplicated in typegen.
0f9360b
Allow excluding types from future proofness.
a3cb206
Add Flow version of added test.
9386f81
Merge remote-tracking branch 'upstream/main' into better-support-for-…
af6e762
Fix mistake in merge.
90e6d24
Remove commented out code.
5185095
Combination of four diffs
rbalicki2 e4e4c92
Sort enum members.
c671d16
Sort fragment refs.
6f4e49f
Only wrap unions & intersections if needed.
dbbfc3f
Impl Ord for AST in typegen, sort all unions and intersections.
ea9ee4e
Merge remote-tracking branch 'upstream/main' into typegen-sorting-and…
e278990
Fix impl Writer for TypeScript: supports_exact_objects is false.
b3f8072
Remove AST::Intersection from typegen, as it will not be needed.
bb96fa9
Merge branch 'typegen-sorting-and-wrapping' into better-support-for-a…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.