RegisterOperationBlockStartAction inconsistent callback for properties #46132
Unanswered
Evangelink
asked this question in
General
Replies: 2 comments
-
Yes. You can get the containing type, and see if any IFieldSymbols have this property as their associatedsymbol. @jnm2 is working on an API change that makes that simpler i believe. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have used a different technique: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For one analyzer, we have registered a symbol start action on
NamedType
on which we register an operation block start action. Thanks to some false-positive being reported, I have noticed that a reaodnly auto property doesn't get any callback while the same readonly auto property with an attribute on the getter now gets a callback.I don't know if it's a bug or something intended but that seems weird to me to have such a different behavior. I would expect to have a callback on both cases.
Related side question, from the symbol or operation context, is it possible to know this is an auto-property?
Beta Was this translation helpful? Give feedback.
All reactions