Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be lazy about building union types in "addPropertyToType" with the as…
…sumption that we don't add a lot of properties unnecessarily. This reduces type scope creation time by 75% in example builds. Because this change avoids building a union for loose missing property checks, it improves disambiguation of various function types that are collapsed by the union builder resulting in stricter missing property warnings. These warnings are a subset of the warnings produced by "strictMissingProperties" so effectively promote these from "strictMissingProperties" to "missingProperties". ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=229772717
- Loading branch information
1 parent
e46d074
commit 970f4cd
Showing
2 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 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