forked from typetools/checker-framework-inference
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add InferenceQualifierDefault. (#134)
* Add InferenceQualifierDefault. * Unify the place of creating equivalent VarAnno given a real qualifier. Clean up a bit the related code in VariableAnnotator and ConstantToVariableAnnotator. * Update javadoc for ConstantToVariableAnnotator. * Make createConstant() static. Keep a reference of constantToVariableAnnotator in InferenceATF, instead of creating a new one each time the client of InferenceATF needs a c2vAnnotator. * Add javadoc for InferenceQualifierDefaults. * Add javadoc for explianing the motivation of replacing real qualifier with equivalent VarAnnot in applyDefault() method, instead of mutating the annotation in Default. * Remove createConstantSlot method in Constant2VariableAnnoatator. * Migrate createEquivalentVarAnno() method into SlotManager. * Don't store C2VAnnotator reference in VariableAnnotator, as it introduce a very implicit construction constraint on the order of object initializations in InferenceATF constructor. This is tricky, so let InferenceATF be the source of providing C2VAnnotator.
- Loading branch information
1 parent
292f8fd
commit d307fc6
Showing
8 changed files
with
154 additions
and
81 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
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.