207 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)
223var tryAddInvocation = generator.InvocationExpression(tryAddValueAccess, dictionaryAddArguments[0], dictionaryAddArguments[1]);
Microsoft.NetCore.Analyzers\Performance\CSharpUseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.cs (1)
31instance = 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 (53)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDirectlyAwaitATask.Fixer.cs (1)
68SyntaxNode invocation = generator.InvocationExpression(memberAccess, argumentLiteral);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.Fixer.cs (4)
179generator.InvocationExpression( 198generator.InvocationExpression( 213generator.InvocationExpression( 229generator.InvocationExpression(
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.Fixer.cs (1)
97generator.InvocationExpression(
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidLengthCalculationWhenSlicingToEnd.Fixer.cs (1)
73var methodInvocation = generator.InvocationExpression(methodExpression, argument.Syntax);
Microsoft.NetCore.Analyzers\Performance\PreferConvertToHexStringOverBitConverter.Fixer.cs (6)
961 => generator.InvocationExpression(methodExpression, bitConverterArgumentsInParameterOrder[0].Value.Syntax), 982 => generator.InvocationExpression( 100generator.InvocationExpression(generator.MemberAccessExpression( 101generator.InvocationExpression(generator.MemberAccessExpression( 1093 => generator.InvocationExpression(methodExpression, bitConverterArgumentsInParameterOrder.Select(a => a.Value.Syntax).ToArray()), 116methodInvocation = generator.InvocationExpression(
Microsoft.NetCore.Analyzers\Performance\UseAsSpanInsteadOfRangeIndexer.Fixer.cs (1)
111var asSpan = editor.Generator.InvocationExpression(
Microsoft.NetCore.Analyzers\Performance\UseSearchValues.Fixer.cs (2)
131generator.InvocationExpression( 159editor.ReplaceNode(stringInstance, generator.InvocationExpression(generator.MemberAccessExpression(stringInstance, "AsSpan")));
Microsoft.NetCore.Analyzers\Performance\UseSpanClearInsteadOfFIll.Fixer.cs (1)
48var invocation = generator.InvocationExpression(memberAccess);
Microsoft.NetCore.Analyzers\Performance\UseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.cs (1)
96var expression = generator.InvocationExpression(generator.MemberAccessExpression(instance, "StartsWith"), arguments);
Microsoft.NetCore.Analyzers\Runtime\AvoidUnreliableStreamRead.Fixer.cs (1)
94? generator.InvocationExpression(
Microsoft.NetCore.Analyzers\Runtime\AvoidZeroLengthArrayAllocations.Fixer.cs (1)
86return generator.InvocationExpression(arrayEmptyName);
Microsoft.NetCore.Analyzers\Runtime\PreferJsonElementParse.Fixer.cs (1)
68SyntaxNode replacement = generator.InvocationExpression(memberAccess, arguments);
Microsoft.NetCore.Analyzers\Runtime\PreferStreamAsyncMemoryOverloads.Fixer.cs (2)
152SyntaxNode asMemoryInvocationNode = generator.InvocationExpression( 177SyntaxNode newInvocationExpression = generator.InvocationExpression(asyncMethodNode, nodeArguments).WithTriviaFrom(streamInstanceNode);
Microsoft.NetCore.Analyzers\Runtime\PreferStringContainsOverIndexOf.Fixer.cs (4)
88containsInvocation = generator.InvocationExpression(containsExpression, firstArgument.Syntax); 94containsInvocation = generator.InvocationExpression(containsExpression, firstArgument.Syntax, argument); 116containsInvocation = generator.InvocationExpression(containsExpression, indexOfMethodArguments[stringOrCharArgumentIndex].Syntax); 120containsInvocation = generator.InvocationExpression(containsExpression, indexOfMethodArguments[0].Syntax, indexOfMethodArguments[1].Syntax);
Microsoft.NetCore.Analyzers\Runtime\PreferTypedStringBuilderAppendOverloads.Fixer.cs (1)
72SyntaxNode newInvocation = editor.Generator.InvocationExpression(
Microsoft.NetCore.Analyzers\Runtime\TestForEmptyStringsUsingStringLength.Fixer.cs (1)
113SyntaxNode nullOrEmptyInvocationSyntax = editor.Generator.InvocationExpression(nullOrEmptyMemberSyntax, fixResolution.Target.WithoutTrailingTrivia());
Microsoft.NetCore.Analyzers\Runtime\TestForNaNCorrectly.Fixer.cs (1)
92SyntaxNode nanMemberInvocationSyntax = editor.Generator.InvocationExpression(nanMemberSyntax, fixResolution.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)
201var 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)
132Dim tryGetValueInvocation = generator.InvocationExpression(tryGetValueAccess, 192Dim tryAddInvocation = generator.InvocationExpression(tryAddValueAccess, dictionaryAddArguments(0), dictionaryAddArguments(1))
Microsoft.NetCore.Analyzers\Performance\BasicUseStartsWithInsteadOfIndexOfComparisonWithZero.Fixer.vb (1)
29arguments(0) = charArgumentSyntax.WithExpression(DirectCast(generator.InvocationExpression(generator.MemberAccessExpression(charArgumentSyntax.Expression, "ToString")), ExpressionSyntax))
Microsoft.NetCore.Analyzers\Runtime\BasicSpecifyCultureForToLowerAndToUpper.Fixer.vb (1)
54Dim invocation = generator.InvocationExpression(memberAccess.WithoutTrailingTrivia(), newArg).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(