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

GenType: removed support for @genType.as in type definitions, which has become unnecessary. #6099

Merged
merged 20 commits into from Mar 28, 2023

Conversation

cristianoc
Copy link
Collaborator

No description provided.

@cristianoc cristianoc changed the title GenType: removed support for @genType.as which has become unnecessary. GenType: removed support for @genType.as in type definitions, which has become unnecessary. Mar 26, 2023
Makefile Show resolved Hide resolved
@@ -43,6 +43,7 @@ test-all: test test-gentype

reanalyze:
reanalyze.exe -set-exit-code -all-cmt _build/default/res_syntax -suppress res_syntax/testrunner
reanalyze.exe -set-exit-code -all-cmt _build/default/jscomp -suppress res_syntax/testrunner -exclude-paths jscomp/super_errors,jscomp/outcome_printer,jscomp/ounit_tests,jscomp/ml,jscomp/js_parser,jscomp/frontend,jscomp/ext,jscomp/depends,jscomp/core,jscomp/common,jscomp/cmij,jscomp/bsb_helper,jscomp/bsb
Copy link
Member

Choose a reason for hiding this comment

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

Is the -suppress res_syntax/testrunner still needed here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't want to be obliged to put annotations for e.g. raising possible exceptions, in the test runner.

Base automatically changed from variants_as to master March 27, 2023 08:00
Compile is_tag to `!== "object"` instead of `=== "string"`.
Also the comment is not emitted anymore, since there's always a tag.
Not special casing means that the representation is uniform, and does not change when the type is extended. This is important with zero cost ffi, where the runtime representation is exposed to the user, to reduce possible surprises.
@cristianoc cristianoc merged commit b47de85 into master Mar 28, 2023
6 of 7 checks passed
@cristianoc cristianoc deleted the gentype_remove_rename branch March 28, 2023 08:01
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.

None yet

2 participants