11 references to GetExpressionOfArgument
Microsoft.CodeAnalysis.CodeStyle (11)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (1)
233
var argExpression = this.SyntaxFacts.
GetExpressionOfArgument
(argument);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (2)
252
var convertedType = this.SemanticModel.GetTypeInfo(SyntaxFacts.
GetExpressionOfArgument
(arguments[0]), cancellationToken).ConvertedType;
305
var argumentExpression = this.SyntaxFacts.
GetExpressionOfArgument
(argument);
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (4)
150
var valueNode = syntaxFacts.IsNullLiteralExpression(syntaxFacts.
GetExpressionOfArgument
(node1)) ? node2 : node1;
151
var argumentExpression = syntaxFacts.
GetExpressionOfArgument
(valueNode);
162
=> syntaxFacts.IsNullLiteralExpression(syntaxFacts.
GetExpressionOfArgument
(node1)) &&
163
!syntaxFacts.IsNullLiteralExpression(syntaxFacts.
GetExpressionOfArgument
(node2));
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
289
var conditionLeft = (TExpressionSyntax)syntaxFacts.
GetExpressionOfArgument
(arguments[0]);
290
var conditionRight = (TExpressionSyntax)syntaxFacts.
GetExpressionOfArgument
(arguments[1]);
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (2)
203
var expression = syntaxFacts.
GetExpressionOfArgument
(argsArgument)!;
272
if (!syntaxFacts.IsStringLiteralExpression(syntaxFacts.
GetExpressionOfArgument
(formatArgumentSyntax)))