Skip to content

Conversation

@CyrusNajmabadi
Copy link
Contributor

The typewriter code had a lot of specialized checks added to it. This was to keep the baselines non-noisy as we made changes to the typechecker. However, this also meant that its code was getting more and more complex for no appreciable long term gain.

I'm simplifying the typewriter code to always emit types for expressions/identifiers now, and we can use this as the baseline going forward as we make any compiler changes.

Also, we now print the results of getSymbolAtNode as well. Ensuring that if htis information changes, we'll know about it.

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 don't want this sort of code in the typewriter. It serves no purpose but to hide information.

Copy link
Member

Choose a reason for hiding this comment

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

This looks good overall. Can we at least skip logging of primitive literals to keep the noise down?

@CyrusNajmabadi
Copy link
Contributor Author

Logging of primitives is actually important. If, say, we introduce a bug where we screw up primitive typing (say in pull scenarios), we want to know about that for sure.

CyrusNajmabadi added a commit that referenced this pull request Apr 13, 2015
@CyrusNajmabadi CyrusNajmabadi merged commit 6637f49 into master Apr 13, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the typeWriter branch April 13, 2015 23:20
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants