204 references to InvocationExpression
GenerateDocumentationAndConfigFiles (30)
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (19)
46generator.InvocationExpression( 53generator.InvocationExpression( 62generator.InvocationExpression( 147generator.InvocationExpression( 152generator.InvocationExpression( 157generator.InvocationExpression( 166generator.InvocationExpression( 199generator.InvocationExpression( 204generator.InvocationExpression( 213generator.InvocationExpression( 247generator.InvocationExpression( 252generator.InvocationExpression( 261generator.InvocationExpression( 294generator.InvocationExpression( 298generator.InvocationExpression( 303generator.InvocationExpression( 312generator.InvocationExpression( 360generator.InvocationExpression( 369generator.InvocationExpression(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
218expressions.Add(factory.InvocationExpression( 272expressions.Add(factory.InvocationExpression( 282expressions.Add(factory.InvocationExpression( 321expressions.Add(factory.InvocationExpression( 375factory.InvocationExpression(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (6)
29result.Add(factory.InvocationExpression( 63factory.InvocationExpression( 69factory.InvocationExpression( 153rightSide = factory.InvocationExpression( 241return factory.InvocationExpression( 246return factory.InvocationExpression(
Microsoft.CodeAnalysis.Analyzers (34)
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (2)
266generator.InvocationExpression( 272generator.InvocationExpression(
MetaAnalyzers\Fixers\ConfigureGeneratedCodeAnalysisFix.cs (1)
70var newInvocation = generator.InvocationExpression(
MetaAnalyzers\Fixers\EnableConcurrentExecutionFix.cs (1)
62var newInvocation = generator.InvocationExpression(
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (19)
46generator.InvocationExpression( 53generator.InvocationExpression( 62generator.InvocationExpression( 147generator.InvocationExpression( 152generator.InvocationExpression( 157generator.InvocationExpression( 166generator.InvocationExpression( 199generator.InvocationExpression( 204generator.InvocationExpression( 213generator.InvocationExpression( 247generator.InvocationExpression( 252generator.InvocationExpression( 261generator.InvocationExpression( 294generator.InvocationExpression( 298generator.InvocationExpression( 303generator.InvocationExpression( 312generator.InvocationExpression( 360generator.InvocationExpression( 369generator.InvocationExpression(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
218expressions.Add(factory.InvocationExpression( 272expressions.Add(factory.InvocationExpression( 282expressions.Add(factory.InvocationExpression( 321expressions.Add(factory.InvocationExpression( 375factory.InvocationExpression(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (6)
29result.Add(factory.InvocationExpression( 63factory.InvocationExpression( 69factory.InvocationExpression( 153rightSide = factory.InvocationExpression( 241return factory.InvocationExpression( 246return factory.InvocationExpression(
Microsoft.CodeAnalysis.CodeStyle.Fixes (16)
src\roslyn\src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
89return generator.InvocationExpression( 100return generator.InvocationExpression(
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
196g.InvocationExpression( 205g.InvocationExpression(
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
228return generator.InvocationExpression(taskFromResult, expression.WithoutTrivia()).WithTriviaFrom(expression);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
218expressions.Add(factory.InvocationExpression( 272expressions.Add(factory.InvocationExpression( 282expressions.Add(factory.InvocationExpression( 321expressions.Add(factory.InvocationExpression( 375factory.InvocationExpression(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (6)
29result.Add(factory.InvocationExpression( 63factory.InvocationExpression( 69factory.InvocationExpression( 153rightSide = factory.InvocationExpression( 241return factory.InvocationExpression( 246return factory.InvocationExpression(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
108g.ExpressionStatement(g.InvocationExpression(
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
108g.ExpressionStatement(g.InvocationExpression(
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\CSharpPreferDictionaryTryMethodsOverContainsKeyGuardFixer.cs (1)
300var tryAddInvocation = generator.InvocationExpression(tryAddValueAccess, dictionaryAddArguments[0], dictionaryAddArguments[1]);
Microsoft.NetCore.Analyzers\Performance\CSharpUseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.cs (1)
51instance = generator.InvocationExpression(generator.MemberAccessExpression(instance, "AsSpan")).WithAdditionalAnnotations(new SyntaxAnnotation("SymbolId", "System.MemoryExtensions")).WithAddImportsAnnotation();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3244=> this.InvocationExpression(s_nameOfIdentifier, expression);
Microsoft.CodeAnalysis.Features (23)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
169generator.ReturnStatement(generator.InvocationExpression(
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
119withoutTrivia = (TExpressionSyntax)generator.InvocationExpression(
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
332var elementAtExpression = generator.InvocationExpression(
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
348: syntaxGenerator.InvocationExpression(
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
211var compareToCall = generator.InvocationExpression(
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (4)
81generator.InvocationExpression( 92generator.InvocationExpression( 103generator.InvocationExpression( 186factory.InvocationExpression(
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (2)
148? generator.InvocationExpression( 153: generator.InvocationExpression(
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (6)
654enumIsDefinedInvocation = generator.InvocationExpression( 662enumIsDefinedInvocation = generator.InvocationExpression( 701return (TStatementSyntax)generator.ExpressionStatement(generator.InvocationExpression( 727return (TStatementSyntax)generator.ExpressionStatement(generator.InvocationExpression( 768return (TStatementSyntax)generator.ExpressionStatement(generator.InvocationExpression( 780var condition = (TExpressionSyntax)generator.InvocationExpression(
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
43var resultingNode = generator.InvocationExpression(generator.MemberAccessExpression(generator.IdentifierName(nameof(Console)), nameof(Console.WriteLine)));
src\roslyn\src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
89return generator.InvocationExpression( 100return generator.InvocationExpression(
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
196g.InvocationExpression( 205g.InvocationExpression(
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
228return generator.InvocationExpression(taskFromResult, expression.WithoutTrivia()).WithTriviaFrom(expression);
Microsoft.CodeAnalysis.NetAnalyzers (50)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDirectlyAwaitATask.Fixer.cs (1)
68SyntaxNode invocation = generator.InvocationExpression(memberAccess, argumentLiteral);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.Fixer.cs (4)
221generator.InvocationExpression( 240generator.InvocationExpression( 255generator.InvocationExpression( 271generator.InvocationExpression(
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.Fixer.cs (1)
95generator.InvocationExpression(
Microsoft.NetCore.Analyzers\Performance\PreferConvertToHexStringOverBitConverter.Fixer.cs (6)
1011 => generator.InvocationExpression(methodExpression, Current(bitConverterArgumentsInParameterOrder[0].Value.Syntax)), 1032 => generator.InvocationExpression( 105generator.InvocationExpression(generator.MemberAccessExpression( 106generator.InvocationExpression(generator.MemberAccessExpression( 1143 => generator.InvocationExpression(methodExpression, bitConverterArgumentsInParameterOrder.Select(a => Current(a.Value.Syntax)).ToArray()), 121methodInvocation = generator.InvocationExpression(
Microsoft.NetCore.Analyzers\Performance\UseAsSpanInsteadOfRangeIndexer.Fixer.cs (1)
103var asSpan = generator.InvocationExpression(generator.MemberAccessExpression(target, targetMethod));
Microsoft.NetCore.Analyzers\Performance\UseSearchValues.Fixer.cs (2)
156generator.InvocationExpression( 184editor.ReplaceNode(stringInstance, (currentInstance, g) => g.InvocationExpression(g.MemberAccessExpression(currentInstance, "AsSpan")));
Microsoft.NetCore.Analyzers\Performance\UseSpanClearInsteadOfFIll.Fixer.cs (1)
52editor.ReplaceNode(node, generator.InvocationExpression(memberAccess));
Microsoft.NetCore.Analyzers\Performance\UseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.cs (1)
125var expression = generator.InvocationExpression(generator.MemberAccessExpression(instance, "StartsWith"), arguments);
Microsoft.NetCore.Analyzers\Runtime\AvoidZeroLengthArrayAllocations.Fixer.cs (1)
76return generator.InvocationExpression(arrayEmptyName);
Microsoft.NetCore.Analyzers\Runtime\PreferStreamAsyncMemoryOverloads.Fixer.cs (2)
133SyntaxNode asMemoryInvocationNode = generator.InvocationExpression( 160return generator.InvocationExpression(asyncMethodNode, nodeArguments).WithTriviaFrom(currentNode);
Microsoft.NetCore.Analyzers\Runtime\PreferStringContainsOverIndexOf.Fixer.cs (4)
77containsInvocation = generator.InvocationExpression(containsExpression, Current(firstArgument.Syntax)); 83containsInvocation = generator.InvocationExpression(containsExpression, Current(firstArgument.Syntax), argument); 105containsInvocation = generator.InvocationExpression(containsExpression, Current(indexOfMethodArguments[stringOrCharArgumentIndex].Syntax)); 109containsInvocation = generator.InvocationExpression(containsExpression, Current(indexOfMethodArguments[0].Syntax), Current(indexOfMethodArguments[1].Syntax));
Microsoft.NetCore.Analyzers\Runtime\PreferTypedStringBuilderAppendOverloads.Fixer.cs (1)
100return generator.InvocationExpression(
Microsoft.NetCore.Analyzers\Runtime\TestForEmptyStringsUsingStringLength.Fixer.cs (1)
151SyntaxNode nullOrEmptyInvocationSyntax = generator.InvocationExpression(nullOrEmptyMemberSyntax, target.WithoutTrailingTrivia());
Microsoft.NetCore.Analyzers\Runtime\TestForNaNCorrectly.Fixer.cs (1)
51SyntaxNode nanMemberInvocationSyntax = generator.InvocationExpression(nanMemberSyntax, comparisonOperand);
Microsoft.NetCore.Analyzers\Runtime\UseCancellationTokenThrowIfCancellationRequested.Fixer.cs (1)
127SyntaxNode invocation = editor.Generator.InvocationExpression(memberAccess, Array.Empty<SyntaxNode>());
Microsoft.NetCore.Analyzers\Runtime\UseExceptionThrowHelpersFixer.cs (1)
119editor.Generator.InvocationExpression(
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompare.Fixer.cs (1)
223var equalsInvocationSyntax = generator.InvocationExpression(
Microsoft.NetCore.Analyzers\Tasks\DoNotUseWhenAllOrWaitAllWithSingleArgumentFixer.cs (1)
47editor.Generator.InvocationExpression(
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (19)
45generator.InvocationExpression( 52generator.InvocationExpression( 61generator.InvocationExpression( 146generator.InvocationExpression( 151generator.InvocationExpression( 156generator.InvocationExpression( 165generator.InvocationExpression( 198generator.InvocationExpression( 203generator.InvocationExpression( 212generator.InvocationExpression( 246generator.InvocationExpression( 251generator.InvocationExpression( 260generator.InvocationExpression( 293generator.InvocationExpression( 297generator.InvocationExpression( 302generator.InvocationExpression( 311generator.InvocationExpression( 360generator.InvocationExpression( 369generator.InvocationExpression(
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\BasicPreferDictionaryTryMethodsOverContainsKeyGuardFixer.vb (2)
175Dim tryGetValueInvocation = generator.InvocationExpression(tryGetValueAccess, 233Dim tryAddInvocation = generator.InvocationExpression(tryAddValueAccess, dictionaryAddArguments(0), dictionaryAddArguments(1))
Microsoft.NetCore.Analyzers\Performance\BasicUseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.vb (1)
63arguments(index) = charArgumentSyntax.WithExpression(DirectCast(generator.InvocationExpression(generator.MemberAccessExpression(charArgumentSyntax.Expression, "ToString")), ExpressionSyntax))
Microsoft.NetCore.Analyzers\Runtime\BasicSpecifyCultureForToLowerAndToUpper.Fixer.vb (1)
52Return generator.InvocationExpression(target.WithoutTrailingTrivia(), argument).WithAdditionalAnnotations(Formatter.Annotation)
Microsoft.CodeAnalysis.Workspaces (11)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
218expressions.Add(factory.InvocationExpression( 272expressions.Add(factory.InvocationExpression( 282expressions.Add(factory.InvocationExpression( 321expressions.Add(factory.InvocationExpression( 375factory.InvocationExpression(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (6)
29result.Add(factory.InvocationExpression( 63factory.InvocationExpression( 69factory.InvocationExpression( 153rightSide = factory.InvocationExpression( 241return factory.InvocationExpression( 246return factory.InvocationExpression(
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
422return generator.InvocationExpression(
Roslyn.Diagnostics.Analyzers (30)
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (19)
46generator.InvocationExpression( 53generator.InvocationExpression( 62generator.InvocationExpression( 147generator.InvocationExpression( 152generator.InvocationExpression( 157generator.InvocationExpression( 166generator.InvocationExpression( 199generator.InvocationExpression( 204generator.InvocationExpression( 213generator.InvocationExpression( 247generator.InvocationExpression( 252generator.InvocationExpression( 261generator.InvocationExpression( 294generator.InvocationExpression( 298generator.InvocationExpression( 303generator.InvocationExpression( 312generator.InvocationExpression( 360generator.InvocationExpression( 369generator.InvocationExpression(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
218expressions.Add(factory.InvocationExpression( 272expressions.Add(factory.InvocationExpression( 282expressions.Add(factory.InvocationExpression( 321expressions.Add(factory.InvocationExpression( 375factory.InvocationExpression(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (6)
29result.Add(factory.InvocationExpression( 63factory.InvocationExpression( 69factory.InvocationExpression( 153rightSide = factory.InvocationExpression( 241return factory.InvocationExpression( 246return factory.InvocationExpression(