Non-local diagnostic?
bjornhellander opened this issue · 1 comments
I am having trouble with tests for an analyzer + code fix. Most tests pass, but one fail like this:
Assert.IsFalse failed. Code fix is attempting to provide a fix for a non-local analyzer diagnostic
The analyzer registers a symbol action on methods and potentially reports diagnostics on its parameters.
In the failing test, the method is an indexer with a getter. Seems to work fine on ordinary methods.
What does this message mean? I am especially confused since the code fix hasn't even run yet, so I'm not sure what it has attempted to do at all.
Using the latest pre-release for everything Roslyn related.
Should have registered a symbol action on properies besides methods and handled indexer there instead.