9 references to IsNullLiteralExpression
Microsoft.CodeAnalysis.CodeStyle (9)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (2)
78var conditionLeftIsNull = syntaxFacts.IsNullLiteralExpression(conditionLeftLow); 79var conditionRightIsNull = syntaxFacts.IsNullLiteralExpression(conditionRightLow);
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (3)
150var 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)
141if (isEquals && !syntaxFacts.IsNullLiteralExpression(whenTrueNode)) 144if (!isEquals && !syntaxFacts.IsNullLiteralExpression(whenFalseNode)) 327var conditionLeftIsNull = syntaxFacts.IsNullLiteralExpression(conditionLeft); 328var conditionRightIsNull = syntaxFacts.IsNullLiteralExpression(conditionRight);