Skip to content

Remove two flags from TypeFlags #28386

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

Merged
merged 5 commits into from
Nov 7, 2018
Merged

Remove two flags from TypeFlags #28386

merged 5 commits into from
Nov 7, 2018

Conversation

ahejlsberg
Copy link
Member

This PR removes two TypeFlags to bring us back to 30 bits. TypeFlags.UnionOfPrimitiveTypes becomes a discrete property on UnionType, and TypeFlags.FreshLiteral becomes ObjectFlags.FreshLiteral.

Fixes #28354.

@ahejlsberg ahejlsberg merged commit 8e0c436 into master Nov 7, 2018
@ahejlsberg ahejlsberg deleted the removeTwoTypeFlags branch November 7, 2018 00:41
@@ -2254,6 +2254,7 @@ declare namespace ts {
JsxAttributes = 4096,
MarkerType = 8192,
JSLiteral = 16384,
FreshLiteral = 32768,
Copy link
Contributor

Choose a reason for hiding this comment

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

So this is now intended for public use or did you just forget to make it internal?

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.

3 participants