-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Fix more null refs in Api Analyzers #10375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pranavkm
commented
May 19, 2019
- Make attributes used by analyzer public
- Compile analyzer tests against ref assemblies
- Turn on Nullable reference types and harden some null-checks
* Make attributes used by analyzer public * Compile analyzer tests against ref assemblies * Turn on Nullable reference types and harden some null-checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆙 📅
return false; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is aquaman sad?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanos collected the one ring and now aquaman has to leave Hogwarts. Poor aquaman 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll clean up the extra new lines in a follow up.
return false; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return _document; | ||
} | ||
|
||
var context = nullableContext.Value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI this shouldn't be needed. The flow analysis should do the right thing after it sees the null check at L48.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error CS1061: 'AddResponseTypeAttributeCodeFixAction.CodeActionContext?' does not contain a definition for 'SymbolCache' and no accessible extension method 'SymbolCache' accepting a first argument of type 'AddResponseTypeAttributeCodeFixAction.CodeActionContext?' could be found
Doesn't seem to work if I remove it. Perhaps because it's a value type.