|
|
|
@ -34,10 +34,10 @@ using ICSharpCode.NRefactory.CSharp.Analysis;
@@ -34,10 +34,10 @@ using ICSharpCode.NRefactory.CSharp.Analysis;
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.NRefactory.CSharp.Refactoring |
|
|
|
|
{ |
|
|
|
|
[IssueDescription("Use of (non-extension method) member of null value will cause a NullReferenceException", |
|
|
|
|
Description = "Detects when a member of a null value is used", |
|
|
|
|
Category = IssueCategories.CodeQualityIssues, |
|
|
|
|
Severity = Severity.Warning)] |
|
|
|
|
// [IssueDescription("Use of (non-extension method) member of null value will cause a NullReferenceException",
|
|
|
|
|
// Description = "Detects when a member of a null value is used",
|
|
|
|
|
// Category = IssueCategories.CodeQualityIssues,
|
|
|
|
|
// Severity = Severity.Warning)]
|
|
|
|
|
public class UseOfMemberOfNullReference : GatherVisitorCodeIssueProvider |
|
|
|
|
{ |
|
|
|
|
static readonly ISet<NullValueStatus> ProblematicNullStates = new HashSet<NullValueStatus> { |
|
|
|
|