Summary: In the previous diffs, we introduced AnnotatedNullability.ProvisionallyNullable. This is a symmetric change introducing the same for Nullability.t Note how ProvisionallyNullable is made `is_nonnullish`. This means that if we run nullsafe in --nullsafe-annotation-graph mode, the following should start happening: 1/ A lot of new issues will be recorded - every time a local method or non-null param is dereferenced etc. 2/ But all of those new issues will be filtered by corresponding Rules (e.g. AssignmentRule). So those issues will not manifest to user-visible errors. However, now we are capable to see and analyse those hidden issues in ClassLevelAnalysis. This is exactly what we will be doing in follow up diffs. Note that the place of ProvisionallyNullable in the hierarchy is somewhat arbitraily. It is important to make it less pri then Nullable - but when it comes to comparing with other "nonnullish" modes - we can tweak the behavior later on. Reviewed By: artempyanykh Differential Revision: D24621411 fbshipit-source-id: 3b99e5e55master
parent
a673a13b44
commit
234aae3e60
Loading…
Reference in new issue