-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various fixes to the fine-grained incremental mode (#4438)
1) Fixes to refreshing class definitions Bundling these in a single commit since a single test case reproduces both of these issues and initially it wasn't clear if they are a single issue. 1. Fix AST merge of ClassDefs. 2. If there is a previous error in a class body, refresh module top level instead of the whole class. 3. Generally fix the previous target handling in case of nested definitions (full test coverage missing). 2) Fix stripping of type alias in class body 3) Bind class type variables when refreshing a method 4) Fix stripping of super expressions Not sure if this will make a difference anywhere, but this seems like the right thing to do. 5) Reset subtype caches when stripping the AST 6) Merge type variable definitions 7) Fix refresh of a named tuple subclass 8) Fix refresh of NewType expressions 9) Fixes to stale TypeInfos escaping from AST merge I didn't add tests since it's unclear if these actually caused any visible issues. 10) Fix up additional references in AST merge Not sure if these changes fix user-visible issues, but this at least makes things cleaner. 11) Fix up another TypeInfo reference in AST merge Not sure if this fixes an user-visible issue, but at least this makes things more consistent. 12) Fix AST diff of functional enums 13) Fix refresh of functional Enum definition
- Loading branch information
Showing
10 changed files
with
305 additions
and
59 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
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
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
Oops, something went wrong.