Skip to content

Commit 9876619

Browse files
committed
Adding a comment
1 parent d5dbed4 commit 9876619

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Features/Core/Portable/InitializeParameter/AbstractAddParameterCheckCodeRefactoringProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ private bool IsIfNullCheck(IOperation statement, IParameterSymbol parameter)
140140
else if (condition is IIsPatternOperation isPatternOperation &&
141141
isPatternOperation.Pattern is IConstantPatternOperation constantPattern)
142142
{
143+
// Look for code of the form "if (p is null)"
143144
if (IsNullCheck(constantPattern.Value, isPatternOperation.Value, parameter))
144145
{
145146
return true;

0 commit comments

Comments
 (0)