Update analyzer to use FeatureGuardAttribute#99340
Conversation
|
Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas Issue DetailsThis replaces FeatureCheckAttribute with FeatureGuardAttribute in the form that was approved in #96859 (comment). Removes FeatureDependsOnAttribute and replaces it with FeatureGuardAttribute on the property. Since it is not allowed on types, feature requirements must be "bubbled up" to the guard property, so the tests are updated to do so.
|
|
What's the plan for generalizing the analyzer? Presumably with these new attributes being added to the core libraries, we'll be shipping an analyzer for them that's not tied to illink? |
|
In the API review we decided that there aren't enough use cases for a generalized analyzer yet (that's why |
This replaces FeatureCheckAttribute with FeatureGuardAttribute in the form that was approved in #96859 (comment).
Removes FeatureDependsOnAttribute and replaces it with FeatureGuardAttribute on the property. Since it is not allowed on types, feature requirements must be "bubbled up" to the guard property, so the tests are updated to do so.