9 references to IsNullLiteralExpression
Microsoft.CodeAnalysis.CodeStyle (9)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (2)
78
var conditionLeftIsNull = syntaxFacts.
IsNullLiteralExpression
(conditionLeftLow);
79
var conditionRightIsNull = syntaxFacts.
IsNullLiteralExpression
(conditionRightLow);
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (3)
150
var valueNode = syntaxFacts.
IsNullLiteralExpression
(syntaxFacts.GetExpressionOfArgument(node1)) ? node2 : node1;
162
=> syntaxFacts.
IsNullLiteralExpression
(syntaxFacts.GetExpressionOfArgument(node1)) &&
163
!syntaxFacts.
IsNullLiteralExpression
(syntaxFacts.GetExpressionOfArgument(node2));
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (4)
141
if (isEquals && !syntaxFacts.
IsNullLiteralExpression
(whenTrueNode))
144
if (!isEquals && !syntaxFacts.
IsNullLiteralExpression
(whenFalseNode))
327
var conditionLeftIsNull = syntaxFacts.
IsNullLiteralExpression
(conditionLeft);
328
var conditionRightIsNull = syntaxFacts.
IsNullLiteralExpression
(conditionRight);